Skip to content
GitLab
探索
项目
群组
代码片段
项目
群组
代码片段
/
帮助
帮助
支持
社区论坛
快捷键
?
提交反馈
登录
切换导航
菜单
打开侧边栏
wazuh
Fwknop
提交
ffe040cb
提交
ffe040cb
编辑于
5年前
作者:
Michael Rash
浏览文件
操作
下载
电子邮件补丁
差异文件
[test] add configure_build.sh convenience script for builds suitable for the test suite
上级
4df4b1a1
master
CSGSYY
SCT230A
alotcer
2.6.11-pre1
无相关合并请求
变更
4
隐藏空白变更内容
行内
左右并排
显示
4 个更改的文件
Makefile.am
+1
-0
Makefile.am
test/README
+7
-5
test/README
test/configure_build.sh
+14
-0
test/configure_build.sh
test/test-fwknop.pl
+3
-3
test/test-fwknop.pl
有
25 个添加
和
8 个删除
+25
-8
Makefile.am
+
1
-
0
浏览文件 @
ffe040cb
...
...
@@ -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 diff is collapsed.
Click to expand it.
test/README
+
7
-
5
浏览文件 @
ffe040cb
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
...
...
This diff is collapsed.
Click to expand it.
test/configure_build.sh
0 → 100755
+
14
-
0
浏览文件 @
ffe040cb
#!/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
This diff is collapsed.
Click to expand it.
test/test-fwknop.pl
+
3
-
3
浏览文件 @
ffe040cb
...
...
@@ -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
';
...
...
This diff is collapsed.
Click to expand it.
编辑
预览
支持
Markdown
0%
请重试
或
添加新附件
.
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录
菜单
探索
项目
群组
代码片段