]>
git.ipfire.org Git - thirdparty/squid.git/blob - test-suite/testheaders.sh
3fd36917cdb66712101282b4828e9d05bd54aedf
3 ## Copyright (C) 1996-2018 The Squid Software Foundation and contributors
5 ## Squid software is distributed under GPLv2+ license and includes
6 ## contributions from numerous individuals and organizations.
7 ## Please see the COPYING and CONTRIBUTORS files for details.
10 # test all header files (.h) for dependancy issues.
12 # Ideally this test should be performed twice before any code is accepted.
13 # With or without inline enabled. This is needed because the .cci files
14 # are only included into the .h files when inline mode is enabled.
16 # This script should be run from the makefile with the directory path and ccflags
20 for dir
in /usr
/bin
/usr
/local
/bin
/usr
/gnu
/bin
22 test -x ${dir}/true
&& TRUE
=${dir}/true
24 TRUE
=${TRUE:-/bin/true}
29 echo -n "Testing ${f} ..."
30 t
="testhdr_`basename ${f}`"
31 if [ ! -f "$t.o" -o $f -nt "$t.o" ]; then
33 /* This file is AUTOMATICALLY GENERATED. DO NOT ALTER IT */
36 int main( int argc, char* argv[] ) { return 0; }
38 if ${cc} -c -o $t.o
$t.cc
; then
46 test $exitCode -eq 0 ||
break
49 #who ever said that the test program needs to be meaningful?
50 test $exitCode -eq 0 && cp ${TRUE} testHeaders