Simpler Test code for handling SWIGLANG
This commit is contained in:
parent
1bd3e771a0
commit
95c76a6fa6
1 changed files with 24 additions and 22 deletions
46
.github/workflows/ci.yml
vendored
46
.github/workflows/ci.yml
vendored
|
|
@ -276,29 +276,31 @@ jobs:
|
||||||
source $GITHUB_WORKSPACE/Tools/CI-linux-environment.sh
|
source $GITHUB_WORKSPACE/Tools/CI-linux-environment.sh
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
if test -z "$SWIGLANG"; then make $SWIGJOBS check-ccache; fi
|
if test -z "$SWIGLANG"; then
|
||||||
if test -z "$SWIGLANG"; then make $SWIGJOBS check-errors-test-suite; fi
|
make $SWIGJOBS check-ccache
|
||||||
|
make $SWIGJOBS check-errors-test-suite
|
||||||
|
else
|
||||||
|
case "$SWIGLANG" in
|
||||||
|
javascript)
|
||||||
|
case "$ENGINE" in
|
||||||
|
v8 | jsc)
|
||||||
|
# Running tests using v8 or jsc involves creating a custom
|
||||||
|
# interpreter in Tools/javascript, which is currently broken
|
||||||
|
# for parallel builds (we attempt to update this interpreter
|
||||||
|
# while running, resulting in "Text file busy" error).
|
||||||
|
unset SWIGJOBS
|
||||||
|
esac
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
case "$SWIGLANG" in
|
# Stricter compile flags for examples. Various headers and SWIG generated code prevents full use of -pedantic.
|
||||||
javascript)
|
cflags=$($GITHUB_WORKSPACE/Tools/testflags.py --language $SWIGLANG --cflags --std=$CSTD --compiler=$CC) && echo $cflags
|
||||||
case "$ENGINE" in
|
cxxflags=$($GITHUB_WORKSPACE/Tools/testflags.py --language $SWIGLANG --cxxflags --std=$CPPSTD --compiler=$CC) && echo $cxxflags
|
||||||
v8 | jsc)
|
make check-$SWIGLANG-version
|
||||||
# Running tests using v8 or jsc involves creating a custom
|
make check-$SWIGLANG-enabled
|
||||||
# interpreter in Tools/javascript, which is currently broken
|
make $SWIGJOBS check-$SWIGLANG-examples CFLAGS="$cflags" CXXFLAGS="$cxxflags"
|
||||||
# for parallel builds (we attempt to update this interpreter
|
make $SWIGJOBS check-$SWIGLANG-test-suite CFLAGS="$cflags" CXXFLAGS="$cxxflags"
|
||||||
# while running, resulting in "Text file busy" error).
|
fi
|
||||||
unset SWIGJOBS
|
|
||||||
esac
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
# Stricter compile flags for examples. Various headers and SWIG generated code prevents full use of -pedantic.
|
|
||||||
if test -n "$SWIGLANG"; then cflags=$($GITHUB_WORKSPACE/Tools/testflags.py --language $SWIGLANG --cflags --std=$CSTD --compiler=$CC) && echo $cflags; fi
|
|
||||||
if test -n "$SWIGLANG"; then cxxflags=$($GITHUB_WORKSPACE/Tools/testflags.py --language $SWIGLANG --cxxflags --std=$CPPSTD --compiler=$CC) && echo $cxxflags; fi
|
|
||||||
if test -n "$SWIGLANG"; then make check-$SWIGLANG-version; fi
|
|
||||||
if test -n "$SWIGLANG"; then make check-$SWIGLANG-enabled; fi
|
|
||||||
if test -n "$SWIGLANG"; then make $SWIGJOBS check-$SWIGLANG-examples CFLAGS="$cflags" CXXFLAGS="$cxxflags"; fi
|
|
||||||
if test -n "$SWIGLANG"; then make $SWIGJOBS check-$SWIGLANG-test-suite CFLAGS="$cflags" CXXFLAGS="$cxxflags"; fi
|
|
||||||
|
|
||||||
- name: Install
|
- name: Install
|
||||||
working-directory: build/build
|
working-directory: build/build
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue