Home | History | Annotate | Download | only in re2
      1 #!/usr/bin/env bash
      2 
      3 success=true
      4 for i
      5 do
      6 	printf "%-40s" $i
      7 	if sh -c "$i >$i.log 2>&1" 2>/dev/null
      8 	then
      9 		echo PASS
     10 	else
     11 		echo FAIL';' output in $i.log
     12 		success=false
     13 	fi
     14 done
     15 
     16 if $success; then
     17 	echo 'ALL TESTS PASSED.'
     18 	exit 0
     19 fi
     20 echo 'TESTS FAILED.'
     21 exit 1
     22