Changeset 623
- Timestamp:
- 08/22/10 04:27:19 (1 year ago)
- Files:
-
- trunk/test/Makefile (modified) (1 diff)
- trunk/test/do_test.sh (modified) (2 diffs)
- trunk/test/runnable/extra-files/hello-profile-postscript.sh (added)
- trunk/test/runnable/extra-files/hello-profile.d.trace.def (added)
- trunk/test/runnable/hello-profile.d (added)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/test/Makefile
r574 r623 30 30 # PERMUTE_ARGS: the set of arguments to permute in multiple $(DMD) invocations 31 31 # default: the make variable ARGS (see below) 32 # 33 # POST_SCRIPT: name of script to execute after test run 34 # default: (none) 32 35 # 33 36 # REQUIRED_ARGS: arguments to add to the $(DMD) command line trunk/test/do_test.sh
r576 r623 53 53 grep -q COMPILE_SEPARATELY ${input_file} 54 54 separate=$? 55 56 post_script=`grep POST_SCRIPT ${input_file} | tr -d \\\\r\\\\n` 57 if [ ! -z "${post_script}" ]; then 58 post_script="${post_script/*POST_SCRIPT:*( )/}" 59 fi 55 60 56 61 if [ "${input_dir}" != "runnable" ]; then … … 113 118 fi 114 119 120 if [ ! -z ${post_script} ]; then 121 echo "Executing post-test script: ${post_script}" >> ${output_file} 122 ${post_script} >> ${output_file} 2>&1 123 if [ $? -ne 0 ]; then 124 cat ${output_file} 125 rm -f ${output_file} 126 exit 1 127 fi 128 fi 129 115 130 rm -f ${test_app} ${test_app}.o ${ofiles[*]} 116 131
