Commit Graph

8 Commits

Author SHA1 Message Date
Simon Marchi
a2909b2c8d Convert print statements to print function
In preparation for the transition to Python 3, convert to using the
print function.  The special import

    from __future__ import print_function

in Python 2.7 makes "print" become the function and not the statement.
In Python 3, it has no effect.  Once the transition is done and we
exclusively use Python 3, we can simply remove the imports.

The testsuite shows no regressions.
2020-11-22 19:29:38 -05:00
Joel Brobecker
153fbe32fc lib/testsuite: Remove Env import. Not used. 2013-12-30 14:24:56 +04:00
Joel Brobecker
50fd97b3e6 testsuite: Print summary at end of testsuite run. 2013-12-30 14:24:21 +04:00
Joel Brobecker
5061b7c75d Add verification that our scripts do not leak any temporary file.
This patch forces the scripts to use a specific directory as the root
for their own temporary directories/files. We create it as an empty
directory at the start of the testcase, and then verify at the end
that it is still empty. If not, the testcase will report a failure.

This patch also makes sure that, even if the scripts do leak some
files/directories, the testsuite catches those and deletes them.
2012-11-24 10:56:03 -08:00
Joel Brobecker
3a213bf06e Minor cleanup: pass discs = None instead of [] to generate_run_testcase. 2012-06-10 10:19:03 -07:00
Joel Brobecker
bd82a26dec Minor simplification in call to generate_collect_result. 2012-05-26 23:59:17 +02:00
Joel Brobecker
b3e4989925 Move testsuite/run-test to testsuite/bin/run-testcase.
Adjust new run-testcase accordingly (mini-adjustment).
Update call from testcase/lib/testsuite.py.
2012-05-26 11:22:46 +02:00
Joel Brobecker
5810363c92 Partial implementation, with a testsuite infrastructure.
Very little is currently implemented, but this should be a good start.
2012-04-27 13:44:51 -07:00