svn commit: samba r17560 - in branches/SOC/bnh: . build_farm

brad at samba.org brad at samba.org
Tue Aug 15 21:50:42 GMT 2006


Author: brad
Date: 2006-08-15 21:50:41 +0000 (Tue, 15 Aug 2006)
New Revision: 17560

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=17560

Log:
bnhtest.fns is an example of a hostname.fns file which would be used to run 'make wintest' in the build farm as root.
It is basically a stripped down version of generic.fns which only tests the samba4 tree.
When it is run with 'make test', the status of the wintest is not shown on the host information status summary at the top of the page.
The results are displayed in the Build log output under 'test_windows', and its status is reflected in the summary when make test is not run.

If you are interested what it looks like in the build farm, please look at the host bnhtest (Slackware 10.2).
Once I commit a corrected make_wintest.patch, this will be more useful.


Added:
   branches/SOC/bnh/build_farm/
   branches/SOC/bnh/build_farm/bnhtest.fns


Changeset:
Added: branches/SOC/bnh/build_farm/bnhtest.fns
===================================================================
--- branches/SOC/bnh/build_farm/bnhtest.fns	2006-08-15 21:32:14 UTC (rev 17559)
+++ branches/SOC/bnh/build_farm/bnhtest.fns	2006-08-15 21:50:41 UTC (rev 17560)
@@ -0,0 +1,38 @@
+
+action_test_windows() {
+	# rebuild
+	do_make wintest
+	w_status=$?
+	echo "WINTEST STATUS: $w_status"
+	return $w_status;
+}
+
+per_run_hook
+
+system=`uname`
+
+for compiler in gcc cc icc; do
+
+  # arrgh, "which" gives no err code on solaris
+  path=`which $compiler`
+  if [ -x "$path" ]; then
+
+    if $compiler -v 2>&1 | grep gcc.version > /dev/null; then
+       isgcc=1
+       CFLAGS="-Wall"
+       export CFLAGS
+    else
+       CFLAGS=""
+       export CFLAGS
+       isgcc=0
+    fi
+    if [ $compiler = gcc -o $isgcc = 0 ]; then
+
+      # only attempt samba4 if we have perl
+      if which perl > /dev/null; then
+        test_tree samba4 source $compiler configure build install test test_windows
+      fi
+
+    fi
+  fi
+done



More information about the samba-cvs mailing list