-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlab2_test.sh
executable file
·37 lines (35 loc) · 1.02 KB
/
lab2_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
#!/bin/bash
RED='\033[0;31m'
GREEN='\033[0;32m'
NC='\033[0m' # No Color
COLOR=${RED}
for TESTNAME in PredicateTest JoinPredicateTest FilterTest JoinTest \
IntegerAggregatorTest StringAggregatorTest AggregateTest \
HeapPageWriteTest HeapFileWriteTest BufferPoolWriteTest \
InsertTest
do
ant runtest -Dtest=${TESTNAME}
if [ $? == 0 ]
then
COLOR=${GREEN}
else
COLOR=${RED}
fi
printf "${COLOR} ${TESTNAME} unit test result\n"
printf "${COLOR} ---------------------------------------------------------------------${NC}\n"
done
for TESTNAME in FilterTest JoinTest \
AggregateTest \
InsertTest DeleteTest \
EvictionTest
do
ant runsystest -Dtest=${TESTNAME}
if [ $? == 0 ]
then
COLOR=${GREEN}
else
COLOR=${RED}
fi
printf "${COLOR} ${TESTNAME} system test result\n"
printf "${COLOR} ---------------------------------------------------------------------${NC}\n"
done