summaryrefslogtreecommitdiffabout
path: root/tests/gcffmt.c
authorSergey Poznyakoff <gray@gnu.org.ua>2011-05-16 16:31:53 (GMT)
committer Sergey Poznyakoff <gray@gnu.org.ua>2011-05-16 16:31:53 (GMT)
commitc8865a0d524f3d545836bd4581329089a357661e (patch) (side-by-side diff)
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') (more/less context) (show whitespace changes)
-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)
"usage: %s [-h] [-locus] [-delim=char] [-reduce] [-sort] "
- "[-type=grecs|bind|meta1|git] file [file...]\n",
+ "[-type=grecs|bind|meta1|git] [-Idir] [-include=dir] file [file...]\n",
arg);
@@ -72,3 +72,7 @@ main(int argc, char **argv)
usage(progname, stderr, 1);
- } else if (arg[0] == '-')
+ } else if (strncmp(arg, "-I", 2) == 0)
+ grecs_preproc_add_include_dir(arg+2);
+ else if (strncmp(arg, "-include=", 9) == 0)
+ grecs_preproc_add_include_dir(arg+9);
+ else if (arg[0] == '-')
usage(progname, stderr, 1);

Return to:

Send suggestions and report system problems to the System administrator.