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

15 lines
555 B
Plaintext

# This test involves package testing, for which zkg internally requires
# zeek-config. So require a Zeek install:
# @TEST-REQUIRES: type zeek-config
# @TEST-EXEC: bash %INPUT
# @TEST-EXEC: zkg install foo
# @TEST-EXEC: btest-diff state/logs/foo-build.log
# @TEST-EXEC: TEST_DIFF_CANONIFIER=$SCRIPTS/diff-remove-cwd btest-diff state/testing/foo/clones/test.log
cd packages/foo
echo 'build_command = cd "%(package_base)s" && ls' >> zkg.meta
echo 'test_command = echo "%(package_base)s" > %(package_base)s/test.log' >> zkg.meta
git commit -am 'new stuff'