[sledge] Improve test scripts

Summary: Better failure messages and reports

Reviewed By: ngorogiannis

Differential Revision: D17801940

fbshipit-source-id: db3d13eaf
master
Josh Berdine 5 years ago committed by Facebook Github Bot
parent 38cab376f6
commit ebee451f1c

@ -48,7 +48,7 @@ translate-report-errors:
# report errors # report errors
translate-report: translate-report:
@$(MAKE) --silent _translate-report-raw \ @$(MAKE) --silent _translate-report-raw \
| grep -E -v "RESULT: Unimplemented: (coroutines|landingpad of type other than {i8\*, i32}|windows exception handling|non-integral pointer types|types with undetermined size):" \ | grep -E -v "RESULT: Unimplemented" \
| grep -E -v "RESULT: (Success|Invalid input)" \ | grep -E -v "RESULT: (Success|Invalid input)" \
| column -ts$$'\t' | column -ts$$'\t'

@ -27,7 +27,9 @@ cd $testdir
) )
status=$? status=$?
case $status in case $status in
( 139 ) echo -e "RESULT: SEGFAULT" >> $testname.out ;; ( 132 ) echo -e "RESULT: illegal instruction" >> $testname.out ;;
( 136 ) echo -e "RESULT: floating-point exception" >> $testname.out ;;
( 139 ) echo -e "RESULT: segmentation violation" >> $testname.out ;;
( 127 ) echo -e "RESULT: MEMOUT" >> $testname.out ;; ( 127 ) echo -e "RESULT: MEMOUT" >> $testname.out ;;
( 137 | 152 ) echo -e "RESULT: TIMEOUT" >> $testname.out ;; ( 137 | 152 ) echo -e "RESULT: TIMEOUT" >> $testname.out ;;
( * ) ;; ( * ) ;;

Loading…
Cancel
Save