Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
..
Failed to load latest commit information.
afl replaced raw lcov results with a link
c-unit-tests Refactored how the cunit tests are processed so "make dist" does not …
conf [server / test suite] cleaner SNAT MASQUERADE support
fko-wrapper
fuzzing move fuzzing_spa_packets file to perl/FKO/t/ for fuzzing tests
misc [test suite] add spa_fuzzing.py and a few minor helper files for Free…
test-coverage updated untested function list for Linux systems
tests add --key-gen option to fwknopd (suggested by Jonathan Bennett)
README [test suite] README update to include --enable-complete mode
configure_max_coverage.sh [test suite] added configure_max_coverage.sh for --enable-complete mode
coverage_diff.py [test suite] added coverage_diff.py
fko-python.py [python module] default to HMAC SHA256 when an HMAC key is used but n…
gen-coverage-report.sh [test suite] handle versions of lcov that don't have the --rc option
generate_cores.sh [test suite] added generate_core.sh script and --enable-cores-pattern…
hardening-check added stack protection detection for OpenBSD systems
init-lcov.sh [test suite] handle versions of lcov that don't have the --rc option
invalid.args [test suite/client] memory leak bug fix and test coverage
invalid.key [test suite] more client/config_init.c test coverage
invalid2.key [test suite] more client/config_init.c test coverage
invalid3.key [test suite] more client/config_init.c test coverage
lcov.env [test suite] handle versions of lcov that don't have the --rc option
local_spa.key added local_spa.key file
long_spa.key [test suite] add long_spa.key file
rm-coverage-files.sh [test suite] update to use helper scripts for code coverage report ge…
run-test-suite.sh [test suite] buf fix for DYLD_LIBRARY_PATH on Mac OS X systems
spa_fuzzing.py [test suite] SPA packet fuzzer minor comment additions to clearly def…
test-fwknop.pl
valgrind_suppressions [test suite] additional valgrind suppression for pcap-file processing

README

This directory contains the fwknop test suite.  After compiling the fwknop
sources in the parent directory of test/ the test suite can be executed.  One
of the most comprehensive ways of executing the test suite is as follows:

# ./run-test-suite.sh --enable-all

This mode enables IP resolution tests, so you will need Internet access in this
case.  If this is not possible or desirable, then another comprehensive testing
mode can be achieved with:

# ./run-test-suite.sh --enable-recompile --enable-perl-module-checks --enable-distcheck

Additional detail on the test suite (including --diff and --enable-valgrind
modes) may be found in the fwknop tutorial available here:

http://www.cipherdyne.org/fwknop/docs/fwknop-tutorial.html#3.5

For even more comprehensive testing than the --enable-all switch, you can use
--enable-complete.  However, before doing this, you will want to install the
'libfiu' fault injection library (available here: http://blitiri.com.ar/p/libfiu/),
and then compile fwknop with the 'test/configure_max_coverage.sh' script. This
provides additional arguments to the 'configure' script to build fwknop with a
maximal testing and code coverage stance. Once fwknop is compiled, then run:

# ./run-test-suite.sh --enable-complete

Note that in this mode the test suite will consume about close to 500MB of disk
space in the test/output/ directory. The main source of this data consumption
is the usage of the python SPA packet fuzzer 'test/spa_fuzzing.py'.
Something went wrong with that request. Please try again.