xref: /aosp_15_r20/external/ltp/lib/newlib_tests/tst_needs_cmds01.c (revision 49cdfc7efb34551c7342be41a7384b9c40d7cab7)
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /*
3  * Copyright (c) 2021 Yang Xu <[email protected]>
4  */
5 
6 #include "tst_test.h"
7 
do_test(void)8 static void do_test(void)
9 {
10 	tst_res(TPASS, "Testing tst_check_cmd() functionality OK.");
11 }
12 
13 static struct tst_test test = {
14 	.test_all = do_test,
15 	.needs_cmds = (const char *[]) {
16 		"mkfs.ext4",
17 		"mkfs.ext4 >= 1.0.0",
18 		"mkfs.ext4 <= 2.0.0",
19 		"mkfs.ext4 != 2.0.0",
20 		"mkfs.ext4 > 1.0.0",
21 		"mkfs.ext4 < 2.0.0",
22 		NULL
23 	}
24 };
25