xmltooling, wheezy and skipping tests

Etienne Dysli-Metref etienne.dysli-metref at switch.ch
Wed Sep 21 08:18:35 UTC 2016


I've hit a nastier obstacle while backporting xmltooling for wheezy:
tests that use the network are skipped, but skipping tests is only
supported since cxxtest 4.2 and wheezy has 4.0 (jessie has 4.3). So the
code in Enable-skipping-tests-which-require-network-access.patch cannot
use the TS_SKIP macro.

The following workarounds come to my mind:
- Backport cxxtest to wheezy, but this is walking straight into
dependency hell.
- Undo Enable-skipping-tests-which-require-network-access.patch, but the
tests will then likely fail on the build servers, preventing the package
from building.
- Fake the tests passing with something like:
    void skipNetworked() {
        if (getenv("XMLTOOLINGTEST_SKIP_NETWORKED")) {
            TS_WARN("requires network access");
            TS_ASSERT(1);
        }
    }
  but I don't like lying in unit tests...

What do you guys think?

  Etienne

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-shibboleth-devel/attachments/20160921/a4905f1d/attachment.sig>


More information about the Pkg-shibboleth-devel mailing list