-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcreate-tada-machines.sh
executable file
·53 lines (40 loc) · 1.96 KB
/
create-tada-machines.sh
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/bin/bash
# To recreate TADA and MARS on vagrant VMs and run full smoke, do:
# vagrant destroy -f mars; vagrant up mars; ./tt0
LOG=$HOME/create-tada-tt.$$.log
here=`hostname`
now=`date`
echo "Writing log to: $LOG"
echo "Creating VMs on $here at $now" > $LOG
pushd /home/pothiers/sandbox/vagrant-tada
echo -e "\n###################################################################"
#!echo "Expect full provisioning to take about: 0:30"
#! echo "Expect full provisioning to take about: 0:50 with Perl stuff"
#! echo "Expect full provisioning to take about: 0:40; With Perl stuff, without irods"
#! echo "Expect full provisioning to take about: 0:17; Without Perl stuff, without irods"
echo "Expect full provisioning to take about: 0:33; With smoke test"
sdate=`date`
echo "Starting: $sdate"
tic=`date +'%s'`
vagrant destroy -f valley mountain
# Must bring up MARS first because
# tada/scripts/tada-valley-install.sh
# uses tables from MARS during tada install!
time vagrant up mars valley mountain
# For workflow: Edit(manifest);Provision, use:
#! vagrant provision mountain --provision-with puppet
echo "Done provisioning: $sdate to " `date` >> $LOG
#!echo "Try: " >> $LOG
#!echo " /opt/tada-cli/scripts/raw_post /data/molest-pair/nhs_2014_n14_299403.fits" >> $LOG
#!echo " vagrant ssh valley -c /sandbox/tada/tests/smoke/smoke.sh" >> $LOG
#echo "DISABLED auto run of smoke tests"
#echo " vagrant ssh valley -c /opt/tada/tests/smoke/smoke.all.sh: " `date`
#vagrant ssh valley -c /sandbox/tada/tests/smoke/smoke.all.sh >> $LOG
echo " run-smoke-as-tester.sh: " `date`
~/sandbox/tada/tests/smoke/run-smoke-as-tester.sh >> $LOG
echo " Test log written to: $LOG"
echo "Done: " `date`
emins=$(((`date +'%s'` - tic)/60))
echo "See attachment for log of smoke.all.sh" | mail -n -a $LOG -s "Vagrant VMs created on $here. Smoke run. ($emins minutes total)" [email protected]
echo "TOTAL SCORE:"
grep "Multi-test score" $LOG