+2011-09-18 Stefano Lattarini <stefano.lattarini@gmail.com>
+
+ py-compile tests: more faithful 'installcheck' support
+ * tests/py-compile-basedir.test: Use the `$am_scriptsdir' variable
+ instead of `$testsrcdir/../lib', to test more faithfully under
+ "make installcheck". More uses of the `fatal_' subroutine to
+ diagnose hard errors.
+ * tests/py-compile-basic.test: Likewise.
+ * tests/py-compile-basic2.test: Likewise.
+ * tests/py-compile-destdir.test: Likewise.
+ * tests/py-compile-env.test: Likewise.
+ * tests/py-compile-option-terminate.test: Likewise.
+ * tests/py-compile-usage.test: Likewise.
+
2011-09-18 Stefano Lattarini <stefano.lattarini@gmail.com>
tests: remove redundant settings of `errexit' shell flag
mkdir sandbox
cd sandbox
-cp "$testsrcdir/../lib/py-compile" .
+cp "$am_scriptdir/py-compile" . \
+ || fatal_ "failed to fetch auxiliary script py-compile"
f=__init__
for d in foo foo/bar "`pwd`/foo" . .. ../foo ''; do
required=python
. ./defs || Exit 1
-cp "$testsrcdir/../lib/py-compile" .
+cp "$am_scriptdir/py-compile" . \
+ || fatal_ "failed to fetch auxiliary script py-compile"
cat > foo.py <<'END'
# Try out some non-trivial syntax in here.
mkdir dir
cd dir
-cp "$testsrcdir/../lib/py-compile" .
+cp "$am_scriptdir/py-compile" . \
+ || fatal_ "failed to fetch auxiliary script py-compile"
mkdir sub sub/subsub
touch $pyfiles
./py-compile $pyfiles
required=python
. ./defs || Exit 1
-cp "$testsrcdir/../lib/py-compile" .
+cp "$am_scriptdir/py-compile" . \
+ || fatal_ "failed to fetch auxiliary script py-compile"
# Should not give false positives when grepping for it, so use
# an "uncommon" string (with ugly CamelCase).
. ./defs || Exit 1
-cp "$testsrcdir/../lib/py-compile" .
+cp "$am_scriptdir/py-compile" . \
+ || fatal_ "failed to fetch auxiliary script py-compile"
cat > my-py <<'END'
#!/bin/sh
required=python
. ./defs || Exit 1
-cp "$testsrcdir/../lib/py-compile" .
+cp "$am_scriptdir/py-compile" . \
+ || fatal_ "failed to fetch auxiliary script py-compile"
: > ./-o.py
: > ./--foo.py
. ./defs || Exit 1
-cp "$testsrcdir/../lib/py-compile" .
+cp "$am_scriptdir/py-compile" . \
+ || fatal_ "failed to fetch auxiliary script py-compile"
# --help