rcu: Make non-preemptive schedule be Tasks RCU quiescent state
[linux/fpc-iii.git] / tools / build / tests / run.sh
blob44d2a0fade677b9a456647120d1bb60f3b711aa1
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
38 function test_ex_include {
39 make -C ex V=1 clean > ex.out 2>&1
41 # build with krava.h include
42 touch ex/krava.h
43 make -C ex V=1 CFLAGS=-DINCLUDE >> ex.out 2>&1
45 if [ ! -x ./ex/ex ]; then
46 echo FAILED
47 exit -1
50 # build without the include
51 rm -f ex/krava.h ex/ex
52 make -C ex V=1 >> ex.out 2>&1
54 if [ ! -x ./ex/ex ]; then
55 echo FAILED
56 exit -1
59 make -C ex V=1 clean > /dev/null 2>&1
60 rm -f ex.out
63 echo -n Testing..
65 test_ex
66 test_ex_suffix
67 test_ex_include
69 echo OK