aboutsummaryrefslogtreecommitdiff
blob: 8f7f80fbe02769cc899e4795be9ba54304f41a38 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash

declare -i error=0
result=$(mktemp)

for script in $@
do
    srcdir=$srcdir ./bash $script > $result 2>&1
    srcdir=$srcdir bash +O cmdhist \
                        +O force_fignore \
                        +O hostcomplete \
                        +O interactive_comments \
                        +O progcomp \
                        +O promptvars \
                        +O sourcepath \
                        $script | diff -u $result -
    error+=$?
done

rm -rf $result
rm -rf scripts/input_output_test
exit $error