-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchecker.sh
33 lines (24 loc) · 1.42 KB
/
checker.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
# Build
make
# ./rtree queryfile maxcap d output
# Test case 1
./rtree Testcases/TC_1/queries_2_10_100_100.txt 10 2 output_tc1.txt
cmp --silent output_tc1.txt Testcases/TC_1/answer_2_10_100_100.txt && echo 'TC1: SUCCESS' || echo 'TC1: FAILED'
# Test case 2
./rtree Testcases/TC_2/queries_2_10_100_1000.txt 10 2 output_tc2.txt
cmp --silent output_tc2.txt Testcases/TC_2/answer_2_10_100_1000.txt && echo 'TC2: SUCCESS' || echo 'TC2: FAILED'
# Test case 3
./rtree Testcases/TC_3/queries_3_10_1000_10000.txt 10 3 output_tc3.txt
cmp --silent output_tc3.txt Testcases/TC_3/answer_3_10_1000_10000.txt && echo 'TC3: SUCCESS' || echo 'TC3: FAILED'
# Test case 4
./rtree Testcases/TC_4/queries_5_20_1000_1000.txt 20 5 output_tc4.txt
cmp --silent output_tc4.txt Testcases/TC_4/answer_5_20_1000_1000.txt && echo 'TC4: SUCCESS' || echo 'TC4: FAILED'
# Test case 5
./rtree Testcases/TC_5/queries_2_10_100000_100000.txt 10 2 output_tc5.txt
cmp --silent output_tc5.txt Testcases/TC_5/answer_2_10_100000_100000.txt && echo 'TC5: SUCCESS' || echo 'TC5: FAILED'
# Test case 6
./rtree Testcases/TC_6/queries_2_10_100_100.txt 10 2 output_tc6.txt
cmp --silent output_tc1.txt Testcases/TC_1/answer_2_10_100_100_bulk.txt && echo 'TC6: SUCCESS' || echo 'TC6: FAILED'
# Test case 7
./rtree Testcases/TC_7/queries_2_10_100_100.txt 10 2 output_tc7.txt
cmp --silent output_tc1.txt Testcases/TC_1/answer_2_10_100_100_insert.txt && echo 'TC7: SUCCESS' || echo 'TC7: FAILED'