File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11SHELL = /bin/sh
22
33test : info
4- @echo " Running tests ..."
5- @ls -1 test/test-* .sh | xargs -P 4 -n 1 $(SHELL )
4+ @script/cibuild
65
76info :
87 @echo This is github/backup-utils
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+ # Usage: script/cibuild
3+ set -e
4+
5+ # GHE appliance versions to run tests against. Remote metadata files are put in
6+ # place with this version at the beginning of each test and many commands have
7+ # conditional logic based on the remote version. Running the suite against
8+ # different major versions ensures we're covering these conditional paths.
9+ REMOTE_VERSIONS="
10+ 11.10.344
11+ 2.0.0
12+ "
13+
14+ # Run over all remote versions and run entire test suite against each
15+ res=true
16+ for version in $REMOTE_VERSIONS
17+ do
18+ echo " ==> Running testsuite with GHE_TEST_REMOTE_VERSION=$version "
19+ export GHE_TEST_REMOTE_VERSION=" $version "
20+ if ! ls -1 test/test-* .sh | xargs -P 4 -n 1 /bin/sh; then
21+ res=false
22+ fi
23+ echo
24+ done
25+
26+ # If any of the version tests failed, exit non-zero
27+ $res
You can’t perform that action at this time.
0 commit comments