提交 ffe040cb 编辑于 作者: Michael Rash's avatar Michael Rash
浏览文件

[test] add configure_build.sh convenience script for builds suitable for the test suite

无相关合并请求
显示 25 个添加8 个删除
+25 -8
......@@ -489,6 +489,7 @@ EXTRA_DIST = \
test/long_spa.key \
test/invalid.args \
test/test-fwknop.pl \
test/configure_build.sh \
test/generate_cores.sh \
test/fko-python.py \
test/run-test-suite.sh \
......
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:
This directory contains the fwknop test suite. After compiling the fwknop
sources in the parent directory of test/ the test suite can be executed. The
test/configure_build.sh script provides recommended defaults for the
'configure' script, and should be used before compiling. After this, 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
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
......@@ -17,7 +19,7 @@ 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
--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
......
#!/bin/sh -x
#
# This is a convenience script to run ./configure with the command line args
# that the test suite needs (sets up binary locations, sysconfdir,
# etc.). Execute this script from the top level fwknop sources directory, and
# then run the test-fwknop.pl script from the test/ directory.
#
if [ -x ./configure ]; then
./configure --prefix=/usr --sysconfdir=`pwd`/test/conf --localstatedir=`pwd`/test/run $@
else
echo "[*] Execute from the fwknop top level sources directory"
fi
......@@ -20,9 +20,9 @@ our $local_key_file = 'local_spa.key';
our $long_key_file = 'long_spa.key'; ### > 16 bytes
our $local_spa_key = 'fwknoptest';
our $local_hmac_key_file = 'local_hmac_spa.key';
my $output_dir = 'output';
our $conf_dir = 'conf';
my $run_dir = 'run';
my $output_dir = cwd() . '/output';
our $conf_dir = cwd() . '/conf';
our $run_dir = cwd() . '/run';
our $run_tmp_dir_top = 'runtmp';
our $run_tmp_dir = "$run_tmp_dir_top/subdir1/subdir2";
my $cmd_out_tmp = 'cmd.out';
......
支持 Markdown
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册