[go: up one dir, main page]

File: include.sh

package info (click to toggle)
liblognorm 2.0.5-1
  • links: PTS
  • area: main
  • in suites: buster
  • size: 3,032 kB
  • sloc: ansic: 10,232; sh: 6,722; makefile: 246; python: 34
file content (20 lines) | stat: -rwxr-xr-x 490 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# added 2015-08-28 by Rainer Gerhards
# This file is part of the liblognorm project, released under ASL 2.0
. $srcdir/exec.sh

test_def $0 "include (success case)"
reset_rules
add_rule 'version=2'
add_rule 'include=inc.rulebase'

reset_rules inc
add_rule 'version=2' inc
add_rule 'rule=:%field:mac48%' inc

execute 'f0:f6:1c:5f:cc:a2'
assert_output_json_eq '{"field": "f0:f6:1c:5f:cc:a2"}'

# single test is sufficient, because that only works if the include
# worked ;)

cleanup_tmp_files