These tests confirm that currently supported options are parsed correctly by libfuse. They assume that the patches I've submitted previously have been applied.
Review and suggestions for improvement are welcome.
Patch to Makefile is below and new tests are attached.
Index: Makefile
===================================================================
RCS file: /cvs/src/regress/lib/libfuse/Makefile,v
retrieving revision 1.1
diff -u -p -p -u -r1.1 Makefile
--- Makefile 9 Aug 2013 16:20:10 -0000 1.1
+++ Makefile 29 Oct 2017 08:44:36 -0000
@@ -5,6 +5,9 @@ REGRESS_TARGETS+= run-fuse-opt-add-opt-e
REGRESS_TARGETS+= run-fuse-opt-add-arg
REGRESS_TARGETS+= run-fuse-opt-insert-arg
REGRESS_TARGETS+= run-fuse-opt-match
+REGRESS_TARGETS+= run-fuse-opt-parse
+REGRESS_TARGETS+= run-fuse-parse-cmdline
LDFLAGS+= -lfuse
CLEANFILES= fuse-opt-add-opt
@@ -12,6 +15,9 @@ CLEANFILES+=fuse-opt-add-opt-escaped
CLEANFILES+=fuse-opt-add-arg
CLEANFILES+=fuse-opt-insert-arg
CLEANFILES+=fuse-opt-match
+CLEANFILES+=fuse-opt-parse
+CLEANFILES+=fuse-parse-cmdline
.PHONY: ${REGRESS_TARGETS}
@@ -25,5 +31,11 @@ run-fuse-opt-insert-arg: fuse-opt-insert
./fuse-opt-insert-arg
run-fuse-opt-match: fuse-opt-match
./fuse-opt-match
+run-fuse-opt-parse: fuse-opt-parse
+ ./fuse-opt-parse
+run-fuse-parse-cmdline: fuse-parse-cmdline
+ ./fuse-parse-cmdline
.include <bsd.regress.mk>
fuse-opt-parse.c
Description: fuse-opt-parse.c
fuse-parse-cmdline.c
Description: fuse-parse-cmdline.c
