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

49 lines
1.5 KiB
Plaintext

# @TEST-EXEC: bash %INPUT
# @TEST-EXEC: zkg install foo baz
# @TEST-EXEC: zkg install bar --version 1.0.0
# @TEST-EXEC: zkg bundle test.bundle
# @TEST-EXEC: zkg purge
# @TEST-EXEC: zkg unbundle test.bundle
# @TEST-EXEC: zkg list installed > snapshot.out
# @TEST-EXEC: btest-diff snapshot.out
# @TEST-EXEC: zkg purge
# @TEST-EXEC: zkg bundle test.bundle --manifest foo bar baz
# @TEST-EXEC: zkg unbundle test.bundle
# @TEST-EXEC: zkg list installed > args.out
# @TEST-EXEC: btest-diff args.out
# @TEST-EXEC: zkg purge
# @TEST-EXEC: zkg bundle test.bundle --manifest manifest.txt
# @TEST-EXEC: zkg unbundle test.bundle
# @TEST-EXEC: zkg list installed > manifest.out
# @TEST-EXEC: btest-diff manifest.out
default_branch_name=$( cd packages/baz && git rev-parse --abbrev-ref HEAD )
echo "[bundle]" > manifest.txt
echo "foo = 1.0.0" >> manifest.txt
echo "bar = 1.0.1" >> manifest.txt
echo "baz = ${default_branch_name}" >> manifest.txt
cd packages/foo
echo 'print "foo 1.0.0";' > __load__.zeek
git commit -am 'new stuff'
git tag -a 1.0.0 -m 1.0.0
echo 'print "foo 1.0.1";' > __load__.zeek
git commit -am 'new stuff'
git tag -a 1.0.1 -m 1.0.1
echo 'print "foo 1.0.2";' > __load__.zeek
git commit -am 'new stuff'
git tag -a 1.0.2 -m 1.0.2
cd ../bar
echo 'print "bar 1.0.0";' > __load__.zeek
git commit -am 'new stuff'
git tag -a 1.0.0 -m 1.0.0
echo 'print "bar 1.0.1";' > __load__.zeek
git commit -am 'new stuff'
git tag -a 1.0.1 -m 1.0.1
echo 'print "bar 1.0.2";' > __load__.zeek
git commit -am 'new stuff'
git tag -a 1.0.2 -m 1.0.2