Patrick Kelley 8fd444092b initial
2025-05-07 15:35:15 -04:00

22 lines
538 B
Plaintext

# Tests that using a branch works in the config.
#
# @TEST-EXEC: bash %INPUT
echo "\
[sources]
one = $(pwd)/sources/one@drop-corge
two = $(pwd)/sources/two
[paths]
state_dir = $(pwd)/state
script_dir = $(pwd)/scripts
plugin_dir = $(pwd)/plugins
" >> my.config
# No more corge to be found
# @TEST-EXEC: zkg --config my.config search corge > search.out
# @TEST-EXEC: grep -m 1 'no matches' search.out
# quux is in source two
# @TEST-EXEC: zkg --config my.config search quux > search.out
# @TEST-EXEC: grep -m 1 'two/eve/quux' search.out