[LTP] [PATCH 7/8] shell: Add test for TST_ALL_FILESYSTEMS=1

Petr Vorel pvorel@suse.cz
Fri May 13 10:17:55 CEST 2022


Hi all,

> +++ b/lib/newlib_tests/shell/tst_all_filesystems.sh
> @@ -0,0 +1,27 @@
> +#!/bin/sh
> +# SPDX-License-Identifier: GPL-2.0-or-later
> +# Copyright (c) 2022 Petr Vorel <pvorel@suse.cz>
> +
> +TST_ALL_FILESYSTEMS=1
> +TST_TESTFUNC=test
> +TST_CNT=2
> +
> +test1()
> +{
> +	tst_res TPASS "device using filesystem"
Probably going to the directory is better testing:

EXPECT_PASS "cd $TST_MNTPOINT"

(I originally counted as successful testing even running TST_ALL_FILESYSTEMS=1
is kind of a smoke test.)

Kind regards,
Petr


More information about the ltp mailing list