Commit 3e0cd91c authored by Ryan Herbert's avatar Ryan Herbert

server functional tests use links, not duplication

launch_functional_tests and vidjil_browser.rb are no different from
their counterparts in browser functional tests, so we should use
symlinks, as suggested by @mikael-s
parent ebbd4e9c
# sh launch_functional_tests "functional/test_*rb"
FUNCTIONAL_TESTS=$1
rename_reports_in() {
dir="$1"
b="$2"
if [ "$b" = "." ]; then
b="default"
else
b=$(echo "$b" | tr '/' '-')
fi
for file in $1/*.xml; do
filename=$(basename -s .xml $file)
mv $file $dir/$filename-$b.xml
done
}
rm -f test/*.xml
EXIT=0
if [ -z "$FUNCTIONAL_CLIENT_BROWSER_PATH" ]; then
FUNCTIONAL_CLIENT_BROWSER_PATH="."
fi
for browser in $FUNCTIONAL_CLIENT_BROWSER_PATH; do
for file in $FUNCTIONAL_TESTS; do
if [ ${#browser} -gt 1 ]; then
export WATIR_BROWSER_PATH="$browser"
fi
ruby -I functional $file;
TMP_EXIT=$?
if [ $TMP_EXIT -ne 0 ]; then
EXIT=$TMP_EXIT
fi
rename_reports_in test/reports/ "$browser"
mv test/reports/*.xml test/
done
done
exit $EXIT
../../../../../../browser/test/launch_functional_tests
\ No newline at end of file
../../../../../../browser/test/functional/vidjil_browser.rb
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment