diff options
| author | yzhou <yujiao.zhou@gmail.com> | 2015-04-21 10:34:27 +0100 |
|---|---|---|
| committer | yzhou <yujiao.zhou@gmail.com> | 2015-04-21 10:34:27 +0100 |
| commit | 9ce65c5a963b03ee97fe9cb6c5aa65a3c04a80a8 (patch) | |
| tree | 47511c0fb89dccff0db4b5990522e04f294d795b /test/uk/ac/ox/cs/pagoda/junit/PagodaLUBM.java | |
| parent | b1ac207612ee8b045244253fb94b866104bc34f2 (diff) | |
| download | ACQuA-9ce65c5a963b03ee97fe9cb6c5aa65a3c04a80a8.tar.gz ACQuA-9ce65c5a963b03ee97fe9cb6c5aa65a3c04a80a8.zip | |
initial version
Diffstat (limited to 'test/uk/ac/ox/cs/pagoda/junit/PagodaLUBM.java')
| -rw-r--r-- | test/uk/ac/ox/cs/pagoda/junit/PagodaLUBM.java | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/test/uk/ac/ox/cs/pagoda/junit/PagodaLUBM.java b/test/uk/ac/ox/cs/pagoda/junit/PagodaLUBM.java new file mode 100644 index 0000000..f8fef0e --- /dev/null +++ b/test/uk/ac/ox/cs/pagoda/junit/PagodaLUBM.java | |||
| @@ -0,0 +1,38 @@ | |||
| 1 | package uk.ac.ox.cs.pagoda.junit; | ||
| 2 | |||
| 3 | import static org.junit.Assert.*; | ||
| 4 | |||
| 5 | import org.junit.Test; | ||
| 6 | |||
| 7 | import uk.ac.ox.cs.pagoda.tester.PagodaTester; | ||
| 8 | import uk.ac.ox.cs.pagoda.tester.Statistics; | ||
| 9 | |||
| 10 | public class PagodaLUBM { | ||
| 11 | |||
| 12 | public void test_all(int number) { | ||
| 13 | PagodaTester.main( | ||
| 14 | PagodaTester.onto_dir + "lubm/univ-bench.owl", | ||
| 15 | PagodaTester.onto_dir + "lubm/data/lubm" + number + ".ttl", | ||
| 16 | PagodaTester.onto_dir + "lubm/queries/test_all_pagoda.sparql" | ||
| 17 | ); | ||
| 18 | |||
| 19 | AllTests.copy("log4j.log", "output/jair/lubm" + number + ".out"); | ||
| 20 | } | ||
| 21 | |||
| 22 | @Test | ||
| 23 | public void test1() { test_all(1); } | ||
| 24 | |||
| 25 | public void test() { | ||
| 26 | int number = 100; | ||
| 27 | test_all(number); | ||
| 28 | } | ||
| 29 | |||
| 30 | public void check(int number) { | ||
| 31 | Statistics stat = new Statistics("output/log4j.log"); | ||
| 32 | String diff = stat.diff("results-backup/benchmark/lubm" + number + ".out"); | ||
| 33 | AllTests.copy("output/log4j.log", "results-backup/current/lubm" + number + ".out"); | ||
| 34 | if (!diff.isEmpty()) | ||
| 35 | fail(diff); | ||
| 36 | } | ||
| 37 | |||
| 38 | } | ||
