mirror of
https://github.com/shadps4-emu/ext-libusb.git
synced 2026-01-31 00:55:21 +01:00
CI: Run cross-platform tests on all platforms
Except Linux netlink and msys2-clang32 where they don't work.
This commit is contained in:
committed by
Tormod Volden
parent
5fa085efb7
commit
e28fa3069a
3
.github/workflows/linux.yml
vendored
3
.github/workflows/linux.yml
vendored
@@ -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
|
||||
|
||||
6
.github/workflows/msys2_clang32.yml
vendored
6
.github/workflows/msys2_clang32.yml
vendored
@@ -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
|
||||
|
||||
@@ -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 ..."
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
|
||||
@@ -1 +1 @@
|
||||
#define LIBUSB_NANO 11821
|
||||
#define LIBUSB_NANO 11822
|
||||
|
||||
Reference in New Issue
Block a user