Skip to content

Commit 4da2dc1

Browse files
committed
fix: remove macro crates from testing
Testing macro crates results in a "could not find stdlib.so" error. This was not an issue before rust 1.83 because libstd.so included in the sysroot but now it causes an error. See rust-lang/rust#131188 See xd009642/tarpaulin#1642
1 parent 3d8a4fc commit 4da2dc1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

justfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ GENERATED_CRATES := `find ./styx/generated -mindepth 1 -maxdepth 1 -type d -name
2121
EXAMPLE_CRATES := `find ./examples -mindepth 1 -maxdepth 1 -type d -exec test -e "{}/Cargo.toml" \; -print -prune | xargs -n1 basename`
2222
INCUBATION_CRATES := `find ./incubation -mindepth 1 -maxdepth 1 -type d -exec test -e "{}/Cargo.toml" \; -print -prune | xargs -n1 basename`
2323
DB_CONTAINER_CRATES := `echo "styx-dbutil styx-dbmodel styx-migration"`
24+
# useful to exclude from tests which cause errors when run
25+
MACRO_CRATES := `echo "styx-macros styx-macros-args typhunix-macros"`
2426
SRC_CRATES := `find ./styx/core -mindepth 1 -maxdepth 1 -type d -exec test -e "{}/Cargo.toml" \; -print -prune | xargs -n1 basename`
2527

2628
# crates to ignore for tests
@@ -47,7 +49,7 @@ license-check:
4749
full-cargo-test: cargo-test cargo-doc-test cargo-test-bindings
4850
cargo-test: cargo-test-deps
4951
#!/bin/bash -e
50-
IGNORE_CRATES=`a=({{ DB_CONTAINER_CRATES }}); echo "${a[@]/#/--exclude }"`
52+
IGNORE_CRATES=`a=({{ DB_CONTAINER_CRATES }} {{ MACRO_CRATES }}); echo "${a[@]/#/--exclude }"`
5153
cargo nextest run --workspace --lib --bins --tests $IGNORE_CRATES # no benches
5254

5355
cargo-test-bindings:

0 commit comments

Comments
 (0)