-autopkgtest (1.3.0) unstable; urgency=low
+autopkgtest (2.0.0) unstable; urgency=low
+ * Incompatible test declaration spec changes:
+ - no-build-needed is now the default; build-needed is a Restriction
+ that tests which need it have to declare.
+ * Incompatible virtualisation server spec changes:
+ - print-execute-command replaced by print-{auxverb,shscript}-command.
* New adt-virt-schroot for driving schroot.
* Remove dependency on python in testbed.
- * Incompatible virtualisation server spec changes: print-execute-command
- replaced by print-auxverb-command and print-shscript-command.
* Spec wording improvements, clarifications, editorial changes, etc.
* Many bugfixes.
prints to stderr, it is considered to have failed.
The cwd of each test is guaranteed to be the root of the source
-package which will have been built. HOWEVER note that the tests must
-test the INSTALLED version of the program. Tests may not modify the
-source tree (and may not have write access to it).
+package, which will have been unpacked but not built. HOWEVER note
+that the tests must test the INSTALLED version of the program. Tests
+may not modify the source tree (and may not have write access to it).
If the file to be executed has no execute bits set, chmod a+x is
applied to it (this means that tests can be added in patches without
tests defined in this stanza. Any unknown features declared will
be completely ignored. See below for the defined features.
- Depends: <dpkg dependcy field syntax>
+ Depends: <dpkg dependency field syntax>
Declares that the specified packages must be installed for the
test to go ahead. `@' stands for the package(s) generated by the
The test script must be run as root.
+ build-needed
-The currently defined Features are:
+ The tests need to be run from a built source tree. The test
+ runner will build the source tree (honouring the source package's
+ build dependencies), before running the tests. However, the tests
+ are NOT entitled to assume that the source package's build
+ dependencies will be installed when the test is run.
- no-build-needed
- The tests can run in an unbuilt tree.
+There are no currently defined Features.
stanzas = read_control(act, result_pwd_af, control_override)
for stanza in stanzas:
for t in stanza[' tests']:
- if 'no-build-needed' not in t.feature_names:
+ if 'build-needed' not in t.restriction_names:
build_needed('test %s' % t.tname)
for d in t.depends:
if '@' in d: