Skip to content

Commit 18f6c4f

Browse files
committed
Added run.sh
1 parent 8d204a0 commit 18f6c4f

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

run.sh

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#!/bin/bash
2+
3+
cd "$(dirname "$0")"
4+
dir="$(pwd)"
5+
6+
# Usage
7+
if [ $# -lt 2 ]; then
8+
cat <<EOF
9+
Usage $0 <output-file> <unsecure-url> [<secure_url>]
10+
EOF
11+
exit 1
12+
fi
13+
14+
output_file=$1
15+
unsecure_url=$2
16+
secure_url=$3
17+
18+
options=''
19+
20+
if [ "$secure_url" != "" ]; then
21+
options="$options --secure_url=\"$secure_url\""
22+
fi
23+
24+
options="$options --xunit=$dir/$output_file"
25+
26+
# ignore ssl errors (self signed certificates... we are developers ;) )
27+
options="$options --ignore-ssl-errors=yes"
28+
29+
cat <<EOF
30+
casperjs --pre=config.js test $dir/tests/ --url="$unsecure_url" $options
31+
EOF

0 commit comments

Comments
 (0)