|
Packit |
1422b7 |
# added 2015-08-28 by Rainer Gerhards
|
|
Packit |
1422b7 |
# This file is part of the liblognorm project, released under ASL 2.0
|
|
Packit |
1422b7 |
. $srcdir/exec.sh
|
|
Packit |
1422b7 |
|
|
Packit |
1422b7 |
test_def $0 "include (success case)"
|
|
Packit |
1422b7 |
reset_rules
|
|
Packit |
1422b7 |
add_rule 'version=2'
|
|
Packit |
1422b7 |
add_rule 'include=inc.rulebase'
|
|
Packit |
1422b7 |
|
|
Packit |
1422b7 |
reset_rules inc
|
|
Packit |
1422b7 |
add_rule 'version=2' inc
|
|
Packit |
1422b7 |
add_rule 'rule=:%field:mac48%' inc
|
|
Packit |
1422b7 |
|
|
Packit |
1422b7 |
execute 'f0:f6:1c:5f:cc:a2'
|
|
Packit |
1422b7 |
assert_output_json_eq '{"field": "f0:f6:1c:5f:cc:a2"}'
|
|
Packit |
1422b7 |
|
|
Packit |
1422b7 |
# single test is sufficient, because that only works if the include
|
|
Packit |
1422b7 |
# worked ;)
|
|
Packit |
1422b7 |
|
|
Packit |
1422b7 |
cleanup_tmp_files
|