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