Tony Crisci
d2d72acac4
complete-run: add coverage report generation
...
When `complete-run.pl` is given `--coverage-testing`, try to generate an
html coverage testing report for the run. This requires i3 to be
compiled with coverage testing support.
2015-04-01 15:10:27 -04:00
Tony Crisci
e3ad16e65f
complete-run: fix pod errors
...
Close `=over` with `=back` and use ascii apostrophe for "don't" to avoid
pod errors on `complete-run` docs.
2015-03-30 11:04:45 -04:00
Michael Stapelberg
f0ef712ed0
tests: exit with status 1 when tests fail
2015-03-14 12:34:34 +01:00
Tony Crisci
ecca0baff3
Testcases: rename StartXDummy to StartXServer
...
Rename the package StartXDummy to StartXServer in the testcases library
because XDummy is no longer used.
No logic changes.
2014-10-05 21:06:37 +02:00
Tony Crisci
2ddbc71e2b
Testcases: Use Xephyr instead of XDummy
...
Replace the XDummy script with Xephyr. This is done because of some
changes in the Xorg server that make XDummy difficult to use.
Rename library internal variables and function names to replace "xdummy"
with "xserver" to show this change (except for renaming the package and
lib file for better git history).
Rename the switch `--keep-xdummy-output` to `--keep-xserver-output`.
This switch should now be rarely used because Xephyr requires less set
up.
Replace "xdummy" with "xephyr" in comments and utility help
information. Update docs to show the new dependency.
fixes #1367
2014-10-02 23:05:00 +02:00
Tony Crisci
cf3da1c433
Testcases: remove "latest" if it is a symbolic link
...
Test for the existence of the symlink to "latest" with the -l flag,
which tests if the target is a symbolic link. Testing with the -e flag
will fail in case the link points to a file that does not exist, which
will occur if the test result directories are deleted by hand.
2013-10-19 10:05:33 +02:00
Michael Stapelberg
153259cb10
tests: also get rid of smartmatch in complete-run.pl
2013-09-24 06:37:40 +02:00
Michael Stapelberg
3ca8299637
complete-run: clarify the message about missing ../i3 (Thanks Marcos)
2012-12-20 23:50:50 +01:00
Michael Stapelberg
773654dbb8
complete-run: run 000-load-deps as early as possible
2012-11-13 21:04:13 +01:00
Sascha Kruse
f9c903ba62
complete-run.pl: Check for missing executables
2012-09-20 11:37:49 +02:00
Michael Stapelberg
be6190a516
complete-run: check whether Xdummy dies, add a flag to keep the Xdummy output
2012-08-18 16:27:00 +02:00
Michael Stapelberg
b01d45e027
complete-run: handle bailouts
2012-08-12 13:46:54 +02:00
Michael Stapelberg
d92626bc62
complete-run: enable autoflush (useful for debugging)
...
I used the following command to find hanging workers:
sort latest/complete-run.log|cut -f 2 -d ' '|uniq -c|grep -v '^[ \t]*2'
2012-08-12 00:20:52 +02:00
Michael Stapelberg
077e021e26
tests: implement --xtrace in complete-run.pl
2012-08-04 03:12:06 +02:00
Michael Stapelberg
0f10ccdf12
Implement fake-outputs option (cmdline, cfg) for multi-monitor testing
...
This kills the dependency on xdmx and makes the testsuite simpler
and more flexible (in the output sizes / configurations).
2012-04-09 14:28:36 +02:00
Michael Stapelberg
d22458cde0
complete-run: make --valgrind, --strace, --coverage-testing work again
2012-01-27 21:36:40 +00:00
Michael Stapelberg
dd9743b272
tests: Implement multi-monitor tests using Xdmx
2011-12-26 20:48:57 +01:00
Michael Stapelberg
69b143e5ca
complete-run: automatically display test output when running a single test
2011-12-17 11:20:32 +00:00
Michael Stapelberg
95508c3469
complete-run: fix uninitialized warning
2011-12-17 11:20:16 +00:00
Michael Stapelberg
81f4b6fc1a
complete-run: don’t parallelize more than the number of tests
2011-12-17 11:19:31 +00:00
Michael Stapelberg
1c72e8b69e
Make complete-run store the timings, schedule tests and print time estimate
...
Yay for self-optimizing software and time estimates
2011-12-16 22:00:41 +00:00
Maik Fischer
9a7d7919a6
testcases: introduce TestWorker.pm
...
instead of executing a new perl interpreter (via TAP::Parser)
each time we start a testfile, fork a TestWorker for each display.
Each worker preloads i3test via 'require', blocking waits on its ipc
to get a new filename, forks itself upon arrival and 'do'es this
testscript.
2011-12-04 14:14:20 +01:00
Maik Fischer
55c474d864
testcases: move Xdummy cleanup code to StartXDummy
2011-12-04 14:14:20 +01:00
Maik Fischer
43b8b8356d
complete-run: add cleanup sighandler
2011-12-04 14:14:20 +01:00
Maik Fischer
2d188bfc9b
complete-run: reorder code to make code flow more clear
2011-12-04 14:14:20 +01:00
Maik Fischer
6a5ca32c5a
complete-run: die if X11::XCB couldn’t connect to a display
2011-12-04 14:14:20 +01:00
Maik Fischer
8349190e09
testcases: always start i3 through i3test::launch_with_config
...
this will pave the way to just call BAIL_OUT and stop the currently
running testfile if i3 died for whatever reason.
2011-12-04 14:14:20 +01:00
Maik Fischer
423b891995
StartXdummy.pm: make Xdummy startup a bit more robust
2011-12-04 14:14:20 +01:00
Maik Fischer
af793c9030
complete-run: wait for all jobs to be finished
2011-11-21 19:20:52 +00:00
Michael Stapelberg
3abd7ab073
complete-run: close all fds except for 0, 1, 2
...
running in a VIM subshell leads to one more fd, for example
2011-11-20 10:51:21 +00:00
Michael Stapelberg
77a9e4b18f
complete-run: implement --strace, make --valgrind log to test-specific file
2011-11-15 23:30:17 +00:00
Michael Stapelberg
2c48280017
complete-run: remove Carp::Always, slipped in when debugging
2011-11-09 22:41:56 +00:00
Michael Stapelberg
316318c1fc
complete-run: don’t print long logfile paths, they are useless by now anyway
2011-11-09 22:38:29 +00:00
Maik Fischer
7633aa67a1
complete-run: log verbose output, display statuslines instead
2011-11-09 23:00:10 +01:00
Michael Stapelberg
afc488021f
complete-run.pl: automatically start Xdummy instances unless -d is specified
...
This makes running the testsuite incredibly easy:
$ ./complete-run.pl
:)
2011-11-07 23:04:45 +00:00
Michael Stapelberg
8b887e8447
complete-run: Bugfix: return condvar when $dont_start is true
2011-11-07 22:38:06 +00:00
Michael Stapelberg
0615cb3595
complete-run.pl: implement --help
2011-11-07 21:21:51 +00:00
Michael Stapelberg
fdf7b1706c
complete-run: Bugfix: Don’t call recv inside a callback when cleanly exiting i3
2011-11-07 20:56:36 +00:00
Michael Stapelberg
dbd6440432
complete-run: Use Carp::Always to get nice stacktraces in case of errors
2011-11-07 20:56:04 +00:00
Michael Stapelberg
1c0d69d4e6
complete-run: implement --valgrind
2011-11-07 20:53:49 +00:00
Michael Stapelberg
389fdcf79f
complete-run: pass outdir (not only logpath) to activate_i3()
2011-11-07 20:52:14 +00:00
Michael Stapelberg
1056ecc885
complete-run: eliminate dependency on EV
2011-10-05 23:52:19 +01:00
Michael Stapelberg
27a38a3917
complete-run: explicitly state why we need to overwrite SIGCHLD
2011-10-05 23:29:58 +01:00
Michael Stapelberg
b9224634dd
tests: eliminate Try::Tiny
2011-10-05 23:21:23 +01:00
Michael Stapelberg
689f3b8cf7
tests: Eliminate IO::Scalar
2011-10-05 23:17:09 +01:00
Michael Stapelberg
bd33c09845
tests: move i3test.pm from t/lib to lib/
2011-10-04 23:39:36 +01:00
Michael Stapelberg
8d9b4c3c04
tests: launch_with_config: use socket activation
2011-10-04 23:33:38 +01:00
Michael Stapelberg
6c7c4d52d0
tests: Refactor the socket activation into lib/SocketActivation.pm
2011-10-04 23:30:30 +01:00
Michael Stapelberg
a94ec5ee4e
tests: re-order dependencies in complete-run, make clear which are shipped with Perl
2011-10-04 20:10:11 +01:00
Michael Stapelberg
53121c746c
tests: remove unused dependency Proc::Background from complete-run
2011-10-04 20:05:12 +01:00