Skip to content
This repository has been archived by the owner on May 7, 2024. It is now read-only.

Commit

Permalink
testing: fix my confusion on rust/cargo
Browse files Browse the repository at this point in the history
  • Loading branch information
leedagee committed Sep 30, 2023
1 parent 0ca6838 commit 3859080
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions etc/autobuild/ab3_defcfg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ ABTEST_AUTO_DETECT=yes
ABTEST_ABORT_BUILD=yes
ABTEST_TESTEXEC=plain
ABTEST_AUTO_DETECT_STAGE=post-build
ABTESTTYPE_rust_STAGE=post-build
NOTEST=no

##OS Directory Tree
Expand Down
4 changes: 2 additions & 2 deletions lib/tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,9 @@ abtest_gen_default() {
ABTEST_default_TESTEXEC=$ABTEST_TESTEXEC
ABTEST_default_TESTDES="Automatically generated tests for $ABTYPE"
case $ABTYPE in
cargo)
rust)
abinfo "Found cargo project, using cargo test as default test ..."
ABTEST_default_TESTTYPE=cargo
ABTEST_default_TESTTYPE=rust
ABTEST_default_CARGO_TEST_AFTER="$CARGO_TEST_AFTER"
;;
*)
Expand Down
1 change: 0 additions & 1 deletion proc/10-tests_scan.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ if bool $NOTEST; then
ABTESTS=""
TESTDEP="" # Empty TESTDEPS by explicitly override it
else
abinfo "Currently enabled tests are: $ABTESTS"
abrequire tests
export ABTEST_RESULT_OUTPUT="$SRCDIR/abtestoutput.txt"
echo -n "" > "$ABTEST_RESULT_OUTPUT"
Expand Down
2 changes: 2 additions & 0 deletions proc/31-tests_probe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ if bool $ABTEST_AUTO_DETECT; then
ABTESTS="$ABTESTS default"
fi
fi

abinfo "Currently enabled tests are: $ABTESTS"
4 changes: 2 additions & 2 deletions tests/cargo.sh → tests/rust.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
abtest_cargo_run() {
abtest_rust_test() {
abinfo "Running cargo test ..."
cargo test \
--path "$SRCDIR/Cargo.toml" \
--manifest-path "$SRCDIR/Cargo.toml" \
--no-fail-fast -r \
${CARGO_TEST_AFTER}
}

0 comments on commit 3859080

Please sign in to comment.