aboutsummaryrefslogtreecommitdiffstats
path: root/tools/randpkt-test.sh
AgeCommit message (Collapse)AuthorFilesLines
2016-10-05randpkt-test: Fix our optstringGerald Combs1-1/+1
"-a" doesn't have an argument. Change-Id: Ia178985925da6e8bf9e1f0e9626521fb93656632 Reviewed-on: https://code.wireshark.org/review/18086 Reviewed-by: Gerald Combs <gerald@wireshark.org>
2016-09-26Add an initial "shellcheck" target.Gerald Combs1-0/+1
Look for shellcheck in Autotools and CMake, and if found add a target that checks some of our shell scripts. Add a "source=" directive to targets that include test-common.sh so that shellcheck will correctly process the scripts. Note that this requires shellcheck 0.4.0 or later. To do: Fix the issues that shellcheck found and check more scripts. Change-Id: I441f9f59d8a3f8eec6718119c2370f2560b98f3c Reviewed-on: https://code.wireshark.org/review/17943 Petri-Dish: Gerald Combs <gerald@wireshark.org> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Gerald Combs <gerald@wireshark.org>
2016-09-24Check for ASAN when fuzzing.Gerald Combs1-1/+1
Try to determine if we passed -fsanitize=address to gcc or clang and adjust the ASAN variable fuzz-test.sh, randpkt-test.sh and test-captures.sh accordingly. Change-Id: I88a34828fb5875e1a74a3b180ffb3da37daac0bd Reviewed-on: https://code.wireshark.org/review/17848 Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2016-09-21Set the VA limit with ulimit -S, and clean up comments.Guy Harris1-4/+9
Other limits are set with -S, do that with the virtual address space limit as well. Change-Id: Ie427341a4c7be56d3e8d96be6c1713c56e9bad87 Reviewed-on: https://code.wireshark.org/review/17846 Reviewed-by: Guy Harris <guy@alum.mit.edu>
2016-09-11Add a -a flag to specify running under ASan, and don't set ulimit -v if so.Guy Harris1-2/+20
You can't run ASan-built programs with a ulimit, as ASan allocates a huge amount of shadow memory. Change-Id: Ic4d3c2fae77719f65d4594774bc8aa92d2a3a035 Ping-Bug: 12797 Reviewed-on: https://code.wireshark.org/review/17645 Reviewed-by: Guy Harris <guy@alum.mit.edu>
2015-06-26tools: permit setting BIN_DIR in the environmentEvan Huus1-1/+1
For out-of-tree builds you have to pass the location of your build to our tools like the fuzz script, valgrind script etc. Modify them so that the value can be set in the environment rather than requiring a shell script flag. Set the environment variable in the vagrant provision step, so that the scripts Just Work (TM) in the VM. Change-Id: If8ce6b278176085ba6dd994137b82fc989b80124 Reviewed-on: https://code.wireshark.org/review/9168 Reviewed-by: Evan Huus <eapache@gmail.com>
2014-03-30Fix fuzz-test.sh '-b' option so it works again; Do some other ↵Bill Meier1-15/+8
tools/*test*.sh changes - Add -b option to randpkt-test.sh and test-captures.sh; - Create/ue a common function to do '-x' tests on files/dirs; - Rename exit_error function to ws_exit_error Change-Id: I032c9d784bec1fb6b0717aaad08a061e4d935476 Reviewed-on: https://code.wireshark.org/review/872 Reviewed-by: Bill Meier <wmeier@newsguy.com> Tested-by: Bill Meier <wmeier@newsguy.com>
2014-02-14Remove $Id$ and other Subversion leftovers from the tools.Jeff Morriss1-2/+0
There are a few things in here which could still use attention. Don't regenerate anything now. Change-Id: I283c224d3523212144707fca3d6265916cb11792 Reviewed-on: https://code.wireshark.org/review/205 Reviewed-by: Jeff Morriss <jeff.morriss.ws@gmail.com>
2013-07-08Include the output (fuzz'd) file name in the output when fuzz (or randpkt)Jeff Morriss1-3/+0
testing fails. Useful for when you want to use up a few spare CPU cores running multiple simultaneous fuzz tests... svn path=/trunk/; revision=50449
2013-05-30Exit if we can't load the test-common.sh library.Jeff Morriss1-1/+1
svn path=/trunk/; revision=49625
2013-01-26Forward-port r47305 from trunk-1.8:Gerald Combs1-2/+10
------------------------------------------------------------------------ r47305 | gerald | 2013-01-26 12:12:52 -0800 (Sat, 26 Jan 2013) | 6 lines Changed paths: M /trunk-1.8/tools/fuzz-test.sh Instead of setting resource limits on the fuzz-test.sh process itself, set limits on the TShark subprocess. This should hopefully take care of the strange fuzz failures we've seen lately. Reduce the maximum CPU time to 5 minutes while we're at it. ------------------------------------------------------------------------ svn path=/trunk/; revision=47307
2012-12-07Move a lot of common fuzz-test and randpkt-test code to its own fileGerald Combs1-54/+3
(test-common.sh). Add build information to the error output as suggested in http://www.wireshark.org/lists/wireshark-dev/201212/msg00037.html svn path=/trunk/; revision=46446
2012-10-09If our error output is huge (> 5 MB) trim out the middle of the file.Gerald Combs1-0/+9
The recent loop bugs have generated output that's too large to attach to Bugzilla. svn path=/trunk/; revision=45437
2012-10-03Add the command and arguments to the error file.Gerald Combs1-1/+3
svn path=/trunk/; revision=45294
2012-10-03Fix return code checking (hopefully).Gerald Combs1-1/+1
svn path=/trunk/; revision=45289
2012-10-02Test with the presence (-nVxr) and absence (-nr) of the tree. We nowGerald Combs1-5/+11
use an array of arguments so additional combinations can be added. svn path=/trunk/; revision=45258
2012-09-05Run 'git log' if we have a .git directory. Fixes a copy+paste error.Gerald Combs1-1/+1
svn path=/trunk/; revision=44784
2012-08-19Don't go into a tight loop when there's no specific number of passes.Evan Huus1-17/+19
Fixes https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7651 Also, use consistent indentation. svn path=/trunk/; revision=44581
2012-08-19From Toralf Förster via ↵Evan Huus1-1/+1
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7652 Use a fast bash built-in rather than a slow call out to `expr` to increment the loop count. svn path=/trunk/; revision=44580
2012-08-17Move error reporting to a common function. Lot information about the Gerald Combs1-8/+21
most recent revision / commit. svn path=/trunk/; revision=44552
2012-04-18Terminate our inner loops as well.Gerald Combs1-0/+1
svn path=/trunk/; revision=42134
2012-04-18Tell the main loop to terminate when we catch a signal instead of tryingGerald Combs1-2/+1
to clean up in two places. svn path=/trunk/; revision=42133
2010-07-07Make sure we use the "randpkt-" prefix everywhere.Gerald Combs1-1/+1
svn path=/trunk/; revision=33468
2006-08-04It's not only executable but a script as well: propset eol-style + keywordsJörg Mayer1-1/+1
svn path=/trunk/; revision=18837
2006-08-02Make the output file name a little more descriptive.Gerald Combs1-1/+1
svn path=/trunk/; revision=18828
2006-08-02Add a script for randpkt testing. Copied from fuzz-test.sh.Gerald Combs1-0/+121
svn path=/trunk/; revision=18824