Bah, the last commit message was wrong; it added support for mixing

alias rules and variable declarations within the preamble of a profile.

This commit adds another testcase for alias rules; one in which there is
an overlapping pair of aliases. The parser parses it, but based on -dd
output, I don't believe it's treating it properly.
This commit is contained in:
Steve Beattie 2008-11-14 16:46:16 +00:00
parent cc923edf3c
commit 96e124bf8d
2 changed files with 15 additions and 1 deletions

View file

@ -136,7 +136,7 @@ apparmor_parser: $(OBJECTS) $(PCREOBJECTS) $(AAREOBJECTS)
${LEXLIB} $(AAREOBJECTS) -static-libgcc -L.
parser_yacc.c parser_yacc.h: parser_yacc.y parser.h
$(YACC) $(YFLAGS) -o parser_yacc.c parser_yacc.y
$(YACC) $(YFLAGS) -o parser_yacc.c parser_yacc.y
parser_lex.c: parser_lex.l parser_yacc.h parser.h
$(LEX) ${LEXFLAGS} -o$@ $<

View file

@ -0,0 +1,14 @@
#=DESCRIPTION Simple test of alias functionality
#=EXRESULT PASS
@{MEEP} = meep moop
alias /etc -> /Etcetera,
alias /tmp -> /var/tmp,
alias /usr/lib/ -> /Libraries/,
alias /usr -> /User,
@{FOO} = foo bar
/bin/foo {
#include <includes/base>
/tmp/@{FOO}/@{MEEP} rw,
}