File: test

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 (29 lines) | stat: -rw-r--r-- 793 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
# "zkg test" internally requires zeek-config
# @TEST-REQUIRES: type zeek-config

# @TEST-EXEC: bash %INPUT
# @TEST-EXEC: zkg test rot13

# @TEST-EXEC: bash we_need_to_go_deeper
# @TEST-EXEC-FAIL: zkg test rot13

echo "$(pwd)/packages/rot13" >> sources/one/bob/zkg.index
cd sources/one
git commit -am 'add rot13 package'

cd ../../packages/rot13
echo 'depends = bar *' >> zkg.meta
echo -e "@load bar\n$(cat scripts/Demo/Rot13/__load__.zeek)" > scripts/Demo/Rot13/__load__.zeek

cd testing/Baseline/tests.main
echo "rot13 plugin is loaded" > output
echo "bar loaded" >> output
echo "rot13 script is loaded" >> output

git commit -am 'new stuff'

@TEST-START-FILE we_need_to_go_deeper
cd packages/rot13
echo 'hello' > testing/Baseline/tests.rot13/output
git commit -am 'new stuff'
@TEST-END-FILE