• Home
  • Raw
  • Download

Lines Matching +full:- +full:- +full:preserve +full:- +full:paths

26 ROOT="`readlink -f $ROOT/..`"
27 IGT_CONFIG_PATH="`readlink -f ${IGT_CONFIG_PATH:-$HOME/.igtrc}`"
31 if [ -z "$IGT_TEST_ROOT" ]; then
32 paths=("$ROOT/build/tests/test-list.txt"
33 "$ROOT/tests/test-list.txt")
34 for p in "${paths[@]}"; do
35 if [ -f "$p" ]; then
43 if [ -z "$IGT_TEST_ROOT" ]; then
49 IGT_TEST_ROOT="`readlink -f ${IGT_TEST_ROOT}`"
55 function run_piglit # as-root <args>
63 if [ "$need_root" -ne 0 -a "$EUID" -ne 0 ]; then
64 sudo="sudo --preserve-env=IGT_TEST_ROOT,IGT_CONFIG_PATH"
71 echo "Usage: run-tests.sh [options]"
73 echo " -d download Piglit to $ROOT/piglit"
74 echo " -h display this help message"
75 echo " -l list all available tests"
76 echo " -r <directory> store the results in directory"
78 echo " -s create html summary"
79 echo " -t <regex> only include tests that match the regular expression"
81 echo " -T <filename> run tests listed in testlist"
82 echo " (overrides -t and -x)"
83 echo " -v enable verbose mode"
84 echo " -x <regex> exclude tests that match the regular expression"
86 echo " -R resume interrupted test where the partial results"
87 echo " are in the directory given by -r"
88 echo " -n do not retry incomplete tests when resuming a"
89 echo " test run with -R"
101 t) FILTER="$FILTER -t $OPTARG" ;;
102 T) FILTER="$FILTER --test-list $OPTARG" ;;
103 v) VERBOSE="-v" ;;
104 x) EXCLUDE="$EXCLUDE -x $OPTARG" ;;
106 n) NORETRY="--no-retry" ;;
108 echo "Option -$OPTARG requires an argument."
112 echo "Unknown option: -$OPTARG"
118 shift $(($OPTIND-1))
130 if [ ! -x "$PIGLIT" ]; then
132 echo "Please install Piglit or use -d to download Piglit locally."
137 run_piglit 0 print-cmd --format "{name}" igt
144 mkdir -p "$RESULTS"
145 run_piglit 1 run igt --ignore-missing -o "$RESULTS" -s $VERBOSE $EXCLUDE $FILTER
149 run_piglit 0 summary html --overwrite "$RESULTS/html" "$RESULTS"