-
Notifications
You must be signed in to change notification settings - Fork 0
/
update_quick_tester.sh
executable file
·63 lines (55 loc) · 1.73 KB
/
update_quick_tester.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
60
61
62
63
#!/bin/bash
printf "QUICK TEST updater\n"
printf "Updating the updater\n"
cd /home/pi/code/netv2-burner-updater
git pull origin master
if [ $? -ne 0 ]; then
printf "Trouble updating the updater, send this info to [email protected]\n"
read dummy
exit 1
fi
printf "Updating the tester - quicktest\n"
cd /home/pi/code/netv2-tests
printf "Clearing local changes\n"
git reset --hard # to clear any local changes, maybe remove this on the next update
printf "Now pulling latest code\n"
git pull origin quicktest
if [ $? -ne 0 ]; then
printf "Trouble updating the tester, send this info to [email protected]\n"
read dummy
exit 1
fi
printf "Building & installing quicktest voltage driver\n"
cd /home/pi/code/netv2-tests/bin/testhat-drivers
sudo rm -f tester-driver
make
sudo chown root tester-driver
sudo chmod u+s tester-driver
/home/pi/code/netv2-tests/bin/testhat-drivers/tester-driver -v
printf "Updating the tester - UI\n"
cd /home/pi/code/jig-20-interface-http
git pull alphamax master
if [ $? -ne 0 ]; then
printf "Trouble updating the tester, send this info to [email protected]\n"
read dummy
exit 1
fi
printf "Updating the tester images\n"
cd /home/pi/code/netv2-tests/bin/netv2-fpga
git pull origin tester-master
if [ $? -ne 0 ]; then
printf "Trouble updating the tester images, send this info to [email protected]\n"
read dummy
exit 1
fi
printf "Updating the user images\n"
cd /home/pi/code/netv2-tests/bin/netv2-fpga-userimage
git pull origin master
if [ $? -ne 0 ]; then
printf "Trouble updating the user images, send this info to [email protected]\n"
read dummy
exit 1
fi
printf "\nCompleted successfully, hit enter twice to close window\n"
read dummy
read dummy