1 // SPDX-License-Identifier: GPL-2.0-or-later 2 /* 3 * Copyright (c) 2021 Yang Xu <[email protected]> 4 */ 5 6 /* 7 * Test mkfs.xfs that it doesn't have own parser and table_get function 8 * at the version_parsers structure in lib/tst_cmd.c. 9 * So it should report parser function for this cmd is not implemented. 10 */ 11 12 #include "tst_test.h" 13 do_test(void)14static void do_test(void) 15 { 16 tst_res(TFAIL, "Nonexisting parser function for mkfs.xfs is present!"); 17 } 18 19 static struct tst_test test = { 20 .test_all = do_test, 21 .needs_cmds = (const char *[]) { 22 "mkfs.xfs", 23 "mkfs.xfs >= 4.20.0", 24 NULL 25 } 26 }; 27