]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Make cf_gen and cache_cf .h self-complete. Remove TestBed exception
authorAmos Jeffries <squid3@treenet.co.nz>
Thu, 12 Nov 2009 03:10:26 +0000 (16:10 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Thu, 12 Nov 2009 03:10:26 +0000 (16:10 +1300)
src/cf_gen_defines
test-suite/testheaders.sh

index da7ad46a991e8d462d42fa1b5a15c02d0602a20f..e4a96ef0cddb7b394eec4fd08b864eda7071b757 100644 (file)
@@ -3,6 +3,7 @@ BEGIN {
        print "/* Generated automatically from cf.data.pre"
        print " * DO NOT EDIT"
        print "*/"
+       print "#include \"config.h\""
        print "static struct { const char *name; const char *enable; int defined;} defines[] = {"
        define["DELAY_POOLS"]="--enable-delay-pools"
        define["FOLLOW_X_FORWARDED_FOR"]="--enable-follow-x-forwarded-for"
index 49c25add78b64b3782b3767f632e4476decbbc80..973c2160004a986d0f294b5844c22d9e82393e94 100755 (executable)
@@ -18,13 +18,8 @@ fi
 
 for f in `cd ${dir} && ls -1 *.h 2>/dev/null`; do
        echo -n "Testing ${dir}/${f} ..."
-       if [ "${f}" = "cf_gen_defines.h" -o "${f}" = "cf_parser.h" ]; then
-               echo " IGNORED!"
-               continue
-       fi
        hdr=`echo "${f}" | sed s/.h//`
-       if [ ! -e ./testHeaderDeps_${hdr}.o -o ${dir}/${f} -nt ./testHeaderDeps_${hdr}.o ]
-    then
+       if [ ! -e ./testHeaderDeps_${hdr}.o -o ${dir}/${f} -nt ./testHeaderDeps_${hdr}.o ]; then
                (       echo "/* This file is AUTOMATICALLY GENERATED. DO NOT ALTER IT */"
                        echo "#include \"${dir}/${f}\" "
                        echo "int main( int argc, char* argv[] ) { return 0; } "