ACPI / PNP: Avoid conflicting resource reservations
[linux/fpc-iii.git] / tools / build / tests / run.sh
blob5494f8ea75670f91a77034959b32db9a88ceb203
1 #!/bin/sh
3 function test_ex {
4 make -C ex V=1 clean > ex.out 2>&1
5 make -C ex V=1 >> ex.out 2>&1
7 if [ ! -x ./ex/ex ]; then
8 echo FAILED
9 exit -1
12 make -C ex V=1 clean > /dev/null 2>&1
13 rm -f ex.out
16 function test_ex_suffix {
17 make -C ex V=1 clean > ex.out 2>&1
19 # use -rR to disable make's builtin rules
20 make -rR -C ex V=1 ex.o >> ex.out 2>&1
21 make -rR -C ex V=1 ex.i >> ex.out 2>&1
22 make -rR -C ex V=1 ex.s >> ex.out 2>&1
24 if [ -x ./ex/ex ]; then
25 echo FAILED
26 exit -1
29 if [ ! -f ./ex/ex.o -o ! -f ./ex/ex.i -o ! -f ./ex/ex.s ]; then
30 echo FAILED
31 exit -1
34 make -C ex V=1 clean > /dev/null 2>&1
35 rm -f ex.out
37 echo -n Testing..
39 test_ex
40 test_ex_suffix
42 echo OK