Codebase list rust-libslirp / dc94b1d
fix tests for atty and document some other tests Ximin Luo 4 years ago
11 changed file(s) with 56 addition(s) and 11 deletion(s). Raw diff Collapse all Expand all
188188 Testing
189189 -------
190190
191 For now, testsuites aren't executed for library.
192 However, for binary, it is strongly recommended to run the testsuites.
193 See ripgrep as example.
191 Debian has two types of tests:
192
193 1. pre-install tests run in debian/rules
194 2. post-install tests defined in debian/tests/control
195
196 For Debian rust packages, in (1) we run the crate's test suite with default
197 features but only if there are no dev-dependencies, and in (2) we run the whole
198 test suite with each feature enabled separately plus --no-default-features and
199 --all-features.
200
201 Sometimes, tests require extra tweaks and settings to work. In this case, you
202 can tweak ``debian/rules`` for (1), and for (2) you will simply have to mark
203 the relevant tests as broken using ``test_is_broken = true``. See the existing
204 crate configs for examples.
205
206 Other times, the tests are simply broken or can't be run in Debian. In this
207 case you should disable the test in (1) by running ``dh_auto_test -- build``
208 instead of the default ``dh_auto_test -- test --all``, and for (2) again you
209 should mark the relevant tests as broken.
210
211 Please note that ``[packages.lib]\ntest_is_broken = true`` will transitively
212 disable tests for all combinations of features. Sometimes this is correct e.g.
213 if the test actually breaks for all features. Sometimes this is *not* correct,
214 e.g. if the test only breaks for ``--no-default-features``. In the latter case
215 you should instead patch the crate to ignore those tests when the relevant
216 features are absent - see commit 457f5d76 for an example.
194217
195218 Binary-crate has "required-features"
196219 ------------------------------------
0 rust-atty (0.2.13-1) UNRELEASED-FIXME-AUTOGENERATED-DEBCARGO; urgency=medium
1
2 * Team upload.
3 * Package atty 0.2.13 from crates.io using debcargo 2.4.2
4
5 -- Ximin Luo <infinity0@debian.org> Fri, 17 Jan 2020 00:33:09 +0000
6
07 rust-atty (0.2.13-1) unstable; urgency=medium
18
29 * Team upload.
2020
2121 Files: debian/*
2222 Copyright:
23 2018-2019 Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
24 2018-2019 Sylvestre Ledru <sylvestre@debian.org>
23 2018-2020 Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
24 2018-2020 Sylvestre Ledru <sylvestre@debian.org>
2525 License: MIT
2626
2727 License: MIT
00 overlay = "."
11 uploaders = ["Sylvestre Ledru <sylvestre@debian.org>"]
22
3 # https://github.com/softprops/atty/issues/39
4 [packages.lib]
5 test_is_broken = true
3 [source]
4 build_depends = ["bsdutils <!nocheck>"]
0 #!/usr/bin/make -f
1 %:
2 dh $@ --buildsystem cargo
3
4 override_dh_auto_test:
5 script -c 'dh_auto_test -- test --all' /dev/null
0 #!/usr/bin/make -f
1 %:
2 dh $@ --buildsystem cargo
3
4 override_dh_auto_test:
5 dh_auto_test -- test --all
22
33 [source]
44 # xvfb, xauth needed for tests in X
5 build_depends = ["xvfb", "xauth"]
5 build_depends = ["xvfb <!nocheck>", "xauth <!nocheck>"]
44 ]
55
66 [packages.lib]
7 # link fails since lib is not in Debian
78 test_is_broken = true
11 uploaders = ["kpcyrd <git@rxv.cc>"]
22
33 [packages.lib]
4 # this crate is meant for wasm32-* targets, so tests are expected to not even compile.
5 # we could install libstd-rust-dev-wasm32-cross and pass --target wasm32-unknown-unknown,
6 # however cargo doesn't support cross-compiling doctests yet https://github.com/rust-lang/cargo/issues/4471
47 test_is_broken = true
11 uploaders = ["Ximin Luo <infinity0@debian.org>"]
22
33 [source]
4 build_depends = ["bsdutils"]
4 build_depends = ["bsdutils <!nocheck>"]
22
33 [source]
44 # xvfb, xauth needed for tests in X
5 build_depends = ["xvfb", "xauth"]
5 build_depends = ["xvfb <!nocheck>", "xauth <!nocheck>"]