summaryrefslogtreecommitdiffstats
path: root/src/build/hwpf/prcd_compile_test
diff options
context:
space:
mode:
authorAndrew Geissler <andrewg@us.ibm.com>2011-10-31 08:59:30 -0500
committerAndrew J. Geissler <andrewg@us.ibm.com>2011-11-01 13:33:49 -0500
commit308c993928937070e462c027f7e6b183e7858a2a (patch)
tree76bac801cbeb489331e765ba9349f8565d71411e /src/build/hwpf/prcd_compile_test
parent5554e9d53859a91b39b01c8f789fe536e4688ecb (diff)
downloadtalos-hostboot-308c993928937070e462c027f7e6b183e7858a2a.tar.gz
talos-hostboot-308c993928937070e462c027f7e6b183e7858a2a.zip
Initfile - Support for remote compile of initfiles
Change-Id: I6609c7abc4dac6ad165d4bed4ee9a45a7d7b7f0c Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/472 Tested-by: Jenkins Server Reviewed-by: Douglas R. Gilbert <dgilbert@us.ibm.com> Reviewed-by: CAMVAN T. NGUYEN <ctnguyen@us.ibm.com>
Diffstat (limited to 'src/build/hwpf/prcd_compile_test')
-rwxr-xr-xsrc/build/hwpf/prcd_compile_test42
1 files changed, 41 insertions, 1 deletions
diff --git a/src/build/hwpf/prcd_compile_test b/src/build/hwpf/prcd_compile_test
index a1f4abed5..522ab97de 100755
--- a/src/build/hwpf/prcd_compile_test
+++ b/src/build/hwpf/prcd_compile_test
@@ -1,9 +1,31 @@
#!/bin/bash
+# IBM_PROLOG_BEGIN_TAG
+# This is an automatically generated prolog.
+#
+# $Source: src/build/hwpf/prcd_compile_test $
+#
+# IBM CONFIDENTIAL
+#
+# COPYRIGHT International Business Machines Corp. 2011
+#
+# p1
+#
+# Object Code Only (OCO) source materials
+# Licensed Internal Code Source Materials
+# IBM HostBoot Licensed Internal Code
+#
+# The source code for this program is not published or other-
+# wise divested of its trade secrets, irrespective of what has
+# been deposited with the U.S. Copyright Office.
+#
+# Origin: 30
+#
+# IBM_PROLOG_END
#Note that this test case assumes 2 files present in the PWD (along with prcd_compile.tcl)
# - fapiTestHwp.C and fapiTestHwp.H
-#BUILD="b0621a_2001_Sprint2"
+#BUILD="b0923a_2011_Sprint5"
BUILD="master"
###############################################################
@@ -49,6 +71,11 @@ if [ ! -f "./fapiTestHwp.C" ]; then
check_good_rc $?
fi
+if [ ! -f "./sample.initfile" ]; then
+ cp ../../usr/hwpf/hwp/initfiles/sample.initfile ./
+ check_good_rc $?
+fi
+
echo
echo "TEST - Good Path - Multi Process"
@@ -89,6 +116,18 @@ echo "TEST - Good Path - No Files"
check_good_rc $?
echo
+echo "TEST - Good Path - Initfile"
+./prcd_compile.tcl -o ./output/ sample.initfile
+check_good_rc $?
+rm -rf ./output
+
+echo
+echo "TEST - Good Path - All Files"
+./prcd_compile.tcl -o ./output/ sample.initfile fapiTestHwp.H ./fapiTestHwp.C
+check_good_rc $?
+rm -rf ./output
+
+echo
echo "TEST - Bad Path - Compile Failure"
rm -f hbicore*;
cp fapiTestHwp.H /tmp/
@@ -96,4 +135,5 @@ echo COMPILE_FAIL >> /tmp/fapiTestHwp.H
./prcd_compile.tcl -d $BUILD /tmp/fapiTestHwp.H fapiTestHwp.C
check_bad_rc $?
rm /tmp/fapiTestHwp.H
+rm *.bin
OpenPOWER on IntegriCloud