Skip to content

Commit f553033

Browse files
committed
tests: Ensure all tests in the workspace are run
Specifically, this should ensure that unit tests in the `libc` crate don't get missed.
1 parent 42e5708 commit f553033

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

ci/run.sh

+5-6
Original file line numberDiff line numberDiff line change
@@ -84,16 +84,15 @@ cmd="cargo test --target $target ${LIBC_CI_ZBUILD_STD+"-Zbuild-std"}"
8484

8585
# Run tests in the `libc` crate
8686
case "$target" in
87+
# Only run `libc-test`
8788
# FIXME(android): unit tests fail to start on Android
8889
# FIXME(s390x): unit tests fail to locate glibc
89-
*android*) ;;
90-
*s390x*) ;;
91-
*) $cmd
90+
*android*) cmd="$cmd --manifest-path libc-test/Cargo.toml" ;;
91+
*s390x*) cmd="$cmd --manifest-path libc-test/Cargo.toml" ;;
92+
# For all other platforms, test everything in the workspace
93+
*) cmd="$cmd --workspace"
9294
esac
9395

94-
# Everything else is in `libc-test`
95-
cmd="$cmd --manifest-path libc-test/Cargo.toml"
96-
9796
if [ "$target" = "s390x-unknown-linux-gnu" ]; then
9897
# FIXME: s390x-unknown-linux-gnu often fails to test due to timeout,
9998
# so we retry this N times.

0 commit comments

Comments
 (0)