-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathtests.sh
executable file
·78 lines (69 loc) · 2.08 KB
/
tests.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#!/usr/bin/env bash
# rebuild java plugin
#pushd java-api ; mvn compile ; popd
# generic
if /bin/true; then
# ./tests/inputs/extatom2.hex
# ./tests/inputs/extatom10.hex;
# ./tests/inputs/store_parseable_1.hex
# ./tests/inputs/setminus_learn1.hex
# ./tests/inputs/setminus_learn2.hex
for WHAT in ./tests/inputs/relevance_learning2.hex; do
echo "=== $WHAT python"
EXTRA=""
EXTRA="--verbose"
EXTRA="--verbose --debug"
EXTRA="--verbose --debug --flpcheck=none --stats"
EXTRA="--verbose --debug --flpcheck=none --stats --noskipevalfromnogoods"
EXTRA="--verbose --debug --flpcheck=none --stats --nocache"
EXTRA="--stats --nocache"
hexlite $EXTRA \
--pluginpath=./plugins/ \
--plugin=stringplugin --plugin=testplugin \
$WHAT
done
fi
# for java plugin
if /bin/false; then
# ./tests/inputs/extatom2.hex
# ./tests/inputs/extatom10.hex
# ./tests/inputs/nonmon_guess.hex
# ./tests/inputs/setminus_learn.hex
PLUGIN=at.ac.tuwien.kr.hexlite.testplugin.SetMinusApi2Plugin
PLUGIN=at.ac.tuwien.kr.hexlite.testplugin.SetMinusApi3Plugin
PLUGIN=at.ac.tuwien.kr.hexlite.testplugin.ConcatSetMinusPlugin
for WHAT in ./tests/inputs/nonmon_guess.hex ./tests/inputs/nonmon_inc.hex ./tests/inputs/nonmon_guess.hex ./tests/inputs/nonmon_inc.hex ; do
echo "=== $WHAT java"
EXTRA="--verbose --debug"
EXTRA="--verbose"
EXTRA=""
CLASSPATH=./java-api/target/classes \
hexlite --pluginpath=./plugins/ \
--plugin javaapiplugin $PLUGIN \
$EXTRA \
-- $WHAT
done
fi
# for acthex development
if /bin/false; then
echo "+++++"
WHAT="./tests/inputs/acthex_bubblesort_sortenv.hex"
EXTRA="--plugin=stringplugin"
EXTRA=""
EXTRA="$EXTRA --debug"
EXTRA="$EXTRA --verbose"
acthex $EXTRA \
--pluginpath=./plugins/ \
--plugin=acthex-testplugin \
$WHAT
echo "====="
WHAT="./tests/inputs/acthex_bubblesort_persistenceenv.hex"
EXTRA="--plugin=stringplugin"
EXTRA=""
EXTRA="$EXTRA --debug"
EXTRA="$EXTRA --verbose"
acthex $EXTRA \
--pluginpath=./plugins/ \
--plugin=acthex-testplugin \
$WHAT
fi