commit c5c77d2960094a7f94bd278d71f3dad2d8fd2533 from: Stefan Sperling date: Thu Oct 14 17:20:44 2021 UTC make got-build-regress.sh run tests a second time with GOT_TEST_PACK=1 commit - 5df018ff07ef1aef0762d98cceb95fa04dbdb706 commit + c5c77d2960094a7f94bd278d71f3dad2d8fd2533 blob - 18b329e07759c0334289c970a59481db7e56cc08 blob + a5005ad659010203a4298da2234c9e75f1cc7197 --- util/got-build-regress.sh +++ util/got-build-regress.sh @@ -131,6 +131,20 @@ if [ "$regress_status" != "0" -o "$regress_failure_gre exit 0 fi +printf "\n\n\tRunning tests with pack files\n\n" >> build.log +log_cmd regress.log env PATH=$HOME/bin:$PATH make regress GOT_TEST_ROOT="$testroot" GOT_TEST_PACK=1 +regress_status="$?" +cat regress.log >> build.log +egrep "test.*failed" regress.log > failures.log +regress_failure_grep="$?" +if [ "$regress_status" != "0" -o "$regress_failure_grep" == "0" ]; then + printf "\n\n\t Test failures:\n\n" >> build.log + cat failures.log >> build.log + mail $fromaddr_arg -s "$prog regress failure" $recipients < build.log + rm -rf "$lockfile" + exit 0 +fi + printf "\n\n\tTesting a release build\n\n" >> build.log log_cmd build.log make clean log_cmd build.log make obj