summaryrefslogtreecommitdiff
path: root/yarn.tests/selected-test.script
blob: 69c1679dd12b48a45551d4684057b5dd8d6cb9fe (plain)
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

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