From df05b815a80fc2475aa0396ae140903beaa9dde1 Mon Sep 17 00:00:00 2001 From: Brian Horton Date: Thu, 23 Feb 2012 15:41:41 -0600 Subject: Task 37138 Provide way to test if new HWP will compile in Hostboot (all work) . update prcd_compile.tcl to support new -n flag to say all files are new HWP . update prcd_server.tcl to support new HWP_FILE_NEW and HWP_COMPILE_NEW commands to create tmp directory and makefile for new HWP . update prcd_compile_test to test new -n flag. Change-Id: I275e2662026cdb020aaedd81c8ca6ea0576926f8 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/690 Tested-by: Jenkins Server Reviewed-by: MIKE J. JONES Reviewed-by: A. Patrick Williams III --- src/build/hwpf/prcd_compile_test | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (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 faa0eea1e..69c6969a3 100755 --- a/src/build/hwpf/prcd_compile_test +++ b/src/build/hwpf/prcd_compile_test @@ -146,6 +146,30 @@ echo "TEST - Good Path - All Files" ./prcd_compile.tcl -o ./output/ sample.initfile fapiTestHwp.H ./fapiTestHwp.C check_good_rc_and_bin $? ./output/ +echo +echo "TEST - New working HWP" +cat >> mss_compile_test.C << EOF +#include +#include +fapi::ReturnCode mss_compile_test(std::vector & i_targets_memb) +{ fapi::ReturnCode l_rc; return l_rc; } +EOF +cat >> mss_compile_test.H << EOF +#ifndef MSS_COMPILE_TESTHWPB_H_ +#define MSS_COMPILE_TESTHWPB_H_ +#include +typedef fapi::ReturnCode (*mss_comile_test_FP_t)(std::vector &); +extern "C" { fapi::ReturnCode mss_comile_test(std::vector & l_targets_memb); } +#endif +EOF +./prcd_compile.tcl -n mss_compile_test.C mss_compile_test.H +check_good_rc $? + +echo +echo "TEST - New working HWP - missing .H file" +./prcd_compile.tcl -n mss_compile_test.C +check_bad_rc $? + echo echo "TEST - Good Path - Compile Failure" echo COMPILE_FAIL >> fapiTestHwp.H -- cgit v1.2.1