]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
TestBed: Add bootstrap tests
authorAmos Jeffries <squid3@treenet.co.nz>
Tue, 11 Aug 2009 05:22:15 +0000 (17:22 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Tue, 11 Aug 2009 05:22:15 +0000 (17:22 +1200)
Test and run bootstrap. This has the side effect of preparing the sources
for further tests even when configure.in and Makefile.am's have changed.

Also chmod for force removal of old garbage

test-builds.sh
test-suite/buildtests/layer-00-bootstrap.opts [new file with mode: 0644]

index 613070969b016966ed6f24e187d6f735848a1025..e74bd38c412e26d22dbe3b63a13497a0b40cea0c 100755 (executable)
@@ -43,6 +43,7 @@ buildtest() {
     btlayer="bt${layer}"
     log=${btlayer}.log
     echo "TESTING: ${layer}"
+    chmod -R 777 ${btlayer}
     rm -f -r ${btlayer} && mkdir ${btlayer}
     {
        result=255
diff --git a/test-suite/buildtests/layer-00-bootstrap.opts b/test-suite/buildtests/layer-00-bootstrap.opts
new file mode 100644 (file)
index 0000000..7951738
--- /dev/null
@@ -0,0 +1,14 @@
+## Special run - to be done before all others...
+#
+## locate the sources and go there...
+topb=`dirname $0`
+topc=`dirname ${topb}`
+cd ${topc}
+
+# echo "DEBUG: top=${top}"
+# echo "DEBUG: topB=${topb}"
+# echo "DEBUG: topC=${topc}"
+
+## Bootstrap the sources in case configure or makefiles changed.
+./bootstrap.sh
+exit $?