diff --git a/tests/run.sh b/tests/run.sh index 663087b..13d562c 100755 --- a/tests/run.sh +++ b/tests/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # tests/run.sh — run every tests/test_*.sh, report pass/fail. set -uo pipefail diff --git a/tests/test_auto_at_placeholder.sh b/tests/test_auto_at_placeholder.sh index 672073e..3891a93 100755 --- a/tests/test_auto_at_placeholder.sh +++ b/tests/test_auto_at_placeholder.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Feature test: when the coverage binary is built from the cov-analysis driver # (it reads inputs from file arguments, not stdin) and the user forgot the @@ # placeholder, cov-analysis must behave as if " @@" had been given. diff --git a/tests/test_build_environment.sh b/tests/test_build_environment.sh index c68c80a..00a5f52 100755 --- a/tests/test_build_environment.sh +++ b/tests/test_build_environment.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -uo pipefail cd "$(dirname "$0")/.." diff --git a/tests/test_ci_workflow.sh b/tests/test_ci_workflow.sh index 5ef38a1..6770d45 100644 --- a/tests/test_ci_workflow.sh +++ b/tests/test_ci_workflow.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -uo pipefail cd "$(dirname "$0")/.." diff --git a/tests/test_command_model.sh b/tests/test_command_model.sh index 2ee9406..184492d 100755 --- a/tests/test_command_model.sh +++ b/tests/test_command_model.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -uo pipefail cd "$(dirname "$0")/.." diff --git a/tests/test_commands.sh b/tests/test_commands.sh index 44975cf..30428ab 100755 --- a/tests/test_commands.sh +++ b/tests/test_commands.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # End-to-end integration test exercising every cov-analysis command against the # tests/test.c LLVMFuzzerTestOneInput target (a magic-value NULL-deref crash on # inputs of the form "FA$$$"). Gated on clang/llvm-cov/llvm-profdata/make; skips diff --git a/tests/test_diff_line_states.sh b/tests/test_diff_line_states.sh index ac3645c..c975a91 100755 --- a/tests/test_diff_line_states.sh +++ b/tests/test_diff_line_states.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -uo pipefail cd "$(dirname "$0")/.." diff --git a/tests/test_diff_no_args.sh b/tests/test_diff_no_args.sh index 8322f8d..c6e1543 100755 --- a/tests/test_diff_no_args.sh +++ b/tests/test_diff_no_args.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Behavior test: `cov-analysis diff` with no arguments and no default reports in # the current directory prints help (exit 0) instead of erroring. When a default # report IS present, the original "report does not exist" error is preserved. diff --git a/tests/test_driver.sh b/tests/test_driver.sh index af9d4a6..2f88056 100755 --- a/tests/test_driver.sh +++ b/tests/test_driver.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -uo pipefail cd "$(dirname "$0")/.." diff --git a/tests/test_find_crash_timeout_files.sh b/tests/test_find_crash_timeout_files.sh index 4a9d29a..e09840b 100755 --- a/tests/test_find_crash_timeout_files.sh +++ b/tests/test_find_crash_timeout_files.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Verify find_crash_timeout_files emits the right set per layout. set -uo pipefail diff --git a/tests/test_find_queue_files.sh b/tests/test_find_queue_files.sh index edd6ba1..8b5486d 100755 --- a/tests/test_find_queue_files.sh +++ b/tests/test_find_queue_files.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Verify find_queue_files emits the right set of paths per layout. set -uo pipefail diff --git a/tests/test_find_tool.sh b/tests/test_find_tool.sh index 57f20c3..a998612 100755 --- a/tests/test_find_tool.sh +++ b/tests/test_find_tool.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Verify find_tool() selects the LLVM tool matching the chosen clang version. # # Regression: with CC=clang-22 selected, find_tool must return llvm-profdata-22 diff --git a/tests/test_install.sh b/tests/test_install.sh index f627fd1..2d273f9 100755 --- a/tests/test_install.sh +++ b/tests/test_install.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -uo pipefail cd "$(dirname "$0")/.." diff --git a/tests/test_large_argument_sets.sh b/tests/test_large_argument_sets.sh index fb53bd8..8a6bf86 100755 --- a/tests/test_large_argument_sets.sh +++ b/tests/test_large_argument_sets.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -uo pipefail cd "$(dirname "$0")/.." diff --git a/tests/test_layout_detection.sh b/tests/test_layout_detection.sh index c94b566..877cfd8 100755 --- a/tests/test_layout_detection.sh +++ b/tests/test_layout_detection.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Verify detect_fuzzer_layout() correctly classifies each supported layout. set -uo pipefail diff --git a/tests/test_llvm_version_hint.sh b/tests/test_llvm_version_hint.sh index d33a82c..49d66d5 100755 --- a/tests/test_llvm_version_hint.sh +++ b/tests/test_llvm_version_hint.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -uo pipefail cd "$(dirname "$0")/.." diff --git a/tests/test_prerequisites.sh b/tests/test_prerequisites.sh index 3d19d3e..0fb5500 100755 --- a/tests/test_prerequisites.sh +++ b/tests/test_prerequisites.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -uo pipefail cd "$(dirname "$0")/.." diff --git a/tests/test_reachability.sh b/tests/test_reachability.sh index 1b32276..22ca0ea 100755 --- a/tests/test_reachability.sh +++ b/tests/test_reachability.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Verify reachability-aware annotation of llvm-cov's own reports: cross coverage # with the fuzz-reachability tool's output and, in place, # - tint each function's lines in the HTML file view (dark grey = unreachable, diff --git a/tests/test_reachability_cpp_e2e.sh b/tests/test_reachability_cpp_e2e.sh index efbdcf9..5ef817a 100755 --- a/tests/test_reachability_cpp_e2e.sh +++ b/tests/test_reachability_cpp_e2e.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # tests/test_reachability_cpp_e2e.sh — C++ keystone round-trip: fuzz-reachability's # static analysis of a deliberately adversarial C++ harness (every indirect-call # flavor, plus red-herring and genuinely-dead functions) cross-referenced against diff --git a/tests/test_reachability_rust_e2e.sh b/tests/test_reachability_rust_e2e.sh index d40944f..7101ee6 100755 --- a/tests/test_reachability_rust_e2e.sh +++ b/tests/test_reachability_rust_e2e.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # tests/test_reachability_rust_e2e.sh — keystone round-trip: fuzz-reachability's # static analysis of a real Rust staticlib, cross-referenced against a real # `-Cinstrument-coverage` build replayed through llvm-cov, via cov-analysis's diff --git a/tests/test_reachability_rust_v0_e2e.sh b/tests/test_reachability_rust_v0_e2e.sh index e1b6ddf..e252658 100755 --- a/tests/test_reachability_rust_v0_e2e.sh +++ b/tests/test_reachability_rust_v0_e2e.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -uo pipefail cd "$(dirname "$0")/.." diff --git a/tests/test_reachability_ziggy_e2e.sh b/tests/test_reachability_ziggy_e2e.sh index cb36305..eccc2e1 100755 --- a/tests/test_reachability_ziggy_e2e.sh +++ b/tests/test_reachability_ziggy_e2e.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # tests/test_reachability_ziggy_e2e.sh — cargo-ziggy keystone round-trip: # fuzz-reachability analyses a real cargo-ziggy fuzz target (rooted at `main` via # the `ziggy::fuzz!` closure, the ziggy entry) with `--lang ziggy --mangling v0`, diff --git a/tests/test_report_transaction.sh b/tests/test_report_transaction.sh index 909dc21..15eb35c 100755 --- a/tests/test_report_transaction.sh +++ b/tests/test_report_transaction.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -uo pipefail cd "$(dirname "$0")/.." diff --git a/tests/test_rust_llvm_toolchain.sh b/tests/test_rust_llvm_toolchain.sh index b775012..5b4070d 100755 --- a/tests/test_rust_llvm_toolchain.sh +++ b/tests/test_rust_llvm_toolchain.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -uo pipefail cd "$(dirname "$0")/.." diff --git a/tests/test_search.sh b/tests/test_search.sh index 1862f2b..8e2ccfc 100755 --- a/tests/test_search.sh +++ b/tests/test_search.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Tests for the `search` subcommand: pure helpers (always) + an integration # test gated on clang/llvm-cov (skipped cleanly when the toolchain is absent). set -uo pipefail diff --git a/tests/test_search_crash_only.sh b/tests/test_search_crash_only.sh index 34087b3..4dbde90 100755 --- a/tests/test_search_crash_only.sh +++ b/tests/test_search_crash_only.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -uo pipefail cd "$(dirname "$0")/.." diff --git a/tests/test_stability_executed_lines.sh b/tests/test_stability_executed_lines.sh index 22d0a08..884afe5 100755 --- a/tests/test_stability_executed_lines.sh +++ b/tests/test_stability_executed_lines.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -uo pipefail cd "$(dirname "$0")/.." diff --git a/tests/test_stability_resilience.sh b/tests/test_stability_resilience.sh index f8dacf5..58d2938 100755 --- a/tests/test_stability_resilience.sh +++ b/tests/test_stability_resilience.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Regression test: a single failed pass must NOT abort the whole stability run. # # Reproduces the reported bug "llvm-profdata merge failed for pass 4" aborting diff --git a/tests/test_timeout_enforcement.sh b/tests/test_timeout_enforcement.sh index 9bd7e98..441e17c 100755 --- a/tests/test_timeout_enforcement.sh +++ b/tests/test_timeout_enforcement.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -uo pipefail cd "$(dirname "$0")/.."