-
Notifications
You must be signed in to change notification settings - Fork 3
/
run-all-test.sh
executable file
·51 lines (41 loc) · 1.27 KB
/
run-all-test.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
# Modeling #############################################
# Train
./run-model.sh ConnectBot.apk false
# Test
./run-model.sh Aard.apk true
# Injected
./run-model.sh Aard-Injected.apk true
#######################################################
# Detection and Filter ################################
# Compile
cd DetectionFilterJar/chord-src-2.0
ant clean
ant compile
cd ../..
# Train
./run-detection-filter.sh ConnectBot.apk false 1 $PWD"/Result/Train"
# Test
./run-detection-filter.sh Aard.apk false 3 $PWD"/Result/Test"
# Injected
./run-detection-filter.sh Aard-Injected.apk false 3 $PWD"/Result/Injected"
# Clean
cd DetectionFilterJar/chord-src-2.0
ant clean
cd ../..
#######################################################
# Result Analysis######################################
CHORD_DIR=$PWD"/DetectionFilterJar/chord-src-2.0"
RESULTDIR=$PWD"/Result"
ResultAnalysisJarDir=$PWD"/ResultAnalysisJar"
cd $CHORD_DIR/bdd
make
cd ../../..
mv $CHORD_DIR/libbuddy.so $ResultAnalysisJarDir
cp $ResultAnalysisJarDir/Template.csv $RESULTDIR/ResultAnalysis.csv
OUTPUTFILE=$RESULTDIR/ResultAnalysis.csv
# Train
./run-result-anylysis.sh ConnectBot $OUTPUTFILE
# Test
./run-result-anylysis.sh Aard $OUTPUTFILE
rm $ResultAnalysisJarDir/libbuddy.so
#######################################################