Re: using package tests
If upstream provide a test script, you can use "Test-Command" to call it
Daniel Leidert wrote:
However there is a restriction called 'build-needed' which I guess
is for cases where you rely on something inside the source.
Tests always have the source available, and start in the directory
containing it ( line 28).
"build-needed" builds the source before running the tests, to also allow
access to test executables built by the source package but not installed
into its binary package(s) ( line 211).
Depending on the
tests run it is possible that tests rely on files inside the source and not the
installed package (that's why e.g. the defaukt ruby tests move the lib/
dorectofry in the source away during the tests).
It is OK to load the tests themselves from the source tree, but the
program/library under test should be loaded from the installed package,
not the source ( line 30).
Some interpreted languages (e.g. Python ) search the current
directory before the system modules directory, and hence default to
loading the module under test from source. One way to avoid this is to
change directory to $AUTOPKGTEST_TMP before starting the test .
(The source tree is read-only ( line 32), so the files Ruby moves 
probably aren't it.)