diff options
| author | John Wiegley <johnw@newartisans.com> | 2010-04-05 01:06:27 -0400 |
|---|---|---|
| committer | John Wiegley <johnw@newartisans.com> | 2010-04-05 01:08:08 -0400 |
| commit | d47fc661798015eabd18760a00572aa04c734727 (patch) | |
| tree | 59cceaa42cbd4f865bc0237fe4c8e35667521de5 | |
| parent | 35f9eed259d2290686c25188ba4f9446ae9ec5dd (diff) | |
Added run-tests.sh
| -rw-r--r-- | .gitignore | 1 | ||||
| -rwxr-xr-x | run-tests.sh | 28 |
2 files changed, 29 insertions, 0 deletions
@@ -41,3 +41,4 @@ /texinfo.tex game.* log.* +/test.out diff --git a/run-tests.sh b/run-tests.sh new file mode 100755 index 0000000..95719aa --- /dev/null +++ b/run-tests.sh @@ -0,0 +1,28 @@ +#!/bin/sh + +CPUS=8 +SOURCE=$HOME/src/emacs-chess +PRODUCTS=$HOME/Products/emacs-chess +EMACS=/Applications/MacPorts/Emacs.app/Contents/MacOS/Emacs + +# No need to change these values +TOTAL=4209433 +PART=$((TOTAL / CPUS)) + +for i in $(seq 1 $CPUS); do + # Make sure the sources are all up to date + rsync -av --delete --exclude=.git/ --delete-excluded \ + $SOURCE/ $PRODUCTS/$i/ + + (cd $PRODUCTS/$i; rm -f chess-test; make EMACS=$EMACS; \ + nice -n 20 make EMACS=$EMACS \ + START=$(((i - 1) * PART)) COUNT=$PART check > test.out 2>&1) & +done + +wait + +for i in $(seq 1 $CPUS); do + cat $PRODUCTS/$i/test.out >> test.out +done + +cat test.out |
