2013-12-21 00:49:17 +00:00
|
|
|
testsuite: 3
|
|
|
|
true
|
2012-05-05 22:20:10 +00:00
|
|
|
|
2013-01-21 22:07:32 +00:00
|
|
|
3: ../src/parallel tests-to-run/* wanted-results/* startdb prereqlocal prereqremote
|
2015-04-09 23:20:51 +00:00
|
|
|
TRIES=3 time bash Start.sh - mem || true
|
2014-07-14 16:25:45 +00:00
|
|
|
touch ~/.parallel/will-cite
|
2013-06-15 14:12:02 +00:00
|
|
|
make stopvm
|
2013-01-21 22:07:32 +00:00
|
|
|
|
2013-12-21 00:49:17 +00:00
|
|
|
1: ../src/parallel tests-to-run/* wanted-results/* prereqlocal startdb prereqremote
|
2015-05-23 16:00:00 +00:00
|
|
|
TRIES=1 time bash Start.sh - 'mem|polarhome' || true
|
2015-03-17 19:44:09 +00:00
|
|
|
touch ~/.parallel/will-cite
|
|
|
|
make stopvm
|
|
|
|
|
2015-03-22 00:51:30 +00:00
|
|
|
mem: ../src/parallel tests-to-run/*mem* wanted-results/*mem* prereqlocal
|
2015-04-09 23:20:51 +00:00
|
|
|
time bash Start.sh mem NONE || true
|
2014-07-14 16:25:45 +00:00
|
|
|
touch ~/.parallel/will-cite
|
2013-12-21 00:49:17 +00:00
|
|
|
make stopvm
|
|
|
|
|
2012-08-13 18:17:14 +00:00
|
|
|
testdb: ../src/parallel tests-to-run/*sql* wanted-results/*sql* prereqdb
|
2015-04-09 23:20:51 +00:00
|
|
|
time bash Start.sh sql NONE
|
2012-08-13 18:17:14 +00:00
|
|
|
|
2012-12-02 20:11:27 +00:00
|
|
|
local: testlocal
|
|
|
|
true
|
|
|
|
|
2012-12-28 10:46:35 +00:00
|
|
|
testlocal: ../src/parallel tests-to-run/*local* wanted-results/*local* prereqlocal installparallel
|
2015-07-22 06:28:05 +00:00
|
|
|
time bash Start.sh local mem
|
2012-05-05 22:20:10 +00:00
|
|
|
|
2012-08-08 19:25:18 +00:00
|
|
|
prereqlocal: installparallel
|
2013-11-22 17:24:09 +00:00
|
|
|
tcsh -c echo tcsh installed || (echo tcsh is required for testsuite; /bin/false)
|
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)
|
|
|
|
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
|
|
|
|
2013-06-15 14:12:02 +00:00
|
|
|
prereqremote: installparallel startvm
|
2015-04-09 23:20:51 +00:00
|
|
|
parallel --timeout 5 --tag ssh parallel@parallel-server{} parallel --minversion 20121021 ::: 1 2 3 || (echo parallel on remote required for testsuite; /bin/true)
|
2013-06-15 14:12:02 +00:00
|
|
|
|
|
|
|
startvm:
|
2013-03-24 16:24:59 +00:00
|
|
|
# Make sure we can reach the virtual machines
|
|
|
|
sudo ifconfig wlan0:0 192.168.1.72
|
2013-06-15 14:12:02 +00:00
|
|
|
# If they are already running: Don't fail
|
2014-09-20 19:36:02 +00:00
|
|
|
VBoxManage startvm CentOS3-root:centos3 || VBoxManage controlvm CentOS3-root:centos3 resume || true
|
|
|
|
VBoxManage startvm RedHat9-root:redhat9 || VBoxManage controlvm RedHat9-root:redhat9 resume || true
|
2013-06-15 14:12:02 +00:00
|
|
|
|
|
|
|
stopvm:
|
2015-03-17 19:44:09 +00:00
|
|
|
# || true - because this should not fail if the VM is not running
|
|
|
|
VBoxManage controlvm CentOS3-root:centos3 savestate || true
|
|
|
|
VBoxManage controlvm RedHat9-root:redhat9 savestate || true
|
|
|
|
VBoxManage controlvm OracleXE savestate || 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:
|
2014-07-15 00:40:38 +00:00
|
|
|
#echo shutdown abort | sudo su - oracle -c "sqlplus / as sysdba"
|
2014-07-26 11:17:13 +00:00
|
|
|
sudo parallel /etc/init.d/{} status '||' /etc/init.d/{} restart ::: postgresql mysql # oracle-xe
|
2014-07-15 00:40:38 +00:00
|
|
|
VBoxManage startvm OracleXE || true
|
2011-04-18 09:37:34 +00:00
|
|
|
|
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
|
2013-01-21 22:07:32 +00:00
|
|
|
ls tests-to-run/*.sh | parallel echo /usr/bin/time -f %e bash >/tmp/timing.script
|
2012-11-24 16:33:15 +00:00
|
|
|
stdout bash -x /tmp/timing.script | tee /tmp/timing.out
|
2014-12-29 23:31:02 +00:00
|
|
|
echo + .usr.bin.time_END >>/tmp/timing.out
|
|
|
|
perl -ne '/\+ .usr.bin.time/ and do { print $$last.$$h; $$h=$$_ }; chomp; s/.*\0//;$$last = $$_' /tmp/timing.out |sort -n >timings
|
2015-03-07 16:49:16 +00:00
|
|
|
|
|
|
|
timingbar:
|
2015-03-07 18:45:00 +00:00
|
|
|
vmstat 1 | timestamp --isotime > vmstat.timestamp.1 &
|
|
|
|
stdout make 1 | timestamp --isotime | tee make.timestamp.1
|
2015-03-07 16:49:16 +00:00
|
|
|
killall vmstat
|
|
|
|
mv vmstat.timestamp.1 vmstat.timestamp
|
|
|
|
mv make.timestamp.1 make.timestamp
|
|
|
|
sort vmstat.timestamp make.timestamp | perl -pe '/tests-to-run(\S+)/ and $$p=$$1; print "$$p "' | field 6,1,2 | perl -ne '/^\d+ / and print' | histogram -i vh
|