forked from Blespa/abstat
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest-java-summarization-module.sh
More file actions
executable file
·21 lines (15 loc) · 1.02 KB
/
test-java-summarization-module.sh
File metadata and controls
executable file
·21 lines (15 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash
set -e
relative_path=`dirname $0`
root=`cd $relative_path;pwd`
project=$root/../summarization
echo "Unit testing the java summarization module"
cd $project
java -Xms256m -Xmx1g -cp .:'summarization.jar' org.junit.runner.JUnitCore it.unimib.disco.summarization.test.unit.UnitTests
#----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
# perchè quando i test di unità sulle classi AKPDatatypeCount e ObjectTypeCount sono chiamati vengono creati questi file e successivamente nella summarization di
# system-test viene scritto sopra senza cancellare causando errori nei test di sistema. Purtroppo queste due classi sono le uniche che hanno triple e rispettivi AKPS.
rm datatype-akp_grezzo.txt
rm object-akp_grezzo.txt
#-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
cd $root