aboutsummaryrefslogtreecommitdiffstats
path: root/acinclude.m4
diff options
context:
space:
mode:
authorJiri Vanek <[email protected]>2012-06-19 14:36:25 +0200
committerJiri Vanek <[email protected]>2012-06-19 14:36:25 +0200
commit7b0adacff066b704b05d2d9de27b1bd2e10c568d (patch)
tree9f6ac563a2db429563ebf7a383b13ae675c0a6fa /acinclude.m4
parent7a1099690059f820a37419c1c6e7308689655f35 (diff)
testInBrowser annotation
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m429
1 files changed, 29 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index eff60c8..bdddb77 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -917,3 +917,32 @@ AC_DEFUN([IT_FIND_BROWSER],
AC_MSG_RESULT([no])
fi
])
+
+AC_DEFUN_ONCE([IT_SET_GLOBAL_BROWSERTESTS_BEHAVIOUR],
+[
+ AC_MSG_CHECKING([how browser test will be run])
+ AC_ARG_WITH([browser-tests],
+ [AS_HELP_STRING([--with-browser-tests],
+ [yes - as defined (default), no - all browser tests will be skipped, one - all "mutiple browsers" test will behave as "one" test, all - all browser tests will be run for all set browsers])],
+ [
+ BROWSER_SWITCH=${withval}
+ ],
+ [
+ BROWSER_SWITCH="yes"
+ ])
+ D_PARAM_PART="-Dmodified.browsers.run"
+ case "$BROWSER_SWITCH" in
+ "yes" )
+ BROWSER_TESTS_MODIFICATION="" ;;
+ "no" )
+ BROWSER_TESTS_MODIFICATION="$D_PARAM_PART=ignore" ;;
+ "one" )
+ BROWSER_TESTS_MODIFICATION="$D_PARAM_PART=one" ;;
+ "all" )
+ BROWSER_TESTS_MODIFICATION="$D_PARAM_PART=all" ;;
+ *)
+ AC_MSG_ERROR([unknown valkue of with-browser-tests ($BROWSER_SWITCH), so not use (yes) or set yes|no|one|all])
+ esac
+ AC_MSG_RESULT(${BROWSER_SWITCH})
+ AC_SUBST(BROWSER_TESTS_MODIFICATION)
+])