Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100755 32 lines (26 sloc) 1.103 kB
7a29b0d @arjan Made a start with EUnit tests for zotonic.
arjan authored
1 #!/bin/sh
2 #
3 # Copyright 2010 Arjan Scherpenisse
4 #
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
8 #
9 # http://www.apache.org/licenses/LICENSE-2.0
10 #
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
16 cd `dirname $0`
17
18 # Find all tests
19 MODULES=`ls ebin/*_tests.beam|sed 's/.beam//'|sed 's/ebin\///'`
20
21 # Skip postgres tests
22 MODULES=`echo $MODULES|sed 's/pgsql_pool_tests//'|sed 's/pgsql_tests//'`
23
24 # Run the tests
25 ALL="zotonic"
26 for MODULE in $MODULES; do ALL="$ALL,$MODULE"; done
27 #exec erl -noshell -pa ebin -eval "eunit:test([$ALL],[verbose]),init:stop()"
28
29 echo $ALL
30 exec erl erl +P 10000000 +K true -pa $PWD/ebin $PWD/deps/*/ebin -boot start_sasl -s zotonic -eval "eunit:test([$ALL],[verbose]),init:stop()"
31
Something went wrong with that request. Please try again.