forked from ckaestne/TypeChef-BusyboxAnalysis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nightly.sh
executable file
·37 lines (31 loc) · 1.3 KB
/
nightly.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
cd gitbusybox
git pull > gitstatus
if [ "$1" = "--force" ]
then
echo Skipping git check.
else
grep "Already up-to-date" gitstatus > /dev/null
if [ $? == 0 ];
then
echo "No git updates. Quitting."
exit
else
echo "Starting checking..."
fi
fi
cd ..
./prepareGit.sh
./cleanBusyboxGit.sh
./cleanBusyboxGitASTs.sh
./analyzeBusyboxGit.sh
./run.sh de.fosd.typechef.busybox.SummarizeResult gitbusybox/ gitbusybox/filelist | grep FAIL > gitbusybox/outfail
#linker checks
mv gitbusybox/busyboxfinal.interface gitbusybox/busyboxprev.interface
mv gitbusybox/busyboxfinal.dbginterface gitbusybox/busyboxprev.dbginterface
./run.sh de.fosd.typechef.busybox.BusyboxLinker
mv busyboxfinal.interface gitbusybox/busyboxfinal.interface
mv busyboxfinal.dbginterface gitbusybox/busyboxfinal.dbginterface
./run.sh de.fosd.typechef.busybox.InterfaceDiff gitbusybox/busyboxprev.interface gitbusybox/busyboxfinal.interface > gitbusybox/interfacediff
cp gitbusybox/interfacediff gitbusybox/interfacediff.txt
cp gitbusybox/outfail gitbusybox/outfail.txt
echo Finished nightly with `wc -l gitbusybox/outfail` file and `wc -l gitbusybox/interfacediff` linker issues and `wc -l gitbusybox/deadFiles` dead files | mail -s "busybox nightly" -a gitbusybox/outfail.txt -a gitbusybox/interfacediff.txt -a gitbusybox/deadFiles [email protected]