[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Monotone-commits-diffs] Revision 0ded6525f69354823e381ebfe1dbcc9de8d90d
From: |
monotone |
Subject: |
[Monotone-commits-diffs] Revision 0ded6525f69354823e381ebfe1dbcc9de8d90de4 |
Date: |
Fri, 17 Aug 2007 10:07:06 +0200 |
-----------------------------------------------------------------
Revision: 0ded6525f69354823e381ebfe1dbcc9de8d90de4
Ancestor: 1715cf7057744bb8c64c3a961b7f248706139549
Author: address@hidden
Date: 2007-08-17T07:19:08
Branch: net.venge.monotone.parallel-tests
Modified files:
Makefile.am tester-plaf.hh tester.cc testlib.lua
unix/tester-plaf.cc win32/tester-plaf.cc
ChangeLog:
* unix/tester-plaf.cc: Add long comment explaining jobserver algorithm.
(jobsvr_read, jobsvr_write, jobsvr_read_dup, tokens_held, sigchld)
(acquire_token, release_token, prepare_for_parallel_testcases, child): New.
(run_tests_in_children): Rewrite implementing jobserver algorithm. Don't
redirect standard streams in the child anymore.
* win32/tester-plaf.cc (prepare_for_parallel_testcases): Stub.
(run_tests_in_children): Don't redirect standard streams in the child.
* tester-plaf.hh (test_invoker): Adjust comments. operator() returns int.
(prepare_for_parallel_testcases): Prototype.
* testlib.lua (samefile): Remove unused support for reading standard input.
(run_tests): Add sixth argument, 'progress' callback. Use it in P().
Remove unused entries from table of magic exit codes.
(report_one_test): Read the entire status file, not just the first line.
Do not delete the status file for failures.
(run_one_test): Open the logfile here rather than using io.output().
* tester.cc: Don't include option.hh; do include boost/lexical_cast.hpp.
(panic_thrower): Include the actual lua error message in the diagnostic.
(test_invoker::operator()): Simplify catch chain. Return exit code rather
than calling exit().
(run_tests_progress): New function.
(lua_lib): New structure encapsulating initialization of Lua library. Take
precautions against scripts messing with standard streams.
(split_into_words): Move above users.
(bool_option, int_option, int_int_option, parse_makeflags, parse_command_line):
New functions.
(main): Use new functions instead of option.hh functions for command line
processing. Use lua_lib structure. Call prepare_for_parallel_testcases.
Use test_invoker in -r case. Adjust call to run_tests.
(guess_terminal_width, split_into_lines, format_paragraph): Delete.
* Makefile.am (tester_LDADD): Remove option.cc.
(%_tests.status): Add + to beginning of command.
txt6a3tt4NKrp.txt
Description: Diff [1715cf7057744bb8c64c3a961b7f248706139549] -> [0ded6525f69354823e381ebfe1dbcc9de8d90de4]
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Monotone-commits-diffs] Revision 0ded6525f69354823e381ebfe1dbcc9de8d90de4,
monotone <=