summaryrefslogtreecommitdiffstats
path: root/install/ui/test/bin/functional.sh
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2011-04-04 12:24:38 -0400
committerEndi Sukma Dewata <edewata@people01.fedoraproject.org>2011-04-05 21:21:54 +0000
commit86995509a1d29497fb1c95f810337a567e1d5634 (patch)
treeb6b8bcf3801f4a88f3a39544d0323b77e3f8686e /install/ui/test/bin/functional.sh
parentdeaf029023e4037ad53d17b9e48562845b3c1197 (diff)
downloadfreeipa-86995509a1d29497fb1c95f810337a567e1d5634.tar.gz
freeipa-86995509a1d29497fb1c95f810337a567e1d5634.tar.xz
freeipa-86995509a1d29497fb1c95f810337a567e1d5634.zip
Added functional test runner.
Diffstat (limited to 'install/ui/test/bin/functional.sh')
-rwxr-xr-xinstall/ui/test/bin/functional.sh33
1 files changed, 33 insertions, 0 deletions
diff --git a/install/ui/test/bin/functional.sh b/install/ui/test/bin/functional.sh
new file mode 100755
index 000000000..c8705dbf0
--- /dev/null
+++ b/install/ui/test/bin/functional.sh
@@ -0,0 +1,33 @@
+#!/bin/sh
+
+BIN_DIR=`dirname $0`
+
+TEST_SUITES=functional
+TEST_RESULTS=results
+mkdir -p "$TEST_RESULTS"
+
+LIST=$1
+shift
+
+while [ -n "$1" ]
+do
+ LIST="$LIST $1"
+ shift
+done
+
+if [ -z "$LIST" ]
+then
+ LIST="`ls $TEST_SUITES/*-suite.html | sed 's/^.*\/\(.*\)-suite.html$/\1/'`"
+fi
+
+for TEST_NAME in $LIST
+do
+ echo ===================================================
+ echo Test Suite: $TEST_NAME
+ echo ===================================================
+
+ "$BIN_DIR/selenium.sh" "$TEST_SUITES/$TEST_NAME-suite.html"\
+ "$TEST_RESULTS/$TEST_NAME-results.html"
+
+ rhino -opt -1 "$BIN_DIR/selenium-results.js" "$TEST_RESULTS/$TEST_NAME-results.html"
+done