X-Git-Url: https://git.sur5r.net/?p=i3%2Fi3.github.io;a=blobdiff_plain;f=docs%2Ftestsuite.html;h=35631251d65c3a92b012d9227bd312f6fa90106f;hp=9fa9202743fd9881c9cc376bff7074c750c3e51f;hb=0a716379dbf172d480de4a7fba89dc9c79d6a204;hpb=af06f7cf23b6b7260545b82ea3f431ef6e19a713 diff --git a/docs/testsuite.html b/docs/testsuite.html index 9fa9202..3563125 100644 --- a/docs/testsuite.html +++ b/docs/testsuite.html @@ -146,6 +146,8 @@ used to install the testsuite. Many users prefer to use the more modern
$ cd ~/i3/testcases
 $ sudo apt-get install cpanminus
+$ sudo cpanm .
+$ cd ~/i3/AnyEvent-I3
 $ sudo cpanm .

If you don’t want to use cpanminus for some reason, the same works with cpan:

@@ -153,6 +155,8 @@ $ sudo cpanm .
Installing testsuite dependencies using cpan
$ cd ~/i3/testcases
+$ sudo cpan .
+$ cd ~/i3/AnyEvent-I3
 $ sudo cpan .

In case you don’t have root permissions, you can also install into your home @@ -174,9 +178,20 @@ the tests without an X session with Xvfb, such as with xvfb-run ./complete-run. This will also speed up the tests significantly especially on machines without a powerful video card.

-
Example invocation of complete-run.pl+
+
Example invocation of complete-run.pl
-
$ cd ~/i3/testcases
+
$ cd ~/i3
+
+$ autoreconf -fi
+
+$ mkdir -p build && cd build
+
+$ ../configure
+
+$ make -j8
+# output omitted because it is very long
+
+$ cd testcases
 
 $ ./complete-run.pl
 # output omitted because it is very long
@@ -219,6 +234,42 @@ $ less latest/i3-log-for-04-floating.t

This will show the output of Xephyr, which is the X server implementation we use for testing.

+
+
make command: make check
+

Make check runs the i3 testsuite. +You can still use ./testcases/complete-run.pl to get the interactive progress output.

+
+
Example invocation of make check
+
+
$ cd ~/i3
+
+$ autoreconf -fi
+
+$ mkdir -p build && cd build
+
+$ ../configure
+
+$ make -j8
+# output omitted because it is very long
+
+$ make check
+# output omitted because it is very long
+PASS: testcases/complete-run.pl
+============================================================================
+Testsuite summary for i3 4.13
+============================================================================
+# TOTAL: 1
+# PASS:  1
+# SKIP:  0
+# XFAIL: 0
+# FAIL:  0
+# XPASS: 0
+# ERROR: 0
+============================================================================
+
+$ less test-suite.log
+
+

3.2.2. Coverage testing