aboutsummaryrefslogtreecommitdiffstats
path: root/test/suite-clopts.sh
AgeCommit message (Collapse)AuthorFilesLines
2014-12-31Test suite: Make sure we have a usable locale before we run iconv.Gerald Combs1-0/+5
Change-Id: Ib1f3143dc48af4c556b9bcdfafbb477fd59b6359 Reviewed-on: https://code.wireshark.org/review/6181 Reviewed-by: Gerald Combs <gerald@wireshark.org>
2014-12-30Test suite: Start testing our output for valid UTF-8.Gerald Combs1-0/+19
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-24test suite: (Minor) fix some double spaceAlexis La Goutte1-3/+3
Change-Id: I7fe7cd7ed471b8fcd2afd5fb4bbc180b580295b3 Reviewed-on: https://code.wireshark.org/review/6031 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-06-27Tighten the dump-glossary test.Evan Huus1-1/+4
1. The only indication we get of an out-of-order value string is a message on STDERR, so check that and fail the test if STDERR wasn't empty. 2. This exposes an out-of-order value string in packet-stun.c; fix it. 3. This triggered the pre-commit hook on packet-stun.c, which noticed an API error (ENC_ASCII -> ENC_ASCII|ENC_NA); fix that too. Change-Id: I36f87a2a87b40537119562f22a7e3012716ff239 Lesson: automated testing/tooling is both wonderful and scary. Reviewed-on: https://code.wireshark.org/review/2682 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-03-05Add test to dump glossaries.Evan Huus1-1/+20
All it checks is that they don't crash, but this is enough to catch malformed extended value strings and other oddities. Change-Id: If853e8e2b19517a784daa4bbb8e41eddc7c7ddd9 Reviewed-on: https://code.wireshark.org/review/520 Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com> Reviewed-by: Evan Huus <eapache@gmail.com>
2013-03-01Whitespace changes: Convert spaces to tabs. Add modelines.Chris Maynard1-34/+41
svn path=/trunk/; revision=47975
2012-12-20tshark now accepts -Q.Jeff Morriss1-1/+1
svn path=/trunk/; revision=46633
2012-12-12tshark now accepts -g.Jeff Morriss1-2/+2
svn path=/trunk/; revision=46519
2012-11-21Make the error message for "we didn't get the error message we expected"Guy Harris1-6/+6
clearer - it's not as if we didn't expect to get an error message, we just didn't expect to get *that particular* error message. svn path=/trunk/; revision=46118
2012-11-21For invalid interfaces, just check for "The capture session could not beGuy Harris1-10/+2
initiated", as we used to do. svn path=/trunk/; revision=46117
2012-11-21We aren't using pcap_create()/pcap_activate() to open interfaces onGuy Harris1-2/+2
Windows, as there isn't yet a WinPcap based on libpcap 1.0.0, so we don't get PCAP_ERROR_NO_SUCH_DEVICE as a return value and thus don't just report "No such device exists" for an invalid interface. svn path=/trunk/; revision=46116
2012-11-21If we're not on Windows, assume we don't have sufficient privileges toGuy Harris1-2/+10
open any capture devices, so "-i invalid_interface" will fail with a "no permission" error rather than a "no such device" error. svn path=/trunk/; revision=46115
2012-11-21Give a better failure message for the cases where a test failed notGuy Harris1-14/+14
because of an incorrect exit status but because of the error message not being what we expected. Include the name of the program being tested in the capture filter/interface options tests. svn path=/trunk/; revision=46110
2012-11-21Handle an error message that includes single quotes.Guy Harris1-1/+1
svn path=/trunk/; revision=46105
2012-11-21Add dumpcap command-line option tests; run them before TShark tests, soGuy Harris1-15/+124
that if dumpcap isn't working right, we don't try TShark tests, as TShark tests that involve capturing probably won't work. svn path=/trunk/; revision=46104
2012-11-21Fix the error message to test for when testing "-i invalid_interface".Guy Harris1-1/+1
svn path=/trunk/; revision=46103
2012-11-21Fix the capitalization of the error message printed if you specify anGuy Harris1-1/+1
invalid interface index. svn path=/trunk/; revision=46102
2012-11-19I thought the test suite was run with capture permissions; that does not ↵Jeff Morriss1-1/+1
appear to be true. Fix the expected output for the "invalid interface" test (again). svn path=/trunk/; revision=46091
2012-11-19r46083 added interface name matching which changed the error text when an ↵Jeff Morriss1-1/+1
interface can't be found. Update the test to check for the new wording. svn path=/trunk/; revision=46086
2012-06-28Update Free Software Foundation address.Jakub Zawadzki1-1/+1
(COPYING will be updated in next commit) svn path=/trunk/; revision=43536
2012-03-30Fix the location of dhcp.pcap.Gerald Combs1-2/+2
svn path=/trunk/; revision=41857
2011-07-21Undo the checking of command line interfaces. It might the a pipe...Michael Tüxen1-1/+1
svn path=/trunk/; revision=38146
2011-07-21Adopt test to new error handling.Michael Tüxen1-1/+1
svn path=/trunk/; revision=38145
2011-06-27Update suite-clopts.sh to match dumpcap's error output. Add a commentGerald Combs1-1/+1
to dumpcap.c about keeping the errors synced. svn path=/trunk/; revision=37805
2010-07-01TShark now exits with a status of 1 for an invalid interface or captureGuy Harris1-2/+2
filter; check for that, rather than for a status of 0. svn path=/trunk/; revision=33397
2010-06-01capture() can, in some cases, return FALSE when the capture succeeds;Guy Harris1-2/+2
back out the change to check its return value until we fix that. Also back out the test suite changes to look for an error exit for invalid capture filters and interfaces. svn path=/trunk/; revision=33029
2010-05-28Use return rather than exit in main().Guy Harris1-2/+2
Return 2 for a capture error - we mainly use 1 for command-line syntax errors (rather than, say, filter syntax errors or an invalid interface). Now that TShark exits with an error status when given an invalid capture filter or invalid interface, check for "error" rather than "success" as an exit status. svn path=/trunk/; revision=33006
2010-05-07-I is now a valid TShark option (at least if you have libpcap 1.x).Guy Harris1-1/+1
svn path=/trunk/; revision=32708
2009-09-22-P is no longer invalid. We use it for the 'two pass analysis'Kovarththanan Rajaratnam1-1/+1
svn path=/trunk/; revision=30083
2008-02-23Add some debug info to help in diagnosing buildbot 'run tests' failuresBill Meier1-9/+19
svn path=/trunk/; revision=24447
2007-11-08Move SKIP_CAPTURE from suite-capture.sh to config.sh so that we can use itGerald Combs1-1/+1
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-04-03Propset suite-unittests.sh and add executable to .sh filesJörg Mayer1-0/+0
svn path=/trunk/; revision=21311
2006-10-09Make preparations for running under Buildbot:Gerald Combs1-3/+26
- 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-08-02From Richard van der Hoff:Anders Broman1-1/+1
An error message has been changed, such that the commandline options test doesn't work any more. This patch fixes the test accordingly. svn path=/trunk/; revision=18827
2006-05-31Tethereal/tethereal -> TShark/tshark.Gerald Combs1-12/+12
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
2006-01-05interface index 0 is invalid (starting with 1), check if it's rejected correctlyUlf Lamping1-1/+20
svn path=/trunk/; revision=16946
2005-12-13add a new directory 'test', currently containing an alpha test (using some ↵Ulf Lamping1-0/+164
simple bash scripts) of the ethereal/tethereal command line parameters. See the file README.test for details. svn path=/trunk/; revision=16788