Skip to content

Commit 3f599d8

Browse files
committed
Run tests against remote versions: 11.10.344 and 2.0.0
1 parent 33ce7a2 commit 3f599d8

2 files changed

Lines changed: 28 additions & 2 deletions

File tree

Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
SHELL = /bin/sh
22

33
test: info
4-
@echo "Running tests ..."
5-
@ls -1 test/test-*.sh | xargs -P 4 -n 1 $(SHELL)
4+
@script/cibuild
65

76
info:
87
@echo This is github/backup-utils

script/cibuild

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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

0 commit comments

Comments
 (0)