dist: Add extra files to tarball.
[goals.git] / tests / 20-option-keep-going.sh
1 #!/usr/bin/env bash
2 # Goals test.
3 # Copyright (C) 2020 Richard W.M. Jones
4 # Copyright (C) 2020 Red Hat Inc.
5 #
6 # This program is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 2 of the License, or
9 # (at your option) any later version.
10 #
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 # GNU General Public License for more details.
15 #
16 # You should have received a copy of the GNU General Public License along
17 # with this program; if not, write to the Free Software Foundation, Inc.,
18 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19
20 set -e
21
22 if goals -k -f 20-option-keep-going.gl > 20-option-keep-going.out 2>&1; then
23     echo "$0: expected goals to exit with an error"
24     exit 1
25 fi
26 fgrep FAIL2 20-option-keep-going.out
27 fgrep FAIL3 20-option-keep-going.out
28 fgrep GOOD3 20-option-keep-going.out
29 fgrep GOOD4 20-option-keep-going.out
30 fgrep GOOD5 20-option-keep-going.out
31 fgrep GOOD6 20-option-keep-going.out
32 fgrep GOOD7 20-option-keep-going.out
33 fgrep GOOD8 20-option-keep-going.out
34 fgrep GOOD9 20-option-keep-going.out
35 fgrep GOOD10 20-option-keep-going.out
36 fgrep GOOD11 20-option-keep-going.out
37 fgrep GOOD12 20-option-keep-going.out
38 fgrep GOOD13 20-option-keep-going.out
39 fgrep GOOD14 20-option-keep-going.out
40 fgrep GOOD15 20-option-keep-going.out
41 fgrep GOOD16 20-option-keep-going.out
42 fgrep GOOD17 20-option-keep-going.out
43 fgrep GOOD18 20-option-keep-going.out
44 fgrep GOOD19 20-option-keep-going.out
45 fgrep GOOD20 20-option-keep-going.out
46 ! fgrep ALL 20-option-keep-going.out
47 ! fgrep FAIL1 20-option-keep-going.out
48 ! fgrep GOOD1 20-option-keep-going.out
49 ! fgrep GOOD2 20-option-keep-going.out
50 rm 20-option-keep-going.out