blob: 0a6522605c877ce14b133e5701ebc5a7457852ad (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#!/usr/bin/env bash
test_tabs () {
/usr/bin/env bash $(dirname "$0")/notabs
}
test_longlines () {
/usr/bin/env bash $(dirname "$0")/nolonglines
}
test_php () {
/usr/bin/env php texttest.php
}
tests="tabs longlines php"
failures=
for test_name in $tests
do
echo "Running test $test_name" 1>&2
if ! eval "test_$test_name"
then
failures="$failures $test_name"
fi
done
if [ ! -z "$failures" ]
then
echo "Failures in: $failures" 1>&2
exit 1
fi
|