Home | History | Annotate | Download | only in unittest
      1 #!/bin/sh
      2 
      3 FAILED=
      4 
      5 for TEST in "$@"
      6 do
      7   echo "=============================="
      8   SUPP=
      9   if [ -f output_tests/${TEST}.supp ]; then
     10     SUPP=--suppressions=output_tests/${TEST}.supp
     11   fi
     12 
     13   IGNORE=
     14   if [ -f output_tests/${TEST}.ignore ]; then
     15     IGNORE=--ignore=output_tests/${TEST}.ignore
     16   fi
     17 
     18   CMD="$TSAN $SUPP $IGNORE -- ./${BIN}output_tests/${TEST}-${BUILD}${EXE} 2>&1 | python match_output.py output_tests/${TEST}.tmpl"
     19   echo "Running"
     20   echo "$ $CMD"
     21   if $CMD ;
     22   then
     23     echo "[  PASS  ]"
     24   else
     25     echo "[ FAILED ]"
     26     FAILED=yes
     27   fi
     28   echo "=============================="
     29   echo
     30 done
     31 
     32 if [ "$FAILED" == "yes" ]; then
     33   exit 1
     34 fi
     35