Lines Matching refs:args
71 proc(void *data, const char *arg, int key, struct fuse_args *args) in proc() argument
105 struct fuse_args args; in test_null_args() local
131 struct fuse_args args; in test_null_opts() local
139 args.argc = sizeof(argv_null_opts) / sizeof(argv_null_opts[0]); in test_null_opts()
140 args.argv = argv_null_opts; in test_null_opts()
141 args.allocated = 0; in test_null_opts()
145 assert(fuse_opt_parse(&args, &data, NULL, proc) == 0); in test_null_opts()
160 assert(args.argc == 2); in test_null_opts()
161 assert(strcmp(args.argv[0], "progname") == 0); in test_null_opts()
162 assert(strcmp(args.argv[1], "/mnt") == 0); in test_null_opts()
163 assert(args.allocated); in test_null_opts()
165 fuse_opt_free_args(&args); in test_null_opts()
175 struct fuse_args args; in test_null_proc() local
192 args.argc = sizeof(argv_null_proc) / sizeof(argv_null_proc[0]); in test_null_proc()
193 args.argv = argv_null_proc; in test_null_proc()
194 args.allocated = 0; in test_null_proc()
198 assert(fuse_opt_parse(&args, &data, opts, NULL) == 0); in test_null_proc()
213 assert(args.argc == 9); in test_null_proc()
214 assert(strcmp(args.argv[0], "progname") == 0); in test_null_proc()
215 assert(strcmp(args.argv[1], "-o") == 0); in test_null_proc()
216 assert(strcmp(args.argv[2], "debug") == 0); in test_null_proc()
217 assert(strcmp(args.argv[3], "-o") == 0); in test_null_proc()
218 assert(strcmp(args.argv[4], "noatime") == 0); in test_null_proc()
219 assert(strcmp(args.argv[5], "-d") == 0); in test_null_proc()
220 assert(strcmp(args.argv[6], "-p22") == 0); in test_null_proc()
221 assert(strcmp(args.argv[7], "/mnt") == 0); in test_null_proc()
222 assert(strcmp(args.argv[8], "bad_opt") == 0); in test_null_proc()
223 assert(args.allocated); in test_null_proc()
225 fuse_opt_free_args(&args); in test_null_proc()
235 struct fuse_args args; in test_all_args() local
251 args.argc = sizeof(argv) / sizeof(argv[0]); in test_all_args()
252 args.argv = argv; in test_all_args()
253 args.allocated = 0; in test_all_args()
257 assert(fuse_opt_parse(&args, &data, opts, proc) == 0); in test_all_args()
272 assert(args.argc == 7); in test_all_args()
273 assert(strcmp(args.argv[0], "progname") == 0); in test_all_args()
274 assert(strcmp(args.argv[1], "-o") == 0); in test_all_args()
275 assert(strcmp(args.argv[2], "debug") == 0); in test_all_args()
276 assert(strcmp(args.argv[3], "-o") == 0); in test_all_args()
277 assert(strcmp(args.argv[4], "noatime") == 0); in test_all_args()
278 assert(strcmp(args.argv[5], "-d") == 0); in test_all_args()
279 assert(strcmp(args.argv[6], "/mnt") == 0); in test_all_args()
280 assert(args.allocated); in test_all_args()
282 fuse_opt_free_args(&args); in test_all_args()