Debian Codegraph @

tests/spec/check-spec

raw
1 #!/bin/sh
2
3 # Gash --- Guile As SHell
4 # Copyright © 2018 Timothy Sample <[email protected]>
5 #
6 # This file is part of Gash.
7 #
8 # Gash is free software; you can redistribute it and/or modify it
9 # under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 3 of the License, or (at
11 # your option) any later version.
12 #
13 # Gash is distributed in the hope that it will be useful, but
14 # WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
17 #
18 # You should have received a copy of the GNU General Public License
19 # along with Gash. If not, see <http://www.gnu.org/licenses/>.
20
21 cd oil
22 export OSH_LIST=bin/gash
23
24 test_name=$(basename "$1")
25 test_name=${test_name%.sh}
26 test_name=${test_name%.test}
27
28 # This just makes sure that Python 2 produces UTF-8 output when
29 # redirected to a file (as in the case of our test harness). There is
30 # a specific issue that this resolves. Guile sometimes prints
31 # ellipses as part of its stack traces. If Python 2 thinks that it
32 # should only write ASCII to files, it will throw an error when it
33 # sees an ellipsis.
34 export PYTHONIOENCODING=utf-8
35
36 ./test/spec.sh "$test_name" --verbose