fprintf(stderr, "--help Print help\n");
fprintf(stderr, "--mountpoint Mountpoint of device\n");
fprintf(stderr, "--supported Test whether idmapped mounts are supported on this filesystem\n");
+ fprintf(stderr, "--test-core Run core idmapped mount testsuite\n");
_exit(EXIT_SUCCESS);
}
{"mountpoint", required_argument, 0, 'm'},
{"supported", no_argument, 0, 's'},
{"help", no_argument, 0, 'h'},
- {NULL, 0, 0, 0 },
+ {"test-core", no_argument, 0, 'c'},
+ {NULL, 0, 0, 0},
};
struct t_idmapped_mounts {
{
int fret, ret;
int index = 0;
- bool supported = false;
+ bool supported = false, test_core = false;
while ((ret = getopt_long_only(argc, argv, "", longopts, &index)) != -1) {
switch (ret) {
case 's':
supported = true;
break;
+ case 'c':
+ test_core = true;
+ break;
case 'h':
/* fallthrough */
default:
fret = EXIT_FAILURE;
- if (!run_test(basic_suite, ARRAY_SIZE(basic_suite)))
+ if (test_core && !run_test(basic_suite, ARRAY_SIZE(basic_suite)))
goto out;
fret = EXIT_SUCCESS;