From: Cyril Hrubis <chrubis@suse.cz>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH] splice02: Generate input in C
Date: Tue, 9 Mar 2021 13:26:10 +0100 [thread overview]
Message-ID: <YEdpYimUgk2j+ICb@yuki.lan> (raw)
In-Reply-To: <YEc+T9Vx838EF7q2@pevik>
Hi!
> > Well yes, I guess that we can do something as:
>
> > echo "SUCCESS" | grep -q "SUCCESS"
>
> > Which at least returns 1 if the grep fails.
> Yep, that's better than using cat.
>
> Although, IMHO it should be possible to do something like:
>
> shell_test01 echo "SUCCESS" | shell_pipe01.sh
>
> cat shell_pipe01.sh
> ...
> do_test()
> {
> tst_res TINFO "expecting SUCCESS string passed from stdin"
>
> read line
> EXPECT_PASS [ "$line" = "SUCCESS" ]
> }
>
> We'd use standard LTP interface with tst_test.sh. WDYT?
Well we have to figure out where to put the dummy test, but other than
that no complaints. Also please put that change in a separate commit.
--
Cyril Hrubis
chrubis@suse.cz
next prev parent reply other threads:[~2021-03-09 12:26 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-08 15:44 [LTP] [PATCH] splice02: Generate input in C Petr Vorel
2021-03-08 16:40 ` Cyril Hrubis
2021-03-08 18:08 ` Petr Vorel
2021-03-08 18:29 ` Cyril Hrubis
2021-03-09 6:03 ` Petr Vorel
2021-03-09 8:15 ` Cyril Hrubis
2021-03-09 9:22 ` Petr Vorel
2021-03-09 12:26 ` Cyril Hrubis [this message]
2021-03-09 14:14 ` Petr Vorel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YEdpYimUgk2j+ICb@yuki.lan \
--to=chrubis@suse.cz \
--cc=ltp@lists.linux.it \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox