summaryrefslogtreecommitdiff
path: root/yarn.tests/selected-test.script
blob: 2c4521d60c11842f0497484c8cba593421cb2b15 (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

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