aboutsummaryrefslogtreecommitdiffstats
path: root/test/config.sh
AgeCommit message (Collapse)AuthorFilesLines
2015-10-15text2pcap: Add test suiteVasil Velichckov1-0/+1
Use the pcap captures from test/captures/ and - Get information for the input pcap file with capinfos - Generate an ASCII hexdump with text2pcap - Convert the ASCII hexdump back to pcap using text2pcap - Get information for the output pcap file with capinfs - Check that file type, encapsulation type, number of packets and data size in the output file are the same as in the input file Change-Id: I659204fb0a46e9cd99d03eb666f55fac95ae053e Reviewed-on: https://code.wireshark.org/review/11042 Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com> Reviewed-by: Michael Mann <mmann78@netscape.net>
2015-08-19Mergecap: add test suite for various merging scenariosHadriel Kaplan1-0/+1
Add a test suite for mergecap (and indirectly capinfos I guess). This is not exhaustive, but it's a start. Change-Id: I9442b4c32e31a74b1673961ad6ab50821441de3e Reviewed-on: https://code.wireshark.org/review/10082 Reviewed-by: Hadriel Kaplan <hadrielk@yahoo.com> Reviewed-by: Anders Broman <a.broman58@gmail.com>
2015-03-12CMake: Update wslua build and test.Gerald Combs1-0/+4
Process wslua/CMakeLists.txt using add_subdirectory instead of include. Generate files in the build directory instead of the source directory. Copy lua scripts to DATAFILE_DIR instead of DATAFILE_DIR/lua. That's where init.lua looks for console.lua. Always set WIRESHARK_RUN_FROM_BUILD_DIRECTORY when testing. We presumably want to test our source files and not files which may or may not be in the system path. When we're running from the build directory look for lua scripts in both the Autotools and CMake build locations. Change-Id: Ic15ab8c58ff1b170d000c9b3e0a329af2ec44b7b Reviewed-on: https://code.wireshark.org/review/7590 Reviewed-by: Gerald Combs <gerald@wireshark.org> Petri-Dish: Gerald Combs <gerald@wireshark.org> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Graham Bloice <graham.bloice@trihedral.com> Reviewed-by: Anders Broman <a.broman58@gmail.com>
2015-01-02test: default WS_QT_BIN_PATH to WS_BIN_PATHEvan Huus1-1/+1
it used to be SOURCE_DIR, which is still the fallback for WS_BIN_PATH, but this way if you specify a custom WS_BIN_PATH it gets picked up for both Change-Id: If9198565fc7b7b3911550fd200adb0f918622540 Reviewed-on: https://code.wireshark.org/review/6238 Reviewed-by: Evan Huus <eapache@gmail.com>
2014-12-30Test suite: Start testing our output for valid UTF-8.Gerald Combs1-0/+3
Feed the output of `tshark -G <glossary>` to `iconv -f UTF-8`. Adjust a couple of the Bluetooth dissectors and X11 keysyms accordingly. Change-Id: I5b04dc3fa4734c8f0a795daf44bd398fe5ebc1bd Reviewed-on: https://code.wireshark.org/review/6146 Petri-Dish: Gerald Combs <gerald@wireshark.org> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Gerald Combs <gerald@wireshark.org>
2014-12-23test suite: fix indent (use tabs) and add modelinesAlexis La Goutte1-5/+5
Change-Id: I648d02d41f92c7fd176ce194eee20a2d19643fe0 Reviewed-on: https://code.wireshark.org/review/5985 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-10-01Add tests for the Qt UI.Gerald Combs1-1/+4
Make sure the Qt UI quits if WIRESHARK_QUIT_AFTER_CAPTURE is set. Make sure Bourne shell scripts (*.sh) have UNIX/POSIX line endings. Reduce some time values so that the tests run faster. Change-Id: I81df7c6f72d7d807d1856863cbea1bb6326ca711 Reviewed-on: https://code.wireshark.org/review/4407 Tested-by: Gerald Combs <gerald@wireshark.org> Reviewed-by: Gerald Combs <gerald@wireshark.org>
2014-09-02Qt → wireshark. GTK+ → wireshark-gtk.Gerald Combs1-1/+1
Make sure the Qt UI is named "Wireshark" and its executable is named "wireshark" or "wireshark.exe". Make sure the GTK+ UI is named "Wireshark 1" or "Wireshark (GTK+)" depending on how much the target audience is likely to care about UI toolkits. Make sure the GTK+ executable is named "wireshark-gtk" or "wireshark-gtk.exe". It looks like moving to Qt 5.3 (g978faf3) broke the PortableApps package. It's likely even more broken now. Autotools out-of-tree builds also broke on Ubuntu 12.02 (automake 1.11.3) at some point. The first attempt to compile in ui/qt returns "error: source_file.cpp: No such file or directory". The second attempt works. Out-of-tree builds work fine on Ubuntu 14.04 (automake 1.14.1). Tested: - Nmake builds - NSIS packaging - CMake builds (Windows, OS X) - Autotools build and distcheck - RPM packaging To do: - Test Debian packaging - Fix PortableApps Change-Id: I66429870e05fd2d6fc901942477959ed6164fce2 Reviewed-on: https://code.wireshark.org/review/3919 Reviewed-by: Gerald Combs <gerald@wireshark.org>
2014-06-25Decrease TRAFFIC_CAPTURE_DURATION from 60s to 15s.Gerald Combs1-1/+1
Change-Id: Ie6d6ac0489f0fcb506360a3900d33c44cb3477e9 Reviewed-on: https://code.wireshark.org/review/2664 Reviewed-by: Gerald Combs <gerald@wireshark.org>
2014-06-18Check for lua by grepping the output of tshark -vEvan Huus1-2/+2
Grepping config.h doesn't work for out-of-tree builds. Change-Id: If3f551dffb04dd646f5adece57fac90dc48ff1c9 Reviewed-on: https://code.wireshark.org/review/2389 Reviewed-by: Evan Huus <eapache@gmail.com>
2014-03-31Continue to remove $Id$ from top of fileAlexis La Goutte1-2/+0
(Using sed : sed -i '/^\# \$Id\$/,+1 d') (start with dash) Change-Id: Ia4b5a6c2302f6a531f6a86c1ec3a2f8205c8c2dd Reviewed-on: https://code.wireshark.org/review/881 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-02-04Various fixes to the Lua int64 codeEvan Huus1-0/+5
- add casts to pacify certain buildbots - skip test if lua isn't available Change-Id: I614c05dca40cb848c87b361e4b3d3c4e94aafb9e Reviewed-on: https://code.wireshark.org/review/97 Reviewed-by: Evan Huus <eapache@gmail.com> Tested-by: Evan Huus <eapache@gmail.com>
2013-10-09Slight simplification, inline a function only ever called once.Evan Huus1-17/+0
svn path=/trunk/; revision=52470
2013-10-06More tweaking of test suite path variables, trying to make everything playEvan Huus1-7/+16
nicely on Windows and Linux both. svn path=/trunk/; revision=52428
2013-10-06From Peter Wu via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9174Evan Huus1-2/+0
Reorg more of the test variables, still separating source and test directories. More minor fixes from me. svn path=/trunk/; revision=52412
2013-10-06From Peter Wu via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9174Evan Huus1-4/+10
Support running most tests out-of-tree. Use case is to have a source tree and use a semi-unprivileged user to perform tests (to rule out interference). From me: - fix unit-test suite, it has to build the binaries it runs so it must more-or-less ignore the out-of-tree stuff - fix name-res suite, just missing a path qualifier svn path=/trunk/; revision=52397
2013-08-23Add a test for rawshark.Gerald Combs1-0/+8
svn path=/trunk/; revision=51494
2012-06-28Update Free Software Foundation address.Jakub Zawadzki1-1/+1
(COPYING will be updated in next commit) svn path=/trunk/; revision=43536
2012-06-01Add more manufacturer names.Gerald Combs1-1/+1
svn path=/trunk/; revision=42973
2012-03-30Clobber our personal configuration directory on Windows.Gerald Combs1-2/+4
svn path=/trunk/; revision=41860
2012-03-30Fix decryption test on Windows.Gerald Combs1-3/+3
svn path=/trunk/; revision=41856
2012-03-30Add a decryption test suite along with an SSL decryption test. Move ourGerald Combs1-0/+20
growing collection of capture files to a subdirectory. svn path=/trunk/; revision=41852
2011-08-29Replace "-Q" with "WIRESHARK_QUIT_AFTER_CAPTURE" as discussed in bug 6256.Gerald Combs1-0/+3
svn path=/trunk/; revision=38784
2011-07-01Re-enable Cygwin's error_start environment variable.Gerald Combs1-1/+1
svn path=/trunk/; revision=37860
2011-07-01Comment out the addtion of error_start to CYGWIN in case it's clobberingGerald Combs1-1/+1
Jakub's change in r37857. svn path=/trunk/; revision=37858
2011-07-01Fix indentation.Gerald Combs1-1/+1
svn path=/trunk/; revision=37855
2011-07-01Tell Cygwin to create a core file if we run into any issues.Gerald Combs1-0/+1
svn path=/trunk/; revision=37852
2011-05-12"tshark -D" writes to stderr now.Gerald Combs1-1/+1
svn path=/trunk/; revision=37092
2009-07-28Update the adapter name check to match the buildbot.Gerald Combs1-1/+1
svn path=/trunk/; revision=29221
2008-02-24OK: comment out gathering of debug info; nothing interesting.Bill Meier1-6/+6
svn path=/trunk/; revision=24451
2008-02-23Add some debug info to help in diagnosing buildbot 'run tests' failuresBill Meier1-0/+9
svn path=/trunk/; revision=24447
2007-11-08Move SKIP_CAPTURE from suite-capture.sh to config.sh so that we can use itGerald Combs1-8/+14
in suite-clopts as well. Allow it to be set externally. This should fix the "test" failure in the Solairs builder. svn path=/trunk/; revision=23399
2007-08-27Prevent execution of the fifo tests on Windows.Bill Meier1-3/+6
(Windows cygwin has a mkfifo but Windows dumpcap & etc use Windows named pipes which are different than the cygwin named pipes). svn path=/trunk/; revision=22685
2007-08-24do the fifo test on platforms where mkfifo is availableRichard van der Hoff1-3/+6
svn path=/trunk/; revision=22640
2007-05-17Try this again (with a longer timeout and more diagnostic info)Bill Meier1-1/+1
svn path=/trunk/; revision=21811
2007-04-03Propset suite-unittests.sh and add executable to .sh filesJörg Mayer1-0/+0
svn path=/trunk/; revision=21311
2007-03-06Under Windows, try to use the first interface that looks like EthernetGerald Combs1-1/+7
as the capture interface. This should fix the capture test failures on the Windows builder. svn path=/trunk/; revision=20989
2007-01-28Now need to use interface #2 ??Bill Meier1-1/+1
svn path=/trunk/; revision=20590
2006-12-22Use interface '1' for the capture tests; Bill Meier1-1/+1
Add additional error output in case any other problems svn path=/trunk/; revision=20197
2006-12-11The capture test suite currently fails on quiet networks. Try to fixGerald Combs1-1/+1
this by generating some ICMP packets before each test. Add an "icmp" capture filter to each test to better control the test conditions. Fixup whitespace. svn path=/trunk/; revision=20115
2006-10-09Pick up TRAFFIC_CAPTURE_IFACE from the environment if it's set, otherwiseGerald Combs1-1/+1
use a default value. svn path=/trunk/; revision=19466
2006-10-09Make preparations for running under Buildbot:Gerald Combs1-6/+18
- Check for an "all" argument at startup. If it's present, then proceed with testing. - Add a platform check. Use it to handle cases where we can't run as a normal user, e.g. trying to capture under Linux. - Add a "Skipped" result. svn path=/trunk/; revision=19461
2006-10-08from Richard van der Hoff:Ulf Lamping1-2/+6
[tshark from a fifo] I've even gone so far as to add a unit test for it ULFL: as mkfifo isn't available on Win32 (not even cygwin), make this test configurable in config.sh svn path=/trunk/; revision=19457
2006-10-08change the binary path to current windows debug dir: wireshark-gtk2Ulf Lamping1-1/+6
don't use promiscuous mode as default (my Win32 WLAN card won't capture any packets with it - might probably be better for other users as well) svn path=/trunk/; revision=19455
2006-06-17ethereal to wireshark conversionRonnie Sahlberg1-1/+1
svn path=/trunk/; revision=18495
2006-05-31Rename the main executable to "wireshark", along with more conversions:Gerald Combs1-1/+1
ethereal.com -> wireshark.org mailing lists and addresses ETHEREAL -> WIRESHARK Man pages Automake/Autoconf names svn path=/trunk/; revision=18271
2006-05-31Tethereal/tethereal -> TShark/tshark.Gerald Combs1-1/+1
svn path=/trunk/; revision=18268
2006-05-22ethereal->wiresharkRonnie Sahlberg1-1/+1
svn path=/trunk/; revision=18207
2006-05-21name changeRonnie Sahlberg1-2/+2
svn path=/trunk/; revision=18197
2005-12-13add a new directory 'test', currently containing an alpha test (using some ↵Ulf Lamping1-0/+42
simple bash scripts) of the ethereal/tethereal command line parameters. See the file README.test for details. svn path=/trunk/; revision=16788