File: nested.test

package info (click to toggle)
fdm 1.6-3
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 1,612 kB
  • ctags: 1,526
  • sloc: ansic: 14,941; yacc: 1,976; sh: 540; makefile: 245; awk: 146
file content (30 lines) | stat: -rw-r--r-- 1,281 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
21
22
23
24
25
26
27
28
29
30
# $Id: nested.test,v 1.4 2007/08/30 10:45:06 nicm Exp $

!account "account" stdin
!action "action" drop

match "abc" { match "def" action "action" }
@- ^added rule 0: matches=regexp "abc" in any nested$
@- ^added rule 1: matches=regexp "def" in any actions="action"$
@0
match "abc" accounts { } { match "def" action "action" }
@1 ^/dev/stdin: syntax error at line .$
match "abc" and accounts { "account" } { match "def" action "action" }
@- ^added rule 0: matches=regexp "abc" in any and account "account" nested$
@- ^added rule 1: matches=regexp "def" in any actions="action"$
@0
match "abc" and account "account" { match "def" action "action" }
@- ^added rule 0: matches=regexp "abc" in any and account "account" nested$
@- ^added rule 1: matches=regexp "def" in any actions="action"$
@0

match "abc" { }
@0 ^added rule 0: matches=regexp "abc" in any nested$
match "abc" and accounts { } { }
@1 ^/dev/stdin: syntax error at line .$
match "abc" and account "account" { }
@0 ^added rule 0: matches=regexp "abc" in any and account "account" nested$
match "abc" and accounts { "account" } { }
@0 ^added rule 0: matches=regexp "abc" in any and account "account" nested$
match "abc" and account "account" { }
@0 ^added rule 0: matches=regexp "abc" in any and account "account" nested$