~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/tools/build/tests/run.sh

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /tools/build/tests/run.sh (Version linux-6.12-rc7) and /tools/build/tests/run.sh (Version linux-6.3.13)


  1 #!/bin/sh                                           1 #!/bin/sh
  2 # SPDX-License-Identifier: GPL-2.0                  2 # SPDX-License-Identifier: GPL-2.0
  3                                                     3 
  4 function test_ex {                                  4 function test_ex {
  5         make -C ex V=1 clean > ex.out 2>&1          5         make -C ex V=1 clean > ex.out 2>&1
  6         make -C ex V=1 >> ex.out 2>&1               6         make -C ex V=1 >> ex.out 2>&1
  7                                                     7 
  8         if [ ! -x ./ex/ex ]; then                   8         if [ ! -x ./ex/ex ]; then
  9           echo FAILED                               9           echo FAILED
 10           exit -1                                  10           exit -1
 11         fi                                         11         fi
 12                                                    12 
 13         make -C ex V=1 clean > /dev/null 2>&1      13         make -C ex V=1 clean > /dev/null 2>&1
 14         rm -f ex.out                               14         rm -f ex.out
 15 }                                                  15 }
 16                                                    16 
 17 function test_ex_suffix {                          17 function test_ex_suffix {
 18         make -C ex V=1 clean > ex.out 2>&1         18         make -C ex V=1 clean > ex.out 2>&1
 19                                                    19 
 20         # use -rR to disable make's builtin ru     20         # use -rR to disable make's builtin rules
 21         make -rR -C ex V=1 ex.o >> ex.out 2>&1     21         make -rR -C ex V=1 ex.o >> ex.out 2>&1
 22         make -rR -C ex V=1 ex.i >> ex.out 2>&1     22         make -rR -C ex V=1 ex.i >> ex.out 2>&1
 23         make -rR -C ex V=1 ex.s >> ex.out 2>&1     23         make -rR -C ex V=1 ex.s >> ex.out 2>&1
 24                                                    24 
 25         if [ -x ./ex/ex ]; then                    25         if [ -x ./ex/ex ]; then
 26           echo FAILED                              26           echo FAILED
 27           exit -1                                  27           exit -1
 28         fi                                         28         fi
 29                                                    29 
 30         if [ ! -f ./ex/ex.o -o ! -f ./ex/ex.i      30         if [ ! -f ./ex/ex.o -o ! -f ./ex/ex.i -o ! -f ./ex/ex.s ]; then
 31           echo FAILED                              31           echo FAILED
 32           exit -1                                  32           exit -1
 33         fi                                         33         fi
 34                                                    34 
 35         make -C ex V=1 clean > /dev/null 2>&1      35         make -C ex V=1 clean > /dev/null 2>&1
 36         rm -f ex.out                               36         rm -f ex.out
 37 }                                                  37 }
 38                                                    38 
 39 function test_ex_include {                         39 function test_ex_include {
 40         make -C ex V=1 clean > ex.out 2>&1         40         make -C ex V=1 clean > ex.out 2>&1
 41                                                    41 
 42         # build with krava.h include               42         # build with krava.h include
 43         touch ex/krava.h                           43         touch ex/krava.h
 44         make -C ex V=1 CFLAGS=-DINCLUDE >> ex.     44         make -C ex V=1 CFLAGS=-DINCLUDE >> ex.out 2>&1
 45                                                    45 
 46         if [ ! -x ./ex/ex ]; then                  46         if [ ! -x ./ex/ex ]; then
 47           echo FAILED                              47           echo FAILED
 48           exit -1                                  48           exit -1
 49         fi                                         49         fi
 50                                                    50 
 51         # build without the include                51         # build without the include
 52         rm -f ex/krava.h ex/ex                     52         rm -f ex/krava.h ex/ex
 53         make -C ex V=1 >> ex.out 2>&1              53         make -C ex V=1 >> ex.out 2>&1
 54                                                    54 
 55         if [ ! -x ./ex/ex ]; then                  55         if [ ! -x ./ex/ex ]; then
 56           echo FAILED                              56           echo FAILED
 57           exit -1                                  57           exit -1
 58         fi                                         58         fi
 59                                                    59 
 60         make -C ex V=1 clean > /dev/null 2>&1      60         make -C ex V=1 clean > /dev/null 2>&1
 61         rm -f ex.out                               61         rm -f ex.out
 62 }                                                  62 }
 63                                                    63 
 64 echo -n Testing..                                  64 echo -n Testing..
 65                                                    65 
 66 test_ex                                            66 test_ex
 67 test_ex_suffix                                     67 test_ex_suffix
 68 test_ex_include                                    68 test_ex_include
 69                                                    69 
 70 echo OK                                            70 echo OK
                                                      

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php