Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/coreutils-args-drift.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion crates/bashkit/tests/integration/spec_tests.rs
Original file line number Diff line number Diff line change
@@ -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}/
//!
Expand Down
6 changes: 3 additions & 3 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Comment on lines 56 to +58

# 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:
Expand Down
6 changes: 3 additions & 3 deletions scripts/update-spec-expected.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Comment on lines +65 to +67
fi

exit_code=$?
Expand Down
Loading