diff options
author | Andy Lutomirski <luto@mit.edu> | 2011-04-18 21:49:13 -0400 |
---|---|---|
committer | Andy Lutomirski <luto@mit.edu> | 2011-04-18 21:49:13 -0400 |
commit | 8f7d7a6292b62fda37731dfc2e302f2644773325 (patch) | |
tree | eb867f0c63083c6458c8690074b8a28aff0ea476 | |
parent | db4faf5b66d72d2a56aea68625995f51b430c6eb (diff) | |
download | misc-tests-8f7d7a6292b62fda37731dfc2e302f2644773325.tar.gz |
Add script to test all pairs.
-rwxr-xr-x | now_test_all_pairs.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/now_test_all_pairs.sh b/now_test_all_pairs.sh new file mode 100755 index 0000000..fe54939 --- /dev/null +++ b/now_test_all_pairs.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +ncpus=`cat /proc/cpuinfo |grep 'model name' |wc -l` +for i in `seq 0 $(($ncpus-1))`; do + for j in `seq 0 $(($ncpus-1))`; do + if [[ "$i" != "$j" ]]; then + echo -n "$i,$j: " + ./evil-clock-test -N -p $i,$j |grep 'Now test' + fi + done +done |