commit - 9c1dd3ecb5f919d34c85928d32d6caf6406ea975
commit + 905472e805ce86231bc35b7cc27b703fa84c33ce
blob - 45f037c69c114c0891e8c968546317a3b9477d55
blob + c0b3c80de0ff74a286ed19cbb2e4287e18d415a8
--- util/got-build-regress.sh
+++ util/got-build-regress.sh
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
worktree="$2"; shift; shift;;
-r)
fromaddr_arg="-r $2"; shift; shift;;
+ -R)
+ testroot="$2"; shift; shift;;
--)
shift; break;;
esac
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