aboutsummaryrefslogtreecommitdiffstats
path: root/docbook/wsdg_src
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2018-04-27 10:35:17 -0700
committerGerald Combs <gerald@wireshark.org>2018-04-27 19:52:04 +0000
commite6d129bf2382b9f0261c813c5b501db8911b254b (patch)
tree46d23bb44ca6621efbabb2ada0c65854b2d68b6a /docbook/wsdg_src
parent9b3be1711f2a92ed4c59e32961d4d19b8f593d94 (diff)
Test: Add fileformats and I/O.
Add the fileformats and I/O suites. Move some more common code to subprocesstest.py and add a diffOutput method. Change-Id: I2ec34e46539022bdce78520645fdca6dfc1a8c1a Reviewed-on: https://code.wireshark.org/review/27183 Petri-Dish: Gerald Combs <gerald@wireshark.org> Tested-by: Petri Dish Buildbot Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'docbook/wsdg_src')
-rw-r--r--docbook/wsdg_src/WSDG_chapter_tests.asciidoc9
1 files changed, 8 insertions, 1 deletions
diff --git a/docbook/wsdg_src/WSDG_chapter_tests.asciidoc b/docbook/wsdg_src/WSDG_chapter_tests.asciidoc
index 249e5a416d..092ebe88cc 100644
--- a/docbook/wsdg_src/WSDG_chapter_tests.asciidoc
+++ b/docbook/wsdg_src/WSDG_chapter_tests.asciidoc
@@ -22,7 +22,10 @@ To run all tests from CMake do the following:
* Pass `-DTEST_EXTRA_ARGS=--disable-capture` or
`-DTEST_EXTRA_ARGS=--capture-interface=<interface>`
as needed for your system.
-* Build the “test” target or run ctest, e.g. `ctest --jobs=4 --verbose`.
+* Build the “test” target or run ctest, e.g. `ctest --force-new-ctest-process -j 4 --verbose`.
+
+On Windows, “ctest” requires a build configuration parameter, e.g.
+`ctest -C RelWithDebInfo --force-new-ctest-process -j 4 --verbose`.
To run all tests directly, run `test.py -p
/path/to/wireshark-build/run-directory <capture args>`.
@@ -168,3 +171,7 @@ class case_decrypt_80211(subprocesstest.SubprocessTestCase):
self.assertTrue(self.grepOutput('favicon.ico'))
----
+Tests can be run in parallel. This means that any files you create must
+be unique for each test. “subprocesstest.filename_from_id” can be used
+to generate a filename based on the current test name. It also ensures
+that the file will be automatically removed after the test has run.