29 lines
684 B
Plaintext
29 lines
684 B
Plaintext
# "zkg test" internally requires zeek-config
|
|
# @TEST-REQUIRES: type zeek-config
|
|
|
|
# @TEST-EXEC: bash %INPUT
|
|
#
|
|
# @TEST-EXEC: zkg test foo
|
|
#
|
|
# @TEST-EXEC: zkg install foo
|
|
# @TEST-EXEC: test -d bin
|
|
# @TEST-EXEC: test -L bin/exec1 && test -L bin/exec2
|
|
# @TEST-EXEC: ./bin/exec1 >>output
|
|
# @TEST-EXEC: ./bin/exec2 >>output
|
|
# @TEST-EXEC: btest-diff output
|
|
#
|
|
# @TEST-EXEC: zkg remove foo
|
|
# @TEST-EXEC: test '!' -e bin/exec1 && test '!' -e bin/exec2
|
|
|
|
cd packages/foo
|
|
echo "test_command = true" >>zkg.meta
|
|
echo "executables = x/exec1 x/exec2 " >>zkg.meta
|
|
|
|
mkdir x
|
|
echo "echo from exec1" >x/exec1
|
|
echo "echo from exec2" >x/exec2
|
|
chmod +x x/exec1 x/exec2
|
|
|
|
git add *
|
|
git commit -m 'new stuff'
|