]>
git.ipfire.org Git - thirdparty/suricata-verify.git/log
Victor Julien [Fri, 30 Nov 2018 12:15:28 +0000 (13:15 +0100)]
yamls: minimize included yaml use
Use more built-in defaults. The yaml setting just removed didn't work
on systems with lots of cores. The stream memcap was too low for the
number of threads.
Jason Ish [Tue, 1 May 2018 16:44:18 +0000 (10:44 -0600)]
filestore tests: remove included Suricata
Per Victor's observation that the suricata.yaml can be almost
empty.
Jason Ish [Wed, 14 Mar 2018 17:28:34 +0000 (11:28 -0600)]
rename some dns specific tests to start with dns
Jason Ish [Wed, 14 Mar 2018 17:26:38 +0000 (11:26 -0600)]
skip many dns tests when rust is enabled...
they depend on dns v1 logging, which is not supported by
rust builds
Jason Ish [Wed, 14 Mar 2018 17:26:24 +0000 (11:26 -0600)]
readme: example of skipping a test by feature
Jason Ish [Wed, 14 Mar 2018 13:32:55 +0000 (07:32 -0600)]
python 3 fix.
Jason Ish [Tue, 13 Mar 2018 19:13:32 +0000 (13:13 -0600)]
add an eve dns v2 specific test
Jason Ish [Tue, 13 Mar 2018 18:41:38 +0000 (12:41 -0600)]
make config requires a skip, not a requires
oops, reverse the logic on the previous commit.
Jason Ish [Tue, 13 Mar 2018 17:31:54 +0000 (11:31 -0600)]
require specific suricata config settings...
specific as a regex pattern on the key, for example:
requires:
config:
outputs.\d.eve-log.types.\d.dns.version: 2
To require version 2 of the eve dns logger without needing
to know exactly which list item its at.
Uses --dump-config to load the config.
Jason Ish [Sat, 17 Feb 2018 20:26:36 +0000 (14:26 -0600)]
readme: run.sh -> run.py
Jason Ish [Fri, 16 Feb 2018 20:58:44 +0000 (14:58 -0600)]
http/eve/alert/xff tests
Jason Ish [Fri, 16 Feb 2018 20:39:16 +0000 (14:39 -0600)]
test: unified2 xff
Jason Ish [Fri, 16 Feb 2018 20:37:48 +0000 (14:37 -0600)]
runner: pre-check script
Allow a script to be defined, "pre-check" that is run before the
checks are run. For example, a new test converts unified2 to
json before running filter checks.
Also allow the eve.json filename to be changed, useful for doing
filter checks on arbitrary json output.
Jason Ish [Thu, 8 Feb 2018 01:18:26 +0000 (19:18 -0600)]
runner: remove usage of version.raw
deleted in previous commit
Jason Ish [Wed, 7 Feb 2018 16:56:42 +0000 (10:56 -0600)]
requires: version: set a specific version
"4" would match any version 4 release.
"4.0" would match any 4.0.x release.
"4.0.3" would only match 4.0.3.
Jason Ish [Tue, 30 Jan 2018 22:28:14 +0000 (16:28 -0600)]
test: eve/alert/metadata
Jason Ish [Tue, 30 Jan 2018 22:27:31 +0000 (16:27 -0600)]
new filter checks: has-key not has-key
Match on the event having or not having a key.
Jason Ish [Tue, 30 Jan 2018 15:12:40 +0000 (09:12 -0600)]
runner: output new line after cmdline
Jason Ish [Mon, 29 Jan 2018 20:45:28 +0000 (14:45 -0600)]
runner: don't fail if requires is empty
Jason Ish [Thu, 25 Jan 2018 22:26:44 +0000 (16:26 -0600)]
eve-metadata: update for recent changes
Jason Ish [Wed, 24 Jan 2018 22:49:56 +0000 (16:49 -0600)]
eve-metadata: eve metadata test
Jason Ish [Wed, 24 Jan 2018 22:49:33 +0000 (16:49 -0600)]
requires: allow require to be a script that returns true
Jason Ish [Mon, 22 Jan 2018 13:34:50 +0000 (07:34 -0600)]
runner: prevent double output directory
Victor Julien [Sun, 21 Jan 2018 21:03:30 +0000 (22:03 +0100)]
runner: add --valgrind opt
Runs the tests inside valgrind. Uses the default suppressions from
the Suricata git tree.
Jason Ish [Fri, 19 Jan 2018 21:27:41 +0000 (15:27 -0600)]
runner: allow --outdir to be relative (ie: ./output)
Victor Julien [Thu, 18 Jan 2018 17:55:38 +0000 (18:55 +0100)]
runner: rename --dir to --testdir
Victor Julien [Thu, 18 Jan 2018 17:52:59 +0000 (18:52 +0100)]
runner: add --outdir <dir> option
Allow specifying an output dir to avoid poluting the work tree
or run tests off a read only file system.
Jason Ish [Fri, 19 Jan 2018 20:23:25 +0000 (14:23 -0600)]
setup/check relative to output directory
Run the setup and check phases relative to the output directory.
Jason Ish [Thu, 18 Jan 2018 16:21:47 +0000 (10:21 -0600)]
remove requires.not-features support: use skip instead
Jason Ish [Thu, 18 Jan 2018 16:09:24 +0000 (10:09 -0600)]
filestore-v2.3-fserror: skip if uid=0
Jason Ish [Thu, 18 Jan 2018 16:08:55 +0000 (10:08 -0600)]
test.yaml: allow a test to be skipped if running as a specific uid
Jason Ish [Thu, 18 Jan 2018 15:23:38 +0000 (09:23 -0600)]
test: check fail if filestore v1 and v2 enabled
Jason Ish [Thu, 18 Jan 2018 15:23:18 +0000 (09:23 -0600)]
test.yaml: allow expected exit code to be set
Victor Julien [Thu, 18 Jan 2018 08:50:36 +0000 (09:50 +0100)]
tests/filestore: add test for meta file checks
Victor Julien [Thu, 18 Jan 2018 08:50:11 +0000 (09:50 +0100)]
tests/filestore: add HAVE_NSS dependency
Jason Ish [Wed, 17 Jan 2018 20:25:50 +0000 (14:25 -0600)]
filestore v2 tests
Jason Ish [Wed, 17 Jan 2018 20:25:05 +0000 (14:25 -0600)]
test.yaml: allow a pcap to be referenced
So a single PCAP can be shared by multiple tests with only one
copy of the pcap.
Jason Ish [Wed, 17 Jan 2018 19:40:11 +0000 (13:40 -0600)]
runner: sort the tests alphabetically then run
Jason Ish [Wed, 17 Jan 2018 12:49:48 +0000 (06:49 -0600)]
runner: fix skip on no pcap (and no test.yaml)
Jason Ish [Wed, 17 Jan 2018 12:39:28 +0000 (06:39 -0600)]
readme: or pcapng files...
Jason Ish [Wed, 17 Jan 2018 12:37:37 +0000 (06:37 -0600)]
clean: test that we are in a verify directory
Victor Julien [Wed, 17 Jan 2018 10:19:05 +0000 (11:19 +0100)]
runner: support pcapng extension
Victor Julien [Wed, 17 Jan 2018 08:57:59 +0000 (09:57 +0100)]
runner: reinit output dir for each run
Otherwise counting filters fail due to the default behaviour of
Suricata to 'append' to existing files.
Jason Ish [Tue, 16 Jan 2018 20:28:02 +0000 (14:28 -0600)]
test.yaml: count field to execute test X number of times
Jason Ish [Tue, 16 Jan 2018 20:20:48 +0000 (14:20 -0600)]
runner: refactor use of test configuration
Jason Ish [Tue, 16 Jan 2018 20:14:40 +0000 (14:14 -0600)]
test: show help
Jason Ish [Tue, 16 Jan 2018 20:12:44 +0000 (14:12 -0600)]
runner: custom args and pcap requires option
To specify additional args, test.yaml can have:
args:
- --set field=val
Also, by default a pcap file is required for a test to run. Add
pcap option to requires that can turn this off.
Victor Julien [Tue, 16 Jan 2018 11:07:53 +0000 (12:07 +0100)]
runner: treat missing pcap as condition to 'skip'
This allows disabling of tests by renaming the pcap file to <pcap>.disabled
or similar.
Victor Julien [Sat, 13 Jan 2018 17:41:52 +0000 (18:41 +0100)]
runner: allow tests to be loaded from external dir
Add --dir <directory> option to specify a external directory for loading
and running tests.
This allows external test repositories for tests that are private or too
large to be part of the repo.
Jason Ish [Tue, 16 Jan 2018 01:19:24 +0000 (19:19 -0600)]
runner: add setup
A test.yaml can now have a setup section that is run
before Suricata is executed.
Jason Ish [Fri, 12 Jan 2018 18:59:28 +0000 (12:59 -0600)]
runner: allow a test to require the existent of files
For example, a test could depend on src/output-filestore.c.
Jason Ish [Fri, 12 Jan 2018 14:21:05 +0000 (08:21 -0600)]
allow optional reason for skip in non-features
Jason Ish [Fri, 12 Jan 2018 14:04:38 +0000 (08:04 -0600)]
dns-lua-rules: skip on rust for now, issue.
Jason Ish [Fri, 12 Jan 2018 14:02:48 +0000 (08:02 -0600)]
runner: fix error looking for filter comment
Jason Ish [Thu, 11 Jan 2018 18:55:11 +0000 (12:55 -0600)]
runner: another python 3 fixup
Jason Ish [Tue, 9 Jan 2018 22:06:43 +0000 (16:06 -0600)]
runner: py3 fixup
Jason Ish [Tue, 9 Jan 2018 20:46:26 +0000 (14:46 -0600)]
add requires HAVE_LIBJANSSON to tests using eve
Jason Ish [Tue, 9 Jan 2018 20:46:00 +0000 (14:46 -0600)]
runner: catch another exit case for --fail
Jason Ish [Tue, 9 Jan 2018 20:22:52 +0000 (14:22 -0600)]
runner: python3 fixes
Jason Ish [Tue, 9 Jan 2018 16:40:10 +0000 (10:40 -0600)]
check for jq and xargs, fail with error if not found
Jason Ish [Tue, 9 Jan 2018 13:01:21 +0000 (07:01 -0600)]
readme: document check.yaml
Jason Ish [Tue, 9 Jan 2018 13:00:39 +0000 (07:00 -0600)]
add requires check to lua tests
remove check based on directory name
Jason Ish [Tue, 9 Jan 2018 12:59:35 +0000 (06:59 -0600)]
dns test: move to test.yaml
Jason Ish [Thu, 21 Dec 2017 00:20:49 +0000 (18:20 -0600)]
remove support for "skip" file test skips
wasn't being used anymore as there are other ways to
skip a test
Jason Ish [Thu, 21 Dec 2017 00:16:56 +0000 (18:16 -0600)]
remove run.sh; use run.py instead
Jason Ish [Thu, 21 Dec 2017 00:16:26 +0000 (18:16 -0600)]
remove leftovers vars.sh files: not used anymore
Jason Ish [Thu, 21 Dec 2017 00:09:04 +0000 (18:09 -0600)]
tls test: based on tls tests in @regit suripcap branch
combines "TLS 1" and "TLS alert" into a single test
Jason Ish [Wed, 20 Dec 2017 23:04:59 +0000 (17:04 -0600)]
some check.sh to test.yaml verifications.
Jason Ish [Wed, 20 Dec 2017 23:03:53 +0000 (17:03 -0600)]
smtp: basic smtp test showing filter and stats check
Jason Ish [Wed, 20 Dec 2017 23:02:16 +0000 (17:02 -0600)]
add new checks to test.yaml
shell - for checking shell command output
filter - for counting number of events matching a filter
stats: for matching values in stats
Jason Ish [Wed, 20 Dec 2017 20:26:31 +0000 (14:26 -0600)]
new test for dns lua detect
Tests:
- dns.rrname
- dns.request
- dns.response
Jason Ish [Wed, 20 Dec 2017 20:26:12 +0000 (14:26 -0600)]
add suricata 4.0.3 default config
Jason Ish [Wed, 20 Dec 2017 19:58:27 +0000 (13:58 -0600)]
add signature-id validation to test.yaml
With the following in a test.yaml:
checks:
- signature-id: 1
- signature-id: 2
- signature-id: 3
the eve.json will be checked to make sure it alerts for each
signature id provided.
Jason Ish [Wed, 20 Dec 2017 17:25:13 +0000 (11:25 -0600)]
allow test to require an env var to be set
Useful for only enabling tests when an environment
variable is set.
Jason Ish [Mon, 4 Dec 2017 18:02:36 +0000 (12:02 -0600)]
allow command to be set in test.yaml
Removes the need to support a test specific run.sh.
Also, don't require a check.sh. In some tests, just a
successful exit code is being tested for.
Jason Ish [Mon, 4 Dec 2017 13:39:22 +0000 (07:39 -0600)]
Mark 2 tests with min-version 4.0.
Jason Ish [Fri, 1 Dec 2017 23:06:10 +0000 (17:06 -0600)]
add feature requires; remove skip.sh scripts
requires.features for required features
requires.not-features for when a test should be skipped if a
feature is present.
Jason Ish [Fri, 1 Dec 2017 22:43:34 +0000 (16:43 -0600)]
don't run linktype 228 test on suricata < 4.1.0
Introduces a test.yaml file that can be placed in a test
directory that provides a test configuration.
For now just a min-version can be configured.
Jason Ish [Fri, 24 Nov 2017 16:55:55 +0000 (10:55 -0600)]
basic test for linktype 228
Jason Ish [Fri, 24 Nov 2017 16:58:11 +0000 (10:58 -0600)]
readme: document that a pcap is all that is needed.
Jason Ish [Fri, 24 Nov 2017 16:03:24 +0000 (10:03 -0600)]
run tests from test directory
Fixes the case where we had a hardcoded relative path
to deal with Lua scripts.
Jason Ish [Fri, 24 Nov 2017 15:14:12 +0000 (09:14 -0600)]
put all tests in a tests/ directory
Jason Ish [Mon, 25 Sep 2017 08:40:02 +0000 (09:40 +0100)]
lua-output-http: make ports an int instead of a float
Jason Ish [Sun, 24 Sep 2017 10:36:51 +0000 (11:36 +0100)]
bsd fix: pipe wc output to xargs
On BSD and Mac, wc -l outputs right justified strings, causing
the check to fail. Passing through xargs is a hack to strip
the white space.
Jason Ish [Sun, 24 Sep 2017 10:36:37 +0000 (11:36 +0100)]
lua script tests: fix path to rule directory
Jason Ish [Wed, 20 Sep 2017 09:09:14 +0000 (10:09 +0100)]
rename: output-lua-smtp -> lua-output-smtp
Jason Ish [Wed, 20 Sep 2017 09:04:26 +0000 (10:04 +0100)]
output-lua: rename to lua-output-http
As it tests lua output of http metadata.
Jason Ish [Wed, 20 Sep 2017 09:02:38 +0000 (10:02 +0100)]
output-lua: fix lua script
On some distros it was correct, others it failed. I think this was
due to a type in string.gsub, using %g instead of %c.
Jason Ish [Mon, 11 Sep 2017 12:16:04 +0000 (13:16 +0100)]
Disable ASAN leak detection.
Jason Ish [Thu, 3 Aug 2017 21:55:14 +0000 (15:55 -0600)]
readme: update
Jason Ish [Thu, 13 Jul 2017 16:33:11 +0000 (10:33 -0600)]
test: eve/dns aaaa only logging
Jason Ish [Wed, 14 Jun 2017 16:33:26 +0000 (10:33 -0600)]
add a dns test - has pcap for some unit tests
Jason Ish [Fri, 9 Jun 2017 16:11:02 +0000 (10:11 -0600)]
skip some tests when rust is enabled
Jason Ish [Fri, 9 Jun 2017 16:10:22 +0000 (10:10 -0600)]
dns-tcp-ts-gap: test gap in tcp dns traffic
Jason Ish [Thu, 8 Jun 2017 19:01:09 +0000 (13:01 -0600)]
dns txt test
Jason Ish [Tue, 9 May 2017 21:20:56 +0000 (15:20 -0600)]
add tests for dns log filtering
Jason Ish [Thu, 4 May 2017 19:38:19 +0000 (13:38 -0600)]
use python test runner
its a little more robust on multiple platforms...
Jason Ish [Thu, 4 May 2017 15:31:26 +0000 (09:31 -0600)]
remove more direct file comparisons
Jason Ish [Thu, 4 May 2017 15:25:42 +0000 (09:25 -0600)]
readme: expected directory is no longer
Jason Ish [Thu, 4 May 2017 15:22:52 +0000 (09:22 -0600)]
update to not do any exact file matches...
changes in flow id can break the tests