test: Add test to ensure ripgrep works

This is intended to make debugging CI issues easier in the future.
This commit is contained in:
Ethan P 2023-03-20 23:06:07 -07:00
parent 428a78837d
commit 76906ca014
No known key found for this signature in database
GPG Key ID: A15E33AC0325A3F5

View File

@ -124,3 +124,13 @@ test:output_without_separator() {
batgrep "ca" file.txt --no-separator --color=always
}
test:sanity_rg_works() {
description "Ensure the ripgrep executable works"
require_rg
rg --version
rg "ca" file.txt | grep "ca" || fail "Ripgrep executable not working."
}