• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/bin/sh
2
3FAILED=
4
5for TEST in "$@"
6do
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
30done
31
32if [ "$FAILED" == "yes" ]; then
33  exit 1
34fi
35