blob: 71a9c81bfbe4345ba5758960501cb5d1c83e0d41 [file] [log] [blame]
Andrew Geissler82c905d2020-04-13 13:39:40 -05001#!/bin/sh
2# use target=recheck if you want to recheck failing tests
3[ "$target" = "" ] && target=check
4
5# Without --ignore-exit, the tap harness causes any FAILs within a
6# test plan to raise ERRORs; this is just noise.
7makeargs="LOG_DRIVER_FLAGS=--ignore-exit abs_top_srcdir=$PWD abs_top_builddir=$PWD GREP=grep SED=sed PYTHON=python3"
8
Andrew Geisslerfc113ea2023-03-31 09:59:46 -05009exec 2> error.log
10make -C tests -k -s $makeargs $target
11exitcode=$?
12if [ -e error.log ]; then
13 cat error.log
14fi
15if [ -e tests/test-suite.log ]; then
16 cat tests/test-suite.log
17fi
18
19exit $exitcode