diff --git a/.github/workflows/coreutils-args-drift.yml b/.github/workflows/coreutils-args-drift.yml index 783ce91d9..69d93471d 100644 --- a/.github/workflows/coreutils-args-drift.yml +++ b/.github/workflows/coreutils-args-drift.yml @@ -176,7 +176,7 @@ jobs: - name: Run cat/tac spec tests working-directory: bashkit - run: cargo test -p bashkit --test integration bash_spec_tests + run: cargo test -p bashkit --test integration -- spec_tests::bash_spec_tests # Body-drift gate: rebuild the matching uutils binaries from the # *same* tree the args codegen ran against, then run the @@ -193,7 +193,7 @@ jobs: working-directory: bashkit env: BASHKIT_RUN_COREUTILS_DIFF: '1' - run: cargo test -p bashkit --test coreutils_differential_tests + run: cargo test -p bashkit --test integration -- coreutils_differential_tests:: - name: Capture drift patch id: diff diff --git a/crates/bashkit/tests/integration/spec_tests.rs b/crates/bashkit/tests/integration/spec_tests.rs index 66aa47f9f..32a1f0c76 100644 --- a/crates/bashkit/tests/integration/spec_tests.rs +++ b/crates/bashkit/tests/integration/spec_tests.rs @@ -1,6 +1,6 @@ //! Spec test integration - runs all .test.sh files against Bashkit //! -//! Run with: cargo test --test spec_tests +//! Run with: cargo test --test integration -- spec_tests:: //! //! Test files are in tests/spec_cases/{bash,awk,grep,sed,jq}/ //! diff --git a/justfile b/justfile index 80405866f..644575971 100644 --- a/justfile +++ b/justfile @@ -55,15 +55,15 @@ check-bash-compat-verbose: # Generate comprehensive compatibility report compat-report: - cargo test --test spec_tests -- compatibility_report --ignored --nocapture + cargo test --test integration -- spec_tests::bash_comparison_tests --ignored --nocapture # Run differential fuzzing tests (grammar-based proptest) fuzz-diff: - cargo test --test proptest_differential -- --nocapture + cargo test --test integration -- proptest_differential:: --nocapture # Run differential fuzzing with more iterations fuzz-diff-deep: - PROPTEST_CASES=500 cargo test --test proptest_differential -- --nocapture + PROPTEST_CASES=500 cargo test --test integration -- proptest_differential:: --nocapture # Clean build artifacts clean: diff --git a/scripts/update-spec-expected.sh b/scripts/update-spec-expected.sh index afe13c005..9d1d47621 100755 --- a/scripts/update-spec-expected.sh +++ b/scripts/update-spec-expected.sh @@ -15,7 +15,7 @@ # 3. Or add ### bash_diff marker if the difference is intentional # # This is a wrapper around: -# cargo test --test spec_tests -- bash_comparison_tests --ignored +# cargo test --test integration -- spec_tests::bash_comparison_tests --ignored set -euo pipefail @@ -62,9 +62,9 @@ echo "Checking spec tests against real bash..." echo "" if $VERBOSE; then - cargo test --test spec_tests -- bash_comparison_tests --ignored --nocapture 2>&1 + cargo test --test integration -- spec_tests::bash_comparison_tests --ignored --nocapture 2>&1 else - cargo test --test spec_tests -- bash_comparison_tests --ignored 2>&1 + cargo test --test integration -- spec_tests::bash_comparison_tests --ignored 2>&1 fi exit_code=$?