diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | configure.ac | 6 | ||||
-rw-r--r-- | test/firefox.sh.in | 14 |
3 files changed, 21 insertions, 0 deletions
@@ -24,3 +24,4 @@ stamp-h1 test/previewer test/mime +test/firefox.sh diff --git a/configure.ac b/configure.ac index 7883404..3a70bf1 100644 --- a/configure.ac +++ b/configure.ac @@ -51,5 +51,11 @@ AC_CONFIG_FILES([ Makefile src/Makefile test/Makefile +test/firefox.sh ]) + +AC_CONFIG_COMMANDS([script],[ +chmod +x test/firefox.sh +]) + AC_OUTPUT diff --git a/test/firefox.sh.in b/test/firefox.sh.in new file mode 100644 index 0000000..61fd680 --- /dev/null +++ b/test/firefox.sh.in @@ -0,0 +1,14 @@ +#!/bin/sh + +abs_top_srcdir="@abs_top_srcdir@" +abs_top_builddir="@abs_top_builddir@" + +FIREFOX=${FIREFOX-firefox} +MOZ_PLUGIN_PATH="$abs_top_builddir/src/.libs${MOZ_PLUGIN_PATH+:$MOZ_PLUGIN_PATH}" +EVBP_DEBUG=1 +G_DEBUG=${G_DEBUG-fatal_criticals} +export MOZ_PLUGIN_PATH EVBP_DEBUG G_DEBUG + +[ -z "$1" ] && set -- "$abs_top_srcdir/test/3-page.pdf" +[ -n "$EVBP_PROFILE" ] && set -- -P "$EVBP_PROFILE" "$@" +exec $FIREFOX "$@" |