Skip to content

Commit 1a00d0c

Browse files
Add: start linux xvfb-run for unit test
This is the only way to get it working on AArch64 build server. The other OS windows: direct program startup macOs: direct program startup
1 parent de93657 commit 1a00d0c

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed

scripts/travis_unit_test.sh

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,32 @@ then
1111
# show openSSL version
1212
openssl version
1313

14+
# Exit immediately if a command exits with a non-zero status.
15+
set -e
16+
xvfb-run enduser/test_trackereditor -a --format=plain
17+
set +e
18+
1419
elif [ "$TRAVIS_OS_NAME" = "osx" ]
1520
then
1621
# show macOS version
1722
sw_vers
1823

1924
# show openSSL version
2025
openssl version
26+
27+
# Exit immediately if a command exits with a non-zero status.
28+
set -e
29+
enduser/test_trackereditor -a --format=plain
30+
set +e
31+
32+
elif [ "$TRAVIS_OS_NAME" = "windows" ]
33+
then
34+
# Exit immediately if a command exits with a non-zero status.
35+
set -e
36+
enduser/test_trackereditor -a --format=plain
37+
set +e
2138
fi
2239

23-
# Exit immediately if a command exits with a non-zero status.
24-
set -e
25-
enduser/test_trackereditor -a --format=plain
26-
set +e
2740

2841
# Remove all the extra file created by test
2942
# We do not what it in the ZIP release files.

0 commit comments

Comments
 (0)