CI: Run cross-platform tests on all platforms

Except Linux netlink and msys2-clang32 where they don't work.
This commit is contained in:
Ingvar Stepanyan
2023-11-25 02:30:00 +00:00
committed by Tormod Volden
parent 5fa085efb7
commit e28fa3069a
5 changed files with 21 additions and 9 deletions

View File

@@ -29,7 +29,8 @@ jobs:
- name: netlink
shell: bash
run: .private/ci-build.sh --build-dir build-netlink -- --disable-udev
# Disable tests for netlink as it doesn't seem to work in the CI environment.
run: .private/ci-build.sh --build-dir build-netlink --no-test -- --disable-udev
- name: udev
shell: bash

View File

@@ -18,4 +18,8 @@ jobs:
run: |
echo 'Running in MSYS2!'
./bootstrap.sh
./.private/ci-build.sh --build-dir build-msys2-clang32
# Disabling tests as there is some issue that prevents libtool from
# finalizing its executable wrappers.
# Perhaps this one https://github.com/msys2/MSYS2-packages/issues/1351
# but it only occurs on clang32 configuration.
./.private/ci-build.sh --build-dir build-msys2-clang32 --no-test

View File

@@ -4,6 +4,7 @@ set -e
builddir=
install=no
test=yes
while [ $# -gt 0 ]; do
case "$1" in
@@ -19,6 +20,10 @@ while [ $# -gt 0 ]; do
install=yes
shift
;;
--no-test)
test=no
shift
;;
--)
shift
break;
@@ -60,6 +65,14 @@ echo ""
echo "Building ..."
make -j4 -k
if [ "${test}" = "yes" ]; then
for test_name in init_context set_option stress stress_mt; do
echo ""
echo "Running test '${test_name}' ..."
./tests/${test_name}
done
fi
if [ "${install}" = "yes" ]; then
echo ""
echo "Installing ..."

View File

@@ -61,11 +61,5 @@ make -j4 -k
echo ""
echo "Running umockdev tests ..."
tests/umockdev
echo "Running stress tests ..."
tests/stress
tests/stress_mt
EOG
EOF

View File

@@ -1 +1 @@
#define LIBUSB_NANO 11821
#define LIBUSB_NANO 11822