2012-08-08 19:25:18 +00:00
|
|
|
testsuite: ../src/parallel tests-to-run/* wanted-results/* startdb prereqlocal prereqremote
|
2012-05-05 22:20:10 +00:00
|
|
|
time sh Start.sh
|
|
|
|
date
|
|
|
|
|
2012-08-08 19:25:18 +00:00
|
|
|
local: ../src/parallel tests-to-run/*local* wanted-results/*local* prereqlocal
|
2012-05-05 22:20:10 +00:00
|
|
|
time sh Start.sh local
|
|
|
|
date
|
|
|
|
|
2012-08-08 19:25:18 +00:00
|
|
|
prereqlocal: installparallel
|
2012-08-08 21:57:01 +00:00
|
|
|
seq 1 2 >/dev/null || (echo seq is required for testsuite; /bin/false)
|
2010-10-06 20:45:24 +00:00
|
|
|
stdout echo || (echo stdout is required for testsuite; /bin/false)
|
2012-08-08 21:57:01 +00:00
|
|
|
convert >/dev/null || (echo convert is required for testsuite; /bin/false)
|
|
|
|
ren '$$_' a || (echo ren is required for testsuite; /bin/false)
|
|
|
|
echo 1+2 | bc >/dev/null || (echo bc is required for testsuite; /bin/false)
|
|
|
|
echo | gawk '{print "gawk is installed"}' || (echo gawk is required for testsuite; /bin/false)
|
2010-10-06 20:45:24 +00:00
|
|
|
expect -c 'spawn cat; puts "expect is installed"' || (echo expect is required for testsuite; /bin/false)
|
|
|
|
echo | pv -qL 10 || (echo pv is required for testsuite; /bin/false)
|
|
|
|
echo | script -c echo -q /dev/null || (echo script is required for testsuite; /bin/false)
|
|
|
|
niceload true || (echo niceload is required for testsuite; /bin/false)
|
2010-10-14 21:13:48 +00:00
|
|
|
which burnP6 || (echo burnP6 is required for testsuite; /bin/false)
|
|
|
|
which timeout || (echo timeout is required for testsuite; /bin/false)
|
2012-08-08 19:25:18 +00:00
|
|
|
|
|
|
|
prereqremote: installparallel
|
2012-05-05 22:02:08 +00:00
|
|
|
parallel ssh parallel@parallel-server{} parallel --minversion 20100101 ::: 1 2 3 || (echo parallel on remote required for testsuite; /bin/true)
|
2012-05-05 22:20:10 +00:00
|
|
|
|
|
|
|
installparallel: ../src/parallel
|
|
|
|
cd .. && make -j && sudo make -j install
|
2010-10-06 20:45:24 +00:00
|
|
|
|
2011-04-18 09:37:34 +00:00
|
|
|
startdb:
|
|
|
|
sudo parallel /etc/init.d/{} start ::: postgresql mysql oracle-xe
|
|
|
|
|
2010-10-06 20:45:24 +00:00
|
|
|
clean:
|
|
|
|
rm -rf input-files/random_dirs_no_newline
|
|
|
|
rm -rf input-files/random_dirs_with_newline
|
|
|
|
|
|
|
|
dist:
|
|
|
|
rm -rf input-files/random_dirs_*_newline || /bin/true
|
|
|
|
rm -rf tmp || /bin/true
|
|
|
|
( cd ..; tar -cvj --exclude .git --exclude '#*#' --exclude '*~' --exclude CVS -f /tmp/parallel.tar.bz2 parallel-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9] )
|
|
|
|
mv /tmp/parallel.tar.bz2 parallel-$$(date +"%Y%m%d").tar.bz2
|
|
|
|
rsync -Havessh parallel-$$(date +"%Y%m%d").tar.bz2 download.savannah.nongnu.org:/releases/parallel/
|
|
|
|
|
2011-03-09 17:47:00 +00:00
|
|
|
portable:
|
|
|
|
# Cache sudo password
|
|
|
|
sudo echo
|
|
|
|
time bash Portable.sh
|
2011-07-20 21:05:27 +00:00
|
|
|
|
2012-05-27 15:51:09 +00:00
|
|
|
timings: tests-to-run/* ../src/parallel
|
2011-07-22 08:47:14 +00:00
|
|
|
ls tests-to-run/*.sh | xargs -n1 echo /usr/bin/time -f %e bash >/tmp/timing.script
|
2011-07-20 21:05:27 +00:00
|
|
|
stdout bash -x /tmp/timing.script >/tmp/timing.out
|
|
|
|
echo usr.bin.time_END >>/tmp/timing.out
|
|
|
|
perl -ne '/usr.bin.time/ and do { print $$last.$$h; $$h=$$_ }; chomp; $$last = $$_' /tmp/timing.out | sort -n >timings
|