From e3ea863a3c4a021966847b62bf175fc83daa3fd0 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Thu, 16 Nov 2006 22:11:32 +0000 Subject: r19751: Add some tests for parsing the "include", "import" and "importlib" statements. (This used to be commit 3a850bda962da9ce58227ea6d74e974f7654d734) --- source4/pidl/tests/parse_idl.pl | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'source4/pidl/tests/parse_idl.pl') diff --git a/source4/pidl/tests/parse_idl.pl b/source4/pidl/tests/parse_idl.pl index 8114cd9992..ebdb8ae58a 100755 --- a/source4/pidl/tests/parse_idl.pl +++ b/source4/pidl/tests/parse_idl.pl @@ -4,7 +4,7 @@ # Published under the GNU General Public License use strict; -use Test::More tests => 51; +use Test::More tests => 59; use FindBin qw($RealBin); use lib "$RealBin/../lib"; use Parse::Pidl::IDL; @@ -80,3 +80,11 @@ testok "bitmapqual", "interface test { struct x { bitmap y z; }; };"; testok "emptystructdecl", "interface test { struct x; };"; testok "emptyenumdecl", "interface test { enum x; };"; testok "emptytdstructdecl", "interface test { typedef struct x y; };"; +testok "import", "import \"foo.idl\";"; +testok "include", "include \"foo.h\";"; +testfail "import-noquotes", "import foo.idl;"; +testfail "include-noquotes", "include foo.idl;"; +testok "importlib", "importlib \"foo.idl\";"; +testfail "import-nosemicolon", "import \"foo.idl\""; +testok "import-multiple", "import \"foo.idl\", \"bar.idl\";"; +testok "include-multiple", "include \"foo.idl\", \"bar.idl\";"; -- cgit