-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathrun_all_tests.sh
More file actions
executable file
·69 lines (61 loc) · 1.18 KB
/
run_all_tests.sh
File metadata and controls
executable file
·69 lines (61 loc) · 1.18 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#!/bin/bash
ERR=0
while [[ "$1" =~ ^- && ! "$1" == "--" ]]; do case $1 in
-c | --cpp | --full )
shift; RUNCPP=1
;;
esac; shift; done
if [[ "$1" == '--' ]]; then shift; fi
cd JorGpi/tests
ln -s ../asa ./
ln -s ../_INPUT ./
ln -s ../_VASP ./
echo "testing module POSCARloader"
python3 -m unittest test_poscar_loader -v
TST=$?
if [ "$TST" -ne "0" ]; then
ERR=$TST
fi
echo "testing module NearestNeighborsGenerator"
python3 -m unittest test_generator -v
TST=$?
if [ "$TST" -ne "0" ]; then
ERR=$TST
fi
echo "testing module argv"
python3 -m unittest test_argv -v
TST=$?
if [ "$TST" -ne "0" ]; then
ERR=$TST
fi
echo "testing module xml"
python3 -m unittest test_xml -v
TST=$?
if [ "$TST" -ne "0" ]; then
ERR=$TST
fi
if [ -n "$RUNCPP" ]; then
echo "testing module JorGpi"
python3 -m unittest test_jorgpi -v
TST=$?
if [ "$TST" -ne "0" ]; then
ERR=$TST
fi
fi
echo "testing module pickup"
python3 -m unittest test_pickup -v
TST=$?
if [ "$TST" -ne "0" ]; then
ERR=$TST
fi
echo "testing module KPOINTS"
python3 -m unittest test_kpoints -v
TST=$?
if [ "$TST" -ne "0" ]; then
ERR=$TST
fi
rm asa _INPUT _VASP
if [ -n "$RUNCPP" ]; then
rm -r output
fi
exit $ERR