summaryrefslogtreecommitdiffstats
path: root/src/build/hwpf/prcd_compile_test
diff options
context:
space:
mode:
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