On Thu, 25 Jan 2024 at 03:55, Xu, Chi <[email protected]> wrote:
> > I still don't understand this part. If these scripts are executed as a part 
> > of
> > standard in-tree unit testing, what prints PASS/FAIL in that context? 
> > Shouldn't
> > we reuse that, to replicate the in-tree testing sequence as much as 
> > possible?
> >
>
> According to the description on section 4.2 in 'INSTALL' file of xz,
> "The shell script tests can be copied from the source directory to the target 
> machine to execute."
> So I copy them to target and execute them in ptest.
> They don't have out put like "PASS/FAIL", just return zero or non-zero, so in 
> run-ptest, I print
> "PASS" or "FAIL" according to the return value.

Thanks, I confirmed from the source code that binaries print PASS/FAIL
directly. Shell scripts only indicate the test outcome with a return
code. Then Makefile (produced with autotools macros) prints PASS/FAIL
for all of them.

So run-ptest is fine, nothing needs to be changed.

Alex
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#194309): 
https://lists.openembedded.org/g/openembedded-core/message/194309
Mute This Topic: https://lists.openembedded.org/mt/103905858/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to