aboutsummaryrefslogtreecommitdiff
path: root/tests/gcffmt.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2011-05-16 19:31:53 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2011-05-16 19:31:53 +0300
commitc8865a0d524f3d545836bd4581329089a357661e (patch)
tree4fc437a07086c4304e7ec2446be2a504a3dbd507 /tests/gcffmt.c
parent50e703a9a92e755f928699b705612cd4153ffb9f (diff)
downloadgrecs-c8865a0d524f3d545836bd4581329089a357661e.tar.gz
grecs-c8865a0d524f3d545836bd4581329089a357661e.tar.bz2
Add bind testsuite.
* README.submodule: Update URL. * src/bind-lex.l (grecs_bind_new_source): Scan include path. * src/grecs.h (grecs_find_include_file): new proto. * src/preproc.c (try_file): Rename to grecs_find_include_file. Change signature and return type. All uses updated. * tests/Makefile.am (EXTRA_DIST): Add new configs. (TESTSUITE_AT): Add parser-bind.at. * tests/gcffmt.c: Add -I (-include) option. * tests/testsuite.at: Include parser-bind.at. * tests/bind.conf: New file. * tests/bind.dlz: New file. * tests/bind.ext.conf: New file. * tests/bind.int.conf: New file. * tests/bind.keys: New file. * tests/parser-bind.at: New file.
Diffstat (limited to 'tests/gcffmt.c')
-rw-r--r--tests/gcffmt.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/gcffmt.c b/tests/gcffmt.c
index 51e3037..5dcd640 100644
--- a/tests/gcffmt.c
+++ b/tests/gcffmt.c
@@ -28,3 +28,3 @@ usage(const char *arg, FILE *fp, int code)
28 "usage: %s [-h] [-locus] [-delim=char] [-reduce] [-sort] " 28 "usage: %s [-h] [-locus] [-delim=char] [-reduce] [-sort] "
29 "[-type=grecs|bind|meta1|git] file [file...]\n", 29 "[-type=grecs|bind|meta1|git] [-Idir] [-include=dir] file [file...]\n",
30 arg); 30 arg);
@@ -72,3 +72,7 @@ main(int argc, char **argv)
72 usage(progname, stderr, 1); 72 usage(progname, stderr, 1);
73 } else if (arg[0] == '-') 73 } else if (strncmp(arg, "-I", 2) == 0)
74 grecs_preproc_add_include_dir(arg+2);
75 else if (strncmp(arg, "-include=", 9) == 0)
76 grecs_preproc_add_include_dir(arg+9);
77 else if (arg[0] == '-')
74 usage(progname, stderr, 1); 78 usage(progname, stderr, 1);

Return to:

Send suggestions and report system problems to the System administrator.