xref: /aosp_15_r20/external/ltp/testcases/commands/shell/shell_pipe01.sh (revision 49cdfc7efb34551c7342be41a7384b9c40d7cab7)
1#!/bin/sh
2# SPDX-License-Identifier: GPL-2.0-or-later
3# Copyright (c) 2021 Petr Vorel <[email protected]>
4
5TST_TESTFUNC=do_test
6
7do_test()
8{
9	tst_res TINFO "expecting SUCCESS string passed from stdin"
10
11	read line
12	EXPECT_PASS [ "$line" = "SUCCESS" ]
13}
14
15. tst_test.sh
16tst_run
17