for review: add hydra to list nightly install scripts

Tyson Dowd trd at cs.mu.OZ.AU
Thu May 21 14:53:16 AEST 1998


Hi,

Fergus, would you like to check this change?

===================================================================


Estimated hours taken: 0.75

Add hydra to the nightly installation scripts.

tools/run_all_tests_from_cron:
tools/test_mercury:
	Add hydra, using much the same options as mercury, but
	using a local install directory (for the moment) on /home/hydra.


Index: tools/run_all_tests_from_cron
===================================================================
RCS file: /home/staff/zs/imp/mercury/tools/run_all_tests_from_cron,v
retrieving revision 1.8
diff -u -r1.8 run_all_tests_from_cron
--- run_all_tests_from_cron	1997/05/14 05:57:26	1.8
+++ run_all_tests_from_cron	1998/05/21 04:11:11
@@ -31,6 +31,7 @@
 	murlibobo) 	ARCH=alpha	FULLARCH=alpha-dec-osf3.2 ;;
 	mundook) 	ARCH=alpha	FULLARCH=alpha-dec-osf3.2 ;;
 	mercury) 	ARCH=i586	FULLARCH=i586-pc-linux-gnu ;;
+	hydra)		ARCH=i686	FULLARCH=i686-pc-linux-gnu ;;
 	*)		echo "$0: unknown HOST $HOST" 1>&2; exit 1 ;;
 esac
 
Index: tools/test_mercury
===================================================================
RCS file: /home/staff/zs/imp/mercury/tools/test_mercury,v
retrieving revision 1.67
diff -u -r1.67 test_mercury
--- test_mercury	1998/05/18 09:51:21	1.67
+++ test_mercury	1998/05/21 04:09:29
@@ -48,6 +48,7 @@
 	murlibobo)	OPTIMIZE=-O5 ;;
 	kryten) 	OPTIMIZE=-O1 ;;
 	mercury) 	OPTIMIZE=-O3 ;;
+	hydra)		OPTIMIZE=-O2 ;;
 	muse)		OPTIMIZE=-O0 ;;
 	munta)		OPTIMIZE=-O0 ;;
 esac
@@ -61,6 +62,12 @@
 DIR=$TESTDIR/test_dirs/$HOST
 INSTALL_DIR=/home/mercury/public/mercury-latest/$FULLARCH
 
+case $HOST in
+	# install hydra's compiler in /home/hydra
+	hydra)	INSTALL_DIR=/home/hydra/public/mercury-latest
+	;;
+esac
+
 case $ARCH in
 	alpha)
 		# due to a bug in the DEC loader, INSTALL_DIR should be
@@ -78,12 +85,18 @@
 	munta)		PARALLEL=-j2 ;; # out of four CPUs
 	mundook) 	PARALLEL=-j1 ;; # out of two CPUs
 	murlibobo)	PARALLEL=-j6 ;; # out of eight CPUs
+	hydra)		PARALLEL=-j2 ;; # out of two CPUs
 	mercury) 	PARALLEL= ;; 	# one CPU
 	*)		PARALLEL= ;;
 esac
 
 # version of the mercury compiler to use for bootstrapping
-BOOTSTRAP_MERCURY_COMPILER=/home/mercury/public/mercury-latest/$FULLARCH/lib/mercury/bin/$FULLARCH/mercury_compile
+case $HOST in
+	hydra)	BOOTSTRAP_MERCURY_COMPILER=/home/hydra/public/mercury-latest/lib/mercury/bin/$FULLARCH/mercury_compile
+	;;
+	*)	BOOTSTRAP_MERCURY_COMPILER=/home/mercury/public/mercury-latest/$FULLARCH/lib/mercury/bin/$FULLARCH/mercury_compile
+	;;
+esac
 
 # df (disk free) command
 DF=df
@@ -152,7 +165,7 @@
 cd $DIR || { false; exit 1; }
 cvs checkout $CHECKOUT_OPTS mercury tests || { false; exit 1; }
 case $HOST in
-	murlibobo|kryten|mercury)
+	murlibobo|kryten|mercury|hydra)
 		(cd mercury/extras && cvs checkout $CHECKOUT_OPTS clpr) ||
 			{ false; exit 1; }
 		;;
@@ -270,7 +283,7 @@
 	kryten|murlibobo)
 		GRADES="asm_fast.gc.tr asm_fast.tr"
 		;;
-	mercury)
+	mercury|hydra)
 		GRADES="asm_fast.gc.tr"
 		;;
 	*)
@@ -380,7 +393,7 @@
 		GRADES="reg.gc asm_fast asm_fast.gc
 			reg.gc.prof asm_fast.gc.prof"
 		;;
-	mercury)
+	mercury|hydra)
 		GRADES="asm_fast.gc asm_fast \
 			asm_fast.gc.prof asm_fast.prof"
 		;;


-- 
       Tyson Dowd           # There isn't any reason why Linux can't be
                            # implemented as an enterprise computing solution.
     trd at cs.mu.oz.au        # Find out what you've been missing while you've
http://www.cs.mu.oz.au/~trd # been rebooting Windows NT. -- InfoWorld, 1998.



More information about the developers mailing list