23 lines
565 B
Plaintext
23 lines
565 B
Plaintext
# @TEST-DOC: Ensure a package that requires a certain spicy-plugin version works with built-in spicy.
|
|
#
|
|
# @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 >=6.0.0
|
|
EOF
|
|
git commit -am 'foo: depends on spicy-plugin'
|
|
)
|