ripgrep/tests
Sungjoon Moon 0a88cccd51
Some checks failed
ci / test (push) Has been cancelled
ci / wasm (push) Has been cancelled
ci / rustfmt (push) Has been cancelled
ci / docs (push) Has been cancelled
ci / Compile Fuzz Test Targets (push) Has been cancelled
Fix compression tests in QEMU cross-compilation environments (#3248)
* tests: fix cmd_exists for QEMU environments

QEMU user-mode has a bug where posix_spawn returns success even when
the command doesn't exist. The child exits with 127, but the parent
thinks it succeeded.

Change cmd_exists to check if the command actually ran successfully
(exit code 0), not just if spawn returned Ok.

This fixes compression tests on riscv64 and other QEMU-emulated
architectures.

Ref https://github.com/rust-lang/rust/issues/90825

* tests: remove riscv64 skip for compression tests

Remove the cfg guards that disabled lz4, brotli, and zstd tests on
riscv64. These now work with the QEMU fix.
2025-12-17 11:38:12 -05:00
..
data tests: fix tests for buffer size change 2021-03-23 18:14:18 -04:00
binary.rs cli: document that -c/--count can be inconsistent with -l/--files-with-matches 2025-09-22 20:24:53 -04:00
feature.rs test: attempt to fix flaky time-reliant test 2025-10-10 22:06:59 -04:00
hay.rs tests: re-tool integration tests 2018-08-20 07:10:19 -04:00
json.rs style: simplify string formatting 2025-09-19 21:08:19 -04:00
macros.rs style: rustfmt everything 2020-02-17 19:24:53 -05:00
misc.rs Fix compression tests in QEMU cross-compilation environments (#3248) 2025-12-17 11:38:12 -05:00
multiline.rs printer: vimgrep now only prints one line 2021-05-31 21:51:18 -04:00
regression.rs ignore: fix global gitignore bug that arises with absolute paths 2025-10-15 19:44:23 -04:00
tests.rs binary: rejigger ripgrep's handling of binary files 2019-04-14 19:29:27 -04:00
util.rs Fix compression tests in QEMU cross-compilation environments (#3248) 2025-12-17 11:38:12 -05:00