commit 905472e805ce86231bc35b7cc27b703fa84c33ce from: Stefan Sperling date: Wed Jun 23 10:57:17 2021 UTC got-build-regress.sh: support running tests with a non-default test root dir commit - 9c1dd3ecb5f919d34c85928d32d6caf6406ea975 commit + 905472e805ce86231bc35b7cc27b703fa84c33ce blob - 45f037c69c114c0891e8c968546317a3b9477d55 blob + c0b3c80de0ff74a286ed19cbb2e4287e18d415a8 --- util/got-build-regress.sh +++ util/got-build-regress.sh @@ -20,8 +20,9 @@ branch=main worktree=$HOME/got fromaddr_arg= force=0 +testroot="/tmp" -args=`getopt b:fw:r: $*` +args=`getopt b:fw:r:R: $*` if [ $? -ne 0 ] then echo "usage: $usage" >&2 @@ -39,6 +40,8 @@ while [ $# -ne 0 ]; do worktree="$2"; shift; shift;; -r) fromaddr_arg="-r $2"; shift; shift;; + -R) + testroot="$2"; shift; shift;; --) shift; break;; esac @@ -115,7 +118,7 @@ if [ "$build_status" != "0" ]; then fi printf "\n\n\tRunning tests\n\n" >> build.log -log_cmd regress.log env PATH=$HOME/bin:$PATH make regress +log_cmd regress.log env PATH=$HOME/bin:$PATH make regress GOT_TEST_ROOT="$testroot" regress_status="$?" cat regress.log >> build.log egrep "test.*failed" regress.log > failures.log