forked from playframework/playframework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathruntests
executable file
·87 lines (63 loc) · 1.39 KB
/
runtests
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
echo "[info]"
echo "[info] ---- PLAYFRAMEWORK CORE TEST RUNNER"
echo "[info]"
set -e
export CURRENT=`pwd`
export SCRIPT=`dirname $0`
cd $SCRIPT
export PLAY=`pwd`/../play
./build "$@" publish-local test
rm -rf ./logs
cd ./test/integrationtest
echo "[info]"
echo "[info] ---- RUNNING INTEGRATION TEST"
echo "[info]"
$PLAY "$@" clean-all test test-dist
cd $CURRENT
cd ./test/integrationtest-java
echo "[info]"
echo "[info] ---- RUNNING JAVA INTEGRATION TEST"
echo "[info]"
$PLAY "$@" clean-all test
if [ ! -f target/junit-running ]
then
echo "[Error]"
echo "[Error] ---- Junit tests might not be running"
echo "[Error]"
exit 1
fi
cd $CURRENT
cd ./test/integrationtest-scala
echo "[info]"
echo "[info] ---- RUNNING SCALA INTEGRATION TEST"
echo "[info]"
$PLAY "$@" clean-all test
cd $CURRENT
cd ./test/csrftest-scala
echo "[info]"
echo "[info] ---- RUNNING CSRF TEST"
echo "[info]"
$PLAY "$@" clean-all test
cd $CURRENT
echo "[info]"
echo "[info] ---- RUNNING DOCUMENTATION TESTS"
echo "[info]"
cd ../documentation
$PLAY "$@" clean-all test validate-docs
cd $CURRENT
echo "[info]"
echo "[info] ---- TESTING SAMPLE APPLICATIONS"
echo "[info]"
x=`find ../samples -name app`
for i in $(echo $x | tr ";" "\n")
do
echo "[info]"
echo "[info] ---- TESTING ${i/app/}"
echo "[info]"
cd ${i/app/}
$PLAY "$@" clean-all test
cd $CURRENT
done
echo "[info]"
echo "[info] ALL TESTS PASSED"
echo "[info]"