blob: 95719aa656fb1794267bfeaa72b1613e3cfd195d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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
|