]> granicus.if.org Git - yasm/commitdiff
* python_test.sh: Set srcdir and PYTHON to reasonable defaults if not already
authorPeter Johnson <peter@tortall.net>
Mon, 17 Apr 2006 03:53:04 +0000 (03:53 -0000)
committerPeter Johnson <peter@tortall.net>
Mon, 17 Apr 2006 03:53:04 +0000 (03:53 -0000)
set, this allows easy manual execution of this script outside of make check.

svn path=/trunk/yasm/; revision=1502

tools/python-yasm/tests/python_test.sh

index fbea44026b777e8117b7cce4dbe6be1d86fc7d1d..1f3896d63d80feeddc71e8e041d4f3a6b904de8b 100755 (executable)
@@ -5,6 +5,9 @@
 
 set -e
 
+test -n "${srcdir}" || srcdir=.
+test -n "${PYTHON}" || PYTHON=python
+
 if test "$1" = "--help" -o "$1" = "-h"; then
     echo "Usage: $0 --sanity | [TestName] ..."
     exit 0