-
Notifications
You must be signed in to change notification settings - Fork 2
/
test.sh
executable file
·43 lines (37 loc) · 1.06 KB
/
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
38
39
40
41
42
43
VALEC_DIR="$1"
if [ "$VALEC_DIR" == "" ]; then
echo "Please supply the valec directory."
echo "Example: ~/TheValeCompiler"
exit
fi
shift;
echo "Building command test..."
rm -rf build
$VALEC_DIR/valec build stdlib=src vtest=src/command/test || exit 1
echo "Running command test..."
build/main || exit 1
echo "Done testing!"
echo "Building path test..."
rm -rf build
$VALEC_DIR/valec build stdlib=src vtest=src/path/test || exit 1
echo "Running path test..."
build/main || exit 1
echo "Done testing!"
echo "Building collections test..."
rm -rf build
$VALEC_DIR/valec build stdlib=src vtest=src/collections/test || exit 1
echo "Running collections test..."
build/main || exit 1
echo "Done testing!"
echo "Building top level test..."
rm -rf build
$VALEC_DIR/valec build stdlib=src vtest=src/test $@ || exit 1
echo "Running top level test..."
build/main || exit 1
echo "Done testing!"
echo "Building stringutils test..."
rm -rf build
$VALEC_DIR/valec build stdlib=src vtest=src/stringutils/test || exit 1
echo "Running stringutils test..."
build/main || exit 1
echo "Done testing!"