File: selected-test.script

package info (click to toggle)
cmdtest 0.32-3
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 540 kB
  • sloc: python: 1,358; sh: 220; makefile: 2
file content (18 lines) | stat: -rwxr-xr-x 293 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

set -eu

cat << EOF > "$DATADIR/test.yarn"
    SCENARIO bar test
    THEN do bar

    SCENARIO foo test
    THEN do foo

    IMPLEMENTS THEN do (.*)
    touch "$DATADIR/\$MATCH_1"
EOF

./run-yarn "$DATADIR/test.yarn" --run 'foo test'
test -e "$DATADIR/foo"
! test -e "$DATADIR/bar"