diff options
author | Vincent Sanders <vince@kyllikki.org> | 2016-12-09 14:46:16 +0000 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2016-12-16 14:45:16 +0000 |
commit | 7a5b50be940de2d6156e756482a2297014fb620b (patch) | |
tree | bceda7179036a5a5f196334146654d9eaaaacc19 /utils | |
parent | 9d77dc83bdd86f3a46ff00102a43c46718dac00b (diff) | |
download | netsurf-7a5b50be940de2d6156e756482a2297014fb620b.tar.gz netsurf-7a5b50be940de2d6156e756482a2297014fb620b.tar.bz2 |
move test script into utils
Diffstat (limited to 'utils')
-rwxr-xr-x | utils/test-netsurf | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/utils/test-netsurf b/utils/test-netsurf new file mode 100755 index 000000000..90c7e121b --- /dev/null +++ b/utils/test-netsurf @@ -0,0 +1,35 @@ +#!/bin/sh +# This file is part of NetSurf, http://netsurf-browser.org/ +# Licensed under the GNU General Public License, +# http://www.opensource.org/licenses/gpl-license +# Copyright 2007 Rob Kendrick <rjek@netsurf-browser.org> +# +# This launcher script is meant only for running nsgtk from inside the +# build tree, with some debugging enabled. It is not meant for day-to-day +# or packaged use! + +if [ -d ~/.netsurf ]; then + LOG=~/.netsurf/log.txt +elif [ -d /tmp ]; then + LOG=/tmp/netsurf-log.txt +else + LOG=netsurf-log.txt +fi + +echo $0: using $LOG as logfile + +ulimit -c unlimited + +if [ "x$1" = "x--gdb" ]; then + GDB="gdb --args" + echo + echo + echo "**********************************************************" + echo "Remember to type 'run' and press ENTER once gdb has loaded" + echo "**********************************************************" + echo + echo + shift +fi + +exec $GDB $PREFIX/bin/netsurf -v "$@" 2>&1 | tee $LOG |