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

23 lines
553 B
Plaintext

# @TEST-DOC: Ensure a package that requires spicy-plugin installs when spicy-plugin is built-in
#
# @TEST-REQUIRES: zeek -e 'exit(Version::at_least("6.0.0") ? 0 : 1)'
#
# @TEST-EXEC: bash %INPUT
# @TEST-EXEC: zkg install foo > output
# @TEST-EXEC: btest-diff output
# @TEST-EXEC: btest-diff package.log
#
export LOG=$(pwd)/package.log
(
cd packages/foo
cat >>zkg.meta <<EOF
test_command = echo "Testing foo" >> $LOG
build_command = echo "Building foo" >> $LOG
depends =
spicy-plugin *
EOF
git commit -am 'foo: depends on spicy-plugin'
)