monotone-commits-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Monotone-commits-diffs] Revision 1a7aa62564c83b61640e9699a9329fcd846d50


From: monotone
Subject: [Monotone-commits-diffs] Revision 1a7aa62564c83b61640e9699a9329fcd846d504f
Date: Tue, 24 Jul 2007 06:06:03 +0200

-----------------------------------------------------------------
Revision: 1a7aa62564c83b61640e9699a9329fcd846d504f
Ancestor: 58ddc044f0ef4d0094b971462d022fe0c4d07ffb
Author: address@hidden
Date: 2007-07-24T03:30:39
Branch: net.venge.monotone.parallel-tests

Added files:
        unit-testsuite.lua
Modified files:
        Makefile.am tester-tests/isolated-1/__driver__.lua
        testlib.lua testsuite.lua unit_tests.cc unit_tests.hh

ChangeLog: 

* testlib.lua (old_mtime, old_mkdir, old_existsonpath): Rename to
unlogged_mtime, unlogged_mkdir, unlogged_existsonpath respectively.
(ostype, getpathof): Define here.
* testsuite.lua: ... not here.
(prepare_to_run_tests): Delete in/out/err regardless of result; make sure to
abort the testsuite if mtn version --full exited successfully but did not
produce the expected output.
* tester-tests/isolated-1/__driver__.lua: Adjust for renamed old_mkdir.

* unit-testsuite.lua: New file, runs the unit tests under the lua test
framework.
* unit_tests.hh (unit_test_case): Add failure_is_success boolean and adjust
constructor prototype.
(UNIT_TEST): Adjust call to unit_test_case constructor.
* unit_tests.cc (unit_test_case constructor): Adjust to match.
(this_test_failed): Initialize explicitly.
(any_test_failed, number_of_failed_tests, number_of_succeeded_tests)
(log_to_stderr): Delete.
(main): Remove all logic for iterating over tests; also the various --list,
--log, and --debug options.  If invoked with no arguments, dump a list of
runnable test cases to stderr.  If invoked with just one argument, run that
test case, writing debug info to stderr.  Add capability to treat failure as
success.
(run_test): Fold into main.
(NEGATIVE_UNIT_TEST): New macro.
(unit tests in this file): Give them a proper group name and run them
by default.  Use NEGATIVE_UNIT_TEST to define them.
* Makefile.am (unit_tests): Rename to unit_tester throughout.
(TESTS): Change unit_tests to run_unit_tests.
(DISTCLEANFILES): Add run_unit_tests.
(mostlyclean-local): Clean up unit-tests directory.
(run_unit_tests): New rule.

Attachment: txtfaUdz_oxDT.txt
Description: Diff [58ddc044f0ef4d0094b971462d022fe0c4d07ffb] -> [1a7aa62564c83b61640e9699a9329fcd846d504f]


reply via email to

[Prev in Thread] Current Thread [Next in Thread]