summaryrefslogtreecommitdiff
path: root/source4/pidl/tests
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2006-11-16 22:11:32 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:28:18 -0500
commite3ea863a3c4a021966847b62bf175fc83daa3fd0 (patch)
tree7c191b3420cce55c622362174ded270fc02e4538 /source4/pidl/tests
parenta7127ad79ebc8c5dc861bffd8e51c4ec31e5c046 (diff)
downloadsamba-e3ea863a3c4a021966847b62bf175fc83daa3fd0.tar.gz
samba-e3ea863a3c4a021966847b62bf175fc83daa3fd0.tar.bz2
samba-e3ea863a3c4a021966847b62bf175fc83daa3fd0.zip
r19751: Add some tests for parsing the "include", "import" and "importlib" statements.
(This used to be commit 3a850bda962da9ce58227ea6d74e974f7654d734)
Diffstat (limited to 'source4/pidl/tests')
-rwxr-xr-xsource4/pidl/tests/parse_idl.pl10
1 files changed, 9 insertions, 1 deletions
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\";";