aboutsummaryrefslogtreecommitdiffstats
path: root/test/suite-unittests.sh
AgeCommit message (Collapse)AuthorFilesLines
2018-03-07More licenses converted to SPDX.Dario Lombardo1-13/+1
Change-Id: Id4f987dcdacf06622d70263f4659a4400e30dc39 Reviewed-on: https://code.wireshark.org/review/26332 Petri-Dish: Dario Lombardo <lomato@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
2016-10-21tests: do not invoke missing unit testsPeter Wu1-7/+8
If the "test-programs" target is not built, then it should not try to invoke the last program (wireshark-gtk in my case). Change-Id: Ida60a71d1dc47305ef8abe10e6c96c8a1cb8dcbb Reviewed-on: https://code.wireshark.org/review/18346 Reviewed-by: Peter Wu <peter@lekensteyn.nl>
2016-08-15Fix unit test location for out of tree autotools buildJoão Valverde1-0/+3
Make it find test programs under the build tree. Change-Id: Ie7ff547417e8f248bb58f6c96896977ca4e710d1 Reviewed-on: https://code.wireshark.org/review/17048 Reviewed-by: João Valverde <j@v6e.pt>
2016-06-15Remove Nmake build systemPascal Quantin1-1/+1
Change-Id: I3bd474f3cda9667dec66426b5729449953df3e61 Reviewed-on: https://code.wireshark.org/review/15777 Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Jörg Mayer <jmayer@loplof.de> Reviewed-by: Balint Reczey <balint@balintreczey.hu>
2016-02-03Suite test: fix modelines for bash script (emac)Alexis La Goutte1-1/+1
c-basic-offset -> sh-basic-offset Change-Id: I16b19b608fbdb7f0408f7c31871fae746c8c4f50 Reviewed-on: https://code.wireshark.org/review/13683 Reviewed-by: cedric izoard <cedric.izoard@ceva-dsp.com> Reviewed-by: Anders Broman <a.broman58@gmail.com>
2015-09-23Add a test to verify we pre-allocated enough hf entries.Jeff Morriss1-0/+7
This way we'll know as soon as we drop below the pre-allocated limit. As suggested by Graham on https://code.wireshark.org/review/10601 Change-Id: Ieeb14bdcf991d7a67c30787c97ca24ebb35d1763 Reviewed-on: https://code.wireshark.org/review/10627 Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2015-03-30Add ftsanity.py to the unit tests.Gerald Combs1-2/+23
Change-Id: Ib480d8be5f66c70a4213af27acee94016fbf974b Reviewed-on: https://code.wireshark.org/review/7855 Reviewed-by: Gerald Combs <gerald@wireshark.org>
2015-03-13Add a test-programs target everywhere.Gerald Combs1-40/+19
Add a "test-programs" target to each toolchain which builds each unit test executable. "test-programs" must now be built before running the unit test suite. Change-Id: I9317a1e305d987f244c4bd8b4a7f05d11fed7090 Reviewed-on: https://code.wireshark.org/review/7673 Petri-Dish: Gerald Combs <gerald@wireshark.org> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Gerald Combs <gerald@wireshark.org>
2015-01-02Fix lua tests on WindowsGraham Bloice1-1/+1
Convert TEST_DIR path to a Windows path, this is used in all the lua tests. Fix a typo Change-Id: I38808822c998ed1df007732b3701b6b13d6c886b Reviewed-on: https://code.wireshark.org/review/6235 Reviewed-by: Graham Bloice <graham.bloice@trihedral.com> Reviewed-by: Hadriel Kaplan <hadrielk@yahoo.com>
2014-07-12make unit-test suite work out-of-treeEvan Huus1-5/+15
Change-Id: I638015a9b55712bb6843d6756c9c55915e142372 Reviewed-on: https://code.wireshark.org/review/2893 Reviewed-by: Peter Wu <peter@lekensteyn.nl> 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-20Add 4 more test scripts for Lua, and its own testsuite menuHadriel Kaplan1-104/+0
This adds test scripts for verifying Pinfo, Address, Field, FieldInfo, NSTime and Listener classes/functions. It also moves Lua test scripts out of unittests and into its own new testsuite. Change-Id: I65c238fd459efb96db3f8f9145842cd038dea7c7 Reviewed-on: https://code.wireshark.org/review/270 Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2014-02-14Adds support for Lua struct library so one can pack/unpack binary structuresHadriel Kaplan1-0/+17
This is based on Roberto Ierusalimschy's struct library, along with additional options based on Flemming Madsen's patch to the lua-users mailing list, and some changes I made to support 64-bit integer packing/unpacking. Details are in the top comments for wslua_struct.c. This also includes a test script. Change-Id: Ifcd0116ba013d5c760927721c8d6e9f28965534b Reviewed-on: https://code.wireshark.org/review/98 Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2014-02-13Lua: add ability for scripts loaded from command-line to be passed argumentsHadriel Kaplan1-0/+39
This change adds the ability to pass on to lua scripts loaded from the command-line (tshark or wireshark) additional arguments supplied by the command-line. This will help us in our testsuites, but also might be useful for user-created scripts. The additional arguments are passed in using the '-X' eXtension switch. Change-Id: Ib94cdf1ffd194ca84692fee7816665e4ff95efbd Reviewed-on: https://code.wireshark.org/review/156 Reviewed-by: Evan Huus <eapache@gmail.com> Tested-by: Evan Huus <eapache@gmail.com>
2014-02-09Add test suite for Lua dissector-related functionsHadriel Kaplan1-1/+32
This isn't super-fancy, but it runs a simple protocol dissector and verifies the tshark output matches what it expects. Things like Proto, ProtoField, Field, Tvb, TvbRange, etc., are used in an example dissector script - it dissects DNS... partially. Enough to make sure things aren't fundamentally broken. This provides something to add on top of later as well. Change-Id: Icf3c8e9534944bcf4c4f6150f02a9a43f999cd75 Reviewed-on: https://code.wireshark.org/review/126 Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2014-02-04Various fixes to the Lua int64 codeEvan Huus1-1/+6
- 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>
2014-02-04Adds support for Lua Int64 and UInt64 operators, functions, and generalHadriel Kaplan1-0/+12
usefulness, working around bug #9162 until Lua 5.3 is released. The existing Int64 and UInt64 classes provide virtually no usefullness, other than for creating a string of their value. While one could then write Lua code to convert the string to Lua numbers and such, ultimately Lua has no native 64-bit integer support, making such a task difficult to handle in Lua. This change adds a host of functions and operators to the existing Int64 (gint64) and UInt64 (guint64) classes, to enable true 64-bit integer support on par with native Lua numbers. A test script is also provided, which tests the functions/operators. Change-Id: I4c5f8f5219b9a88198902283bd32ddf24c346bbe Reviewed-on: https://code.wireshark.org/review/83 Tested-by: Evan Huus <eapache@gmail.com> Reviewed-by: Evan Huus <eapache@gmail.com>
2013-10-19Add OID unit tests. Bug 9294 ↵Michael Mann1-0/+7
(https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9294) From Ed Beroset svn path=/trunk/; revision=52692
2013-10-06Try to fix unittest path magic on windows.Evan Huus1-1/+1
svn path=/trunk/; revision=52400
2013-10-06From Peter Wu via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9174Evan Huus1-4/+4
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-03-27Run the wmem unit tests with --verbose (provided by glib) so that ifEvan Huus1-1/+5
one of the random bits fails we get the seed to reproduce with. svn path=/trunk/; revision=48576
2013-03-23Add wmem unit test binary (still empty) to nmake build and toEvan Huus1-0/+6
the unit test part of the test suite. Once I know it's building and running properly on the buildbots then I'll actually start writing tests. svn path=/trunk/; revision=48517
2013-03-01Whitespace changes: Convert spaces to tabs. Add modelines.Chris Maynard1-3/+15
svn path=/trunk/; revision=47975
2012-06-28Update Free Software Foundation address.Jakub Zawadzki1-1/+1
(COPYING will be updated in next commit) svn path=/trunk/; revision=43536
2012-05-16Update INSTALL_DIR to match r42659.Gerald Combs1-3/+3
svn path=/trunk/; revision=42660
2007-11-23fix a comment: manifest files are now embedded into .exe / .dll files, no ↵Ulf Lamping1-1/+1
need to copy them svn path=/trunk/; revision=23547
2007-08-27Re-enable unittests after determining that they work correctly Bill Meier1-3/+3
on Windows (and shouldn't cause the Windows buildbot any problems). svn path=/trunk/; revision=22686
2007-08-25Disable capture tests and unit tests until possible issues corrected.Bill Meier1-3/+3
Hopefully the windows buildbot will be OK with these tests disabled temporarily. svn path=/trunk/; revision=22660
2007-04-24Addt'l fixes so suite-unittests will run under windowsBill Meier1-3/+4
svn path=/trunk/; revision=21546
2007-04-24Use correct install target: 'make ..._install (and not 'make 'install_...')Bill Meier1-1/+1
svn path=/trunk/; revision=21545
2007-04-19fix typosRichard van der Hoff1-3/+3
svn path=/trunk/; revision=21476
2007-04-18following advice from Gerald, Graham Bloice, and others, let's try copying ↵Richard van der Hoff1-1/+14
the unit test executables into the wireshark-gtk2 directory before running them. svn path=/trunk/; revision=21472
2007-04-07that didn't help. try skipping the exntest to see if it's just that one.Richard van der Hoff1-6/+3
svn path=/trunk/; revision=21350
2007-04-07make the unit tests spam their output, in an attempt yo understand wtf the ↵Richard van der Hoff1-3/+6
matter with the buildbot is svn path=/trunk/; revision=21349
2007-04-03another go at fixing the unit tests under windows - give a -f Makefile.nmake argRichard van der Hoff1-1/+1
svn path=/trunk/; revision=21314
2007-04-03hopefully fix this for win32 by using nmakeRichard van der Hoff1-1/+7
svn path=/trunk/; revision=21312
2007-04-03Propset suite-unittests.sh and add executable to .sh filesJörg Mayer1-0/+0
svn path=/trunk/; revision=21311
2007-04-03Run the epan unittests as part of the test suiteRichard van der Hoff1-0/+71
svn path=/trunk/; revision=21309