-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.sh
59 lines (52 loc) · 998 Bytes
/
setup.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
52
53
54
55
56
57
58
59
#!/bin/bash
echo
if [ -z $1 ]
then
echo 'Please specify "pcb" or "box"'
exit
elif [ $1 = "pcb" ]
then
echo 'Initial setup for pcb testing'
touch ~/test/pcb.cfg
rm -f ~/test/box.cfg
elif [ $1 = "box" ]
then
echo 'Initial setup for box testing'
rm -f ~/test/pcb.cfg
touch ~/test/box.cfg
elif [ $1 = "all" ]
then
echo 'Initial setup for all testing'
touch ~/test/pcb.cfg
touch ~/test/box.cfg
else
echo 'Unknown parameter:' $1
exit
fi
cd ~/test
cp scripts/test/* .
echo 'Getting test software'
if [ ! -e source ]
then
git clone https://github.com/jhu-cisst/mechatronics-software.git source
fi
cd source
git checkout mfg-test
cd ..
echo 'Compiling test software'
mkdir -p ubuntu
cd ubuntu
cmake ../source
make
retVal=$?
if [ $retVal -ne 0 ]; then
echo "Compiler error"
fi
cd ..
if [ -e ~/test/pcb.cfg ]
then
echo 'Getting dRAC test software'
sh update-dractest.sh
mkdir -p ~/Desktop/QLA_test_results
fi
sh update-desktop.sh