[svn-r27846] Fix generated files process.
Add script for post processing of flex/bison files.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# runTest.cmake executes a command and captures the output in a file. File is then compared
|
||||
# userblockTest.cmake executes a command and captures the output in a file. File is then compared
|
||||
# against a reference file. Exit status of command can also be compared.
|
||||
|
||||
# arguments checking
|
||||
@@ -56,9 +56,9 @@ if (TEST_CHECKUB STREQUAL "YES")
|
||||
endif (NOT ${TEST_RESULT} STREQUAL "0")
|
||||
file (READ ${TEST_HFILE}.len.txt TEST_O_STRING_LEN)
|
||||
endif (TEST_OFILE)
|
||||
|
||||
|
||||
MATH( EXPR TEST_STRING_SIZE "${TEST_U_STRING_LEN} + ${TEST_O_STRING_LEN}" )
|
||||
|
||||
|
||||
if (NOT TEST_O_STRING_LEN STREQUAL "0")
|
||||
#$JAM_BIN/getub -c $s2 $origfile > $cmpfile
|
||||
EXECUTE_PROCESS (
|
||||
@@ -72,7 +72,7 @@ if (TEST_CHECKUB STREQUAL "YES")
|
||||
)
|
||||
#cat $ufile >> $cmpfile
|
||||
file (STRINGS ${TEST_UFILE} TEST_STREAM NEWLINE_CONSUME)
|
||||
file (APPEND ${TEST_HFILE}-ub.cmp "${TEST_STREAM}")
|
||||
file (APPEND ${TEST_HFILE}-ub.cmp "${TEST_STREAM}")
|
||||
else (NOT TEST_O_STRING_LEN STREQUAL "0")
|
||||
file (STRINGS ${TEST_UFILE} TEST_STREAM NEWLINE_CONSUME)
|
||||
file (WRITE ${TEST_HFILE}-ub.cmp ${TEST_STREAM})
|
||||
|
||||
Reference in New Issue
Block a user