changeset 273:68b883fe4fad

added *BSD support to the test framework Anders F Bj?rklund <afb@algonet.se> 2005-02-06 mail:36b15bf19097bed2997cbed4a4fdb825@algonet.se
author thomask
date Mon, 07 Feb 2005 00:08:11 +0000
parents 2f12017c3af9
children 21efb6c131f1
files Makefile dstress.c
diffstat 2 files changed, 12 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Sun Feb 06 11:35:02 2005 +0000
+++ b/Makefile	Mon Feb 07 00:08:11 2005 +0000
@@ -142,7 +142,7 @@
 #
 nocompile : $(dstress__)
 	rm -f nocompile/*.o nocompile/*.$(ext_nocompile)
-	find nocompile/ -maxdepth 1 -name "?*.?*" | grep "." | sort | xargs --max-procs=1 --max-lines=1 echo "$(dstress__) nocompile" > nocompile.sh
+	find nocompile/ -maxdepth 1 -name "?*.?*" | grep "." | sort | xargs -n 1 echo "$(dstress__) nocompile" > nocompile.sh
 	chmod +x nocompile.sh
 	./nocompile.sh 2>> $(LOG)
 
@@ -168,7 +168,7 @@
 #
 compile : $(dstress__)
 	rm -f compile/*.o compile/*.$(ext_compile)
-	find compile/ -maxdepth 1 -name "?*.?*" | grep "." | sort | xargs --max-procs=1 --max-lines=1 echo "$(dstress__) compile" > compile.sh
+	find compile/ -maxdepth 1 -name "?*.?*" | grep "." | sort | xargs -n 1 echo "$(dstress__) compile" > compile.sh
 	chmod +x compile.sh
 	./compile.sh 2>> $(LOG)
 
@@ -190,7 +190,7 @@
 # 
 run : $(dstress__)
 	rm -f run/*.exe run/*.$(ext_run)
-	find run/ -maxdepth 1 -name "?*.?*" | grep "." | sort | xargs --max-procs=1 --max-lines=1 echo "$(dstress__) run" > run.sh
+	find run/ -maxdepth 1 -name "?*.?*" | grep "." | sort | xargs -n 1 echo "$(dstress__) run" > run.sh
 	chmod +x run.sh
 	./run.sh 2>> $(LOG)
 
@@ -255,7 +255,7 @@
 # 
 norun : $(dstress__)
 	rm -f norun/*.exe norun/*.$(ext_norun)
-	find norun/ -maxdepth 1 -name "?*.?*" | grep "." | sort | xargs --max-procs=1 --max-lines=1 echo "$(dstress__) norun" > norun.sh
+	find norun/ -maxdepth 1 -name "?*.?*" | grep "." | sort | xargs -n 1 echo "$(dstress__) norun" > norun.sh
 	chmod +x norun.sh
 	./norun.sh 2>> $(LOG)
 
--- a/dstress.c	Sun Feb 06 11:35:02 2005 +0000
+++ b/dstress.c	Mon Feb 07 00:08:11 2005 +0000
@@ -74,6 +74,14 @@
 #define USE_POSIX_LOAD
 #endif
 
+#if defined(__APPLE__) && defined(__MACH__)
+#define USE_POSIX_LOAD
+#endif
+
+#ifdef __FreeBSD__
+#define USE_POSIX_LOAD
+#endif
+
 #ifdef USE_POSIX_LOAD
 
 #define RETURN_OK 0