From 308c993928937070e462c027f7e6b183e7858a2a Mon Sep 17 00:00:00 2001 From: Andrew Geissler Date: Mon, 31 Oct 2011 08:59:30 -0500 Subject: 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 Reviewed-by: CAMVAN T. NGUYEN --- src/build/hwpf/prcd_compile_test | 42 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 41 insertions(+), 1 deletion(-) (limited to 'src/build/hwpf/prcd_compile_test') 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" @@ -88,6 +115,18 @@ echo "TEST - Good Path - No Files" ./prcd_compile.tcl -d $BUILD 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*; @@ -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 -- cgit v1.2.1