File: bundle-missing-dependency

package info (click to toggle)
zkg 3.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,740 kB
  • sloc: python: 5,910; sh: 268; makefile: 265; cpp: 24
file content (33 lines) | stat: -rw-r--r-- 1,016 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# @TEST-DOC: Create a bundle by hand with a package depending on "zkg-test-plugin" which does not exist, observe a warning during unbundling.
#
# @TEST-REQUIRES: zeek -e 'exit(Version::at_least("6.0.0") ? 0 : 1)'
# @TEST-REQUIRES: tar --version
#
# @TEST-EXEC: bash %INPUT
#
# @TEST-EXEC: zkg unbundle bundle.tar >> output
# @TEST-EXEC: zkg list >> output
# @TEST-EXEC: btest-diff output
# @TEST-EXEC: TEST_DIFF_CANONIFIER='sed -r "s/[0-9]{2}/XX/g" | $SCRIPTS/diff-remove-abspath btest-diff' btest-diff .stderr
# @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 =
  zkg-test-plugin >=6.0.0
EOF
    git commit -am 'foo: depends on zkg-test-plugin'
    git checkout -b origin/main
)

# Create a bundle
mkdir the-bundle
cp -R packages/foo ./the-bundle
echo -e '[bundle]\n/one/alice/foo = main' >> the-bundle/manifest.txt
tar -cf bundle.tar -C ./the-bundle .