aboutsummaryrefslogtreecommitdiffstats
path: root/test
AgeCommit message (Collapse)AuthorFilesLines
2010-07-01TShark now exits with a status of 1 for an invalid interface or captureguy1-2/+2
filter; check for that, rather than for a status of 0. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@33397 f5534014-38df-0310-8fa8-9805f1628bb7
2010-06-05Clean up indentation.guy1-2/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@33104 f5534014-38df-0310-8fa8-9805f1628bb7
2010-06-01capture() can, in some cases, return FALSE when the capture succeeds;guy1-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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@33029 f5534014-38df-0310-8fa8-9805f1628bb7
2010-05-28Use return rather than exit in main().guy1-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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@33006 f5534014-38df-0310-8fa8-9805f1628bb7
2010-05-07-I is now a valid TShark option (at least if you have libpcap 1.x).guy1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32708 f5534014-38df-0310-8fa8-9805f1628bb7
2010-03-02Squelch some compiler warnings, clean up indentation, clean up aguy1-1/+1
comment. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32076 f5534014-38df-0310-8fa8-9805f1628bb7
2009-09-22-P is no longer invalid. We use it for the 'two pass analysis'krj1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@30083 f5534014-38df-0310-8fa8-9805f1628bb7
2009-07-28Update the adapter name check to match the buildbot.gerald1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29221 f5534014-38df-0310-8fa8-9805f1628bb7
2009-05-11test.sh: revise tests to handle revised capinfos output.wmeier2-9/+9
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28332 f5534014-38df-0310-8fa8-9805f1628bb7
2008-04-13add a comment that the ping code is running in the background (that caused ↵ulfl1-1/+3
me some headache :-) change the ping packet length, so the last packet will have exactly 100 bytes (at least on Windows) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24998 f5534014-38df-0310-8fa8-9805f1628bb7
2008-04-13fix a commentulfl1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24980 f5534014-38df-0310-8fa8-9805f1628bb7
2008-04-13update some prerequisitesulfl1-3/+3
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24979 f5534014-38df-0310-8fa8-9805f1628bb7
2008-02-24OK: comment out gathering of debug info; nothing interesting.wmeier1-6/+6
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24451 f5534014-38df-0310-8fa8-9805f1628bb7
2008-02-23Add some debug info to help in diagnosing buildbot 'run tests' failureswmeier3-9/+48
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24447 f5534014-38df-0310-8fa8-9805f1628bb7
2007-11-29Is ping not installed on the Solaris buildbot, or does the path of theguy1-1/+1
script not include /usr/sbin, or is ping installed somewhere other than where it is on my Solaris "machine"? Try explicitly running it as /usr/sbin/ping on Solaris. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@23670 f5534014-38df-0310-8fa8-9805f1628bb7
2007-11-23fix a comment: manifest files are now embedded into .exe / .dll files, no ↵ulfl1-1/+1
need to copy them git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@23547 f5534014-38df-0310-8fa8-9805f1628bb7
2007-11-23because of the privilege separation done, read filters won't work by ↵ulfl1-1/+2
definition now. Comment out the corresponding test case git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@23546 f5534014-38df-0310-8fa8-9805f1628bb7
2007-11-08Move SKIP_CAPTURE from suite-capture.sh to config.sh so that we can use itgerald3-15/+16
in suite-clopts as well. Allow it to be set externally. This should fix the "test" failure in the Solairs builder. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@23399 f5534014-38df-0310-8fa8-9805f1628bb7
2007-10-09As requested on -dev, put the (currently failing) 'Capture 10 packets using ↵morriss1-1/+1
stdout' test back in for tshark git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@23110 f5534014-38df-0310-8fa8-9805f1628bb7
2007-10-09alpha -> betaulfl1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@23107 f5534014-38df-0310-8fa8-9805f1628bb7
2007-10-08Temporarily disable 'Capture 10 packets using stdout' test for tshark until ↵morriss1-1/+1
we can get that working git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@23095 f5534014-38df-0310-8fa8-9805f1628bb7
2007-09-28Support Solaris along with Windows.gerald1-7/+20
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@23020 f5534014-38df-0310-8fa8-9805f1628bb7
2007-08-28Re-enable capture tests now that a a dumpcap problem has been corrected.wmeier1-3/+3
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@22708 f5534014-38df-0310-8fa8-9805f1628bb7
2007-08-27Re-enable unittests after determining that they work correctly wmeier1-3/+3
on Windows (and shouldn't cause the Windows buildbot any problems). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@22686 f5534014-38df-0310-8fa8-9805f1628bb7
2007-08-27Prevent execution of the fifo tests on Windows.wmeier1-3/+6
(Windows cygwin has a mkfifo but Windows dumpcap & etc use Windows named pipes which are different than the cygwin named pipes). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@22685 f5534014-38df-0310-8fa8-9805f1628bb7
2007-08-25Disable capture tests and unit tests until possible issues corrected.wmeier2-6/+6
Hopefully the windows buildbot will be OK with these tests disabled temporarily. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@22660 f5534014-38df-0310-8fa8-9805f1628bb7
2007-08-24do the fifo test on platforms where mkfifo is availablerichardv1-3/+6
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@22640 f5534014-38df-0310-8fa8-9805f1628bb7
2007-05-17Try this again (with a longer timeout and more diagnostic info)wmeier2-6/+13
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21811 f5534014-38df-0310-8fa8-9805f1628bb7
2007-05-15Capture tests using Wireshark seem to be causing a problem; disable them for ↵wmeier1-1/+1
now. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21791 f5534014-38df-0310-8fa8-9805f1628bb7
2007-04-24Addt'l fixes so suite-unittests will run under windowswmeier1-3/+4
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21546 f5534014-38df-0310-8fa8-9805f1628bb7
2007-04-24Use correct install target: 'make ..._install (and not 'make 'install_...')wmeier1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21545 f5534014-38df-0310-8fa8-9805f1628bb7
2007-04-19fix typosrichardv1-3/+3
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21476 f5534014-38df-0310-8fa8-9805f1628bb7
2007-04-18following advice from Gerald, Graham Bloice, and others, let's try copying ↵richardv1-1/+14
the unit test executables into the wireshark-gtk2 directory before running them. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21472 f5534014-38df-0310-8fa8-9805f1628bb7
2007-04-07that didn't help. try skipping the exntest to see if it's just that one.richardv1-6/+3
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21350 f5534014-38df-0310-8fa8-9805f1628bb7
2007-04-07make the unit tests spam their output, in an attempt yo understand wtf the ↵richardv1-3/+6
matter with the buildbot is git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21349 f5534014-38df-0310-8fa8-9805f1628bb7
2007-04-03another go at fixing the unit tests under windows - give a -f Makefile.nmake argrichardv1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21314 f5534014-38df-0310-8fa8-9805f1628bb7
2007-04-03hopefully fix this for win32 by using nmakerichardv1-1/+7
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21312 f5534014-38df-0310-8fa8-9805f1628bb7
2007-04-03Propset suite-unittests.sh and add executable to .sh filesjmayer7-0/+0
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21311 f5534014-38df-0310-8fa8-9805f1628bb7
2007-04-03Run the epan unittests as part of the test suiterichardv2-0/+73
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21309 f5534014-38df-0310-8fa8-9805f1628bb7
2007-03-06Under Windows, try to use the first interface that looks like Ethernetgerald1-1/+7
as the capture interface. This should fix the capture test failures on the Windows builder. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@20989 f5534014-38df-0310-8fa8-9805f1628bb7
2007-02-05Additoinal diagnostic info in output logswmeier1-6/+21
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@20715 f5534014-38df-0310-8fa8-9805f1628bb7
2007-01-28Now need to use interface #2 ??wmeier1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@20590 f5534014-38df-0310-8fa8-9805f1628bb7
2007-01-28Add some debug output so can see why failure when buildbot runs this scriptwmeier1-5/+24
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@20589 f5534014-38df-0310-8fa8-9805f1628bb7
2006-12-28Hack so test.sh will work with bash 3.1.6 or greaterwmeier1-0/+3
which requires 'igncr' to be able to process files in 'dos format' (\r\n line endings) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@20229 f5534014-38df-0310-8fa8-9805f1628bb7
2006-12-22OK: I think I've fixed most of the problems in wmeier1-22/+7
suite-capture.sh which were causing some of tests to fail; The stdout tests still tend to fail: some issue with flushing the stdout pipe ?? git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@20200 f5534014-38df-0310-8fa8-9805f1628bb7
2006-12-22Use interface '1' for the capture tests; wmeier2-3/+27
Add additional error output in case any other problems git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@20197 f5534014-38df-0310-8fa8-9805f1628bb7
2006-12-22Add additional output to try to find out why the "capture 10 wmeier1-5/+12
packets" test fails during the run-tests step of the buildbot windows build ... git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@20191 f5534014-38df-0310-8fa8-9805f1628bb7
2006-12-11The capture test suite currently fails on quiet networks. Try to fixgerald2-12/+53
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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@20115 f5534014-38df-0310-8fa8-9805f1628bb7
2006-10-10Add command-line options: -c disables color, -h prints help, -s runsgerald2-8/+56
a suite. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@19479 f5534014-38df-0310-8fa8-9805f1628bb7
2006-10-09Pick up TRAFFIC_CAPTURE_IFACE from the environment if it's set, otherwisegerald1-1/+1
use a default value. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@19466 f5534014-38df-0310-8fa8-9805f1628bb7