#280 Create a test control framework
Merged by puiterwijk. Opened by puiterwijk.
puiterwijk/ipsilon testframework  into  master

Download 280.patch

This is a test framework that can print a nice overview of the failing tests.
It is unfeasible to use a standard python test framework due to the specific requirements of the Ipsilon test suite like the nss wrappers, which need to be in LD_PRELOAD.
Communication between the test framework and system under test happens via stdout and stderr, by means of messages on stdout prefixed with special prefixes.

TC.fail() does a sys.exit(), and isn't an Exception subclass, so raise feels wrong to me.

Generally, this looks good. I like the massive reduction in boilerplate code around tests. +1

6 new commits added

  • Replace mutable default arguments
  • Make the containertests print test results
  • Use automated test detection in Makefile
  • Update tests to use new test framework
  • Rework test framework
  • Allow passing stdout and stderr to tests

@merlinthp: Removed the raise for TC.fail.

5 new commits added

  • Replace mutable default arguments
  • Use automated test detection in Makefile
  • Update tests to use new test framework
  • Rework test framework
  • Allow passing stdout and stderr to tests

rebased

Commit 9330602a fixes this pull-request

Pull-Request has been merged by puiterwijk@redhat.com

Metadata