Skip to contentSkip to conversation

LTP tests: Run without LTP_REPRODUCIBLE_OUTPUT=1

RFC PATCH In review Petr Vorel 3 participants 13 messages Mar 23 – Mar 26

lore
Share & tools
lore

Petr Vorel

author
#0 lore raw

RFC PATCH 1/1 LTP tests: Run without LTP_REPRODUCIBLE_OUTPUT=1

LTP_REPRODUCIBLE_OUTPUT=1 environment variable was added in 5894abc5f to help valgrind to use LTP for testing. It discards the actual content of the messages printed by the test (removes everything after printing TINFO/TPASS/TFAIL/... flag).

Later LTP_QUIET=1 was added which suppresses printing TCONF, TWARN, TINFO, and TDEBUG messages. Therefore LTP_REPRODUCIBLE_OUTPUT=1 is not needed any more.

---
Hi Dan,

is it ok to remove LTP_REPRODUCIBLE_OUTPUT=1 from your tooling? Feel free shout if it's needed/useful. If you delete it, I'd then send patch to delete it from LTP.

Kind regards,
Petr

 auxprogs/ltp-tester.sh | 1 -
 1 file changed, 1 deletion(-)
auxprogs/ltp-tester.sh +0 -1
index a95c603c5..077304967 100755
@@ -20,7 +20,6 @@ PARALLEL_JOBS=${PARALLEL_JOBS:-$(nproc)}
 # Configure the LTP testsuite behavior per
 # https://lore.kernel.org/ltp/20250505195003.GB137650@pevik/T/#t
 export LTP_COLORIZE_OUTPUT=0
-export LTP_REPRODUCIBLE_OUTPUT=1
 export LTP_QUIET=1
 
 # Initialize LOGDIR for bunsen upload (https://sourceware.org/bunsen/)
Signature · 5 lines
2.53.0


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp
#1 lore raw

Hi!

Quoted 8 lines

LTP_REPRODUCIBLE_OUTPUT=1 environment variable was added in 5894abc5f to help valgrind to use LTP for testing. It discards the actual content of the messages printed by the test (removes everything after printing TINFO/TPASS/TFAIL/... flag).

Later LTP_QUIET=1 was added which suppresses printing TCONF, TWARN, TINFO, and TDEBUG messages. Therefore LTP_REPRODUCIBLE_OUTPUT=1 is not needed any more.

I do not think so. We still have things like pids and timestamps in TPASS/TFAIL messages that needs to be removed in order for the output to be reproducible.

Signature · 5 lines
Cyril Hrubis
[email protected]

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp
#2 lore raw
Quoted 6 lines · Cyril Hrubis

Hi!

Quoted 5 lines

LTP_REPRODUCIBLE_OUTPUT=1 environment variable was added in 5894abc5f to help valgrind to use LTP for testing. It discards the actual content of the messages printed by the test (removes everything after printing TINFO/TPASS/TFAIL/... flag).

Quoted 7 lines
Quoted 3 lines

Later LTP_QUIET=1 was added which suppresses printing TCONF, TWARN, TINFO, and TDEBUG messages. Therefore LTP_REPRODUCIBLE_OUTPUT=1 is not needed any more.

I do not think so. We still have things like pids and timestamps in TPASS/TFAIL messages that needs to be removed in order for the output to be reproducible.

From Valgrind persp, seems like we could drop it at the first glance. But let me confirm that based on a thorough check.

Thanks,
Martin

Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp
#3 lore raw
Quoted 11 lines · Martin Cermak
Quoted 10 lines · Cyril Hrubis

Hi!

Quoted 8 lines

LTP_REPRODUCIBLE_OUTPUT=1 environment variable was added in 5894abc5f to help valgrind to use LTP for testing. It discards the actual content of the messages printed by the test (removes everything after printing TINFO/TPASS/TFAIL/... flag).

Later LTP_QUIET=1 was added which suppresses printing TCONF, TWARN, TINFO, and TDEBUG messages. Therefore LTP_REPRODUCIBLE_OUTPUT=1 is not needed any more.

Quoted 6 lines
Quoted 3 lines

I do not think so. We still have things like pids and timestamps in TPASS/TFAIL messages that needs to be removed in order for the output to be reproducible.

From Valgrind persp, seems like we could drop it at the first glance. But let me confirm that based on a thorough check.

My quick guess above was wrong. We do need
LTP_REPRODUCIBLE_OUTPUT for Valgrind testing.
Please keep it.

Thank-you,
Martin

Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp
author
#4 lore raw
Quoted 16 lines · Martin Cermak
Quoted 14 lines · Cyril Hrubis
Quoted 13 lines

Hi!

Quoted 8 lines

LTP_REPRODUCIBLE_OUTPUT=1 environment variable was added in 5894abc5f to help valgrind to use LTP for testing. It discards the actual content of the messages printed by the test (removes everything after printing TINFO/TPASS/TFAIL/... flag).

Later LTP_QUIET=1 was added which suppresses printing TCONF, TWARN, TINFO, and TDEBUG messages. Therefore LTP_REPRODUCIBLE_OUTPUT=1 is not needed any more.

I do not think so. We still have things like pids and timestamps in TPASS/TFAIL messages that needs to be removed in order for the output to be reproducible.

Quoted 6 lines
Quoted 2 lines

From Valgrind persp, seems like we could drop it at the first glance. But let me confirm that based on a thorough check.

My quick guess above was wrong. We do need
LTP_REPRODUCIBLE_OUTPUT for Valgrind testing.
Please keep it.

Thanks for info, Martin. Sure, please drop this patch.

I still feel these 2 variables somehow overlap, wouldn't it make sense to merge the functionality into a single variable?

Kind regards,
Petr

Quoted 2 lines

Thank-you,
Martin

Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp
#5 lore raw
Quoted 19 lines · Petr Vorel
Quoted 18 lines · Martin Cermak
Quoted 17 lines · Cyril Hrubis
Quoted 6 lines

Hi!

Quoted 4 lines

LTP_REPRODUCIBLE_OUTPUT=1 environment variable was added in 5894abc5f to help valgrind to use LTP for testing. It discards the actual content of the messages printed by the test (removes everything after printing TINFO/TPASS/TFAIL/... flag).

Quoted 7 lines
Quoted 3 lines

Later LTP_QUIET=1 was added which suppresses printing TCONF, TWARN, TINFO, and TDEBUG messages. Therefore LTP_REPRODUCIBLE_OUTPUT=1 is not needed any more.

I do not think so. We still have things like pids and timestamps in TPASS/TFAIL messages that needs to be removed in order for the output to be reproducible.

From Valgrind persp, seems like we could drop it at the first glance. But let me confirm that based on a thorough check.

Quoted 8 lines
Quoted 3 lines

My quick guess above was wrong. We do need
LTP_REPRODUCIBLE_OUTPUT for Valgrind testing.
Please keep it.

Thanks for info, Martin. Sure, please drop this patch.

I still feel these 2 variables somehow overlap, wouldn't it make sense to merge the functionality into a single variable?

That sounds reasonable to me. Which one would you prefer to keep? I'm inclined to suggest keeping LTP_REPRODUCIBLE_OUTPUT and dropping LTP_QUIET but no really strong preference on my side. Thoughts?

Martin

Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp
#6 lore raw

Hi!

Quoted 7 lines
Quoted 2 lines

I still feel these 2 variables somehow overlap, wouldn't it make sense to merge the functionality into a single variable?

That sounds reasonable to me. Which one would you prefer to keep? I'm inclined to suggest keeping LTP_REPRODUCIBLE_OUTPUT and dropping LTP_QUIET but no really strong preference on my side. Thoughts?

Maybe we can finally implement proper debug levels in LTP. E.g. hide TINFO and TWARN messages with debug level 0 and default to debug level
1. With debug level 2 we would show TDEBUG as well and with debug level 3 we would show TDEBUG messages for library too.

Signature · 5 lines
Cyril Hrubis
[email protected]

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp
#7 lore raw
Quoted 9 lines · Cyril Hrubis

Hi!

Quoted 7 lines
Quoted 2 lines

I still feel these 2 variables somehow overlap, wouldn't it make sense to merge the functionality into a single variable?

That sounds reasonable to me. Which one would you prefer to keep? I'm inclined to suggest keeping LTP_REPRODUCIBLE_OUTPUT and dropping LTP_QUIET but no really strong preference on my side. Thoughts?

Quoted 4 lines

Maybe we can finally implement proper debug levels in LTP. E.g. hide TINFO and TWARN messages with debug level 0 and default to debug level
1. With debug level 2 we would show TDEBUG as well and with debug level 3 we would show TDEBUG messages for library too.

That would require running valgrind tests with something like debug level -1 ;) because what LTP_REPRODUCIBLE_OUTPUT actually does is that it hides testrun specific output like e.g. testrun specific addresses, temporary file names etc.

But I think a regular human user of LTP expects these to be printed out. So that should be the default imho.

Martin

Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp
#8 lore raw

Hi!

Quoted 10 lines
Quoted 9 lines
Quoted 4 lines

That sounds reasonable to me. Which one would you prefer to keep? I'm inclined to suggest keeping LTP_REPRODUCIBLE_OUTPUT and dropping LTP_QUIET but no really strong preference on my side. Thoughts?

Maybe we can finally implement proper debug levels in LTP. E.g. hide TINFO and TWARN messages with debug level 0 and default to debug level
1. With debug level 2 we would show TDEBUG as well and with debug level 3 we would show TDEBUG messages for library too.

Quoted 4 lines

That would require running valgrind tests with something like debug level -1 ;) because what LTP_REPRODUCIBLE_OUTPUT actually does is that it hides testrun specific output like e.g. testrun specific addresses, temporary file names etc.

The LTP_REPRODUCIBLE_OUTPUT would have to stay, but the LTP_QUITE would have been replaced by different debug levels.

Signature · 5 lines
Cyril Hrubis
[email protected]

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp
#9 lore raw
Quoted 11 lines · Cyril Hrubis

Hi!

Quoted 10 lines
Quoted 9 lines
Quoted 4 lines

That sounds reasonable to me. Which one would you prefer to keep? I'm inclined to suggest keeping LTP_REPRODUCIBLE_OUTPUT and dropping LTP_QUIET but no really strong preference on my side. Thoughts?

Maybe we can finally implement proper debug levels in LTP. E.g. hide TINFO and TWARN messages with debug level 0 and default to debug level
1. With debug level 2 we would show TDEBUG as well and with debug level 3 we would show TDEBUG messages for library too.

Quoted 7 lines
Quoted 4 lines

That would require running valgrind tests with something like debug level -1 ;) because what LTP_REPRODUCIBLE_OUTPUT actually does is that it hides testrun specific output like e.g. testrun specific addresses, temporary file names etc.

The LTP_REPRODUCIBLE_OUTPUT would have to stay, but the LTP_QUITE would have been replaced by different debug levels.

That sounds like a good approach to me, yup.

m.

Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp
author
#10 lore raw
In reply to Cyril Hrubis
Quoted 11 lines

Hi!

Quoted 9 lines
Quoted 9 lines
Quoted 4 lines

That sounds reasonable to me. Which one would you prefer to keep? I'm inclined to suggest keeping LTP_REPRODUCIBLE_OUTPUT and dropping LTP_QUIET but no really strong preference on my side. Thoughts?

Maybe we can finally implement proper debug levels in LTP. E.g. hide TINFO and TWARN messages with debug level 0 and default to debug level
1. With debug level 2 we would show TDEBUG as well and with debug level 3 we would show TDEBUG messages for library too.

Quoted 7 lines
Quoted 4 lines

That would require running valgrind tests with something like debug level -1 ;) because what LTP_REPRODUCIBLE_OUTPUT actually does is that it hides testrun specific output like e.g. testrun specific addresses, temporary file names etc.

The LTP_REPRODUCIBLE_OUTPUT would have to stay, but the LTP_QUITE would have been replaced by different debug levels.

I thought just remove LTP_QUITE and control everything with LTP_REPRODUCIBLE_OUTPUT.

Kind regards,
Petr

Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp
#11 lore raw
Quoted 16 lines · Petr Vorel
Quoted 15 lines

Hi!

Quoted 14 lines
Quoted 9 lines
Quoted 4 lines

That sounds reasonable to me. Which one would you prefer to keep? I'm inclined to suggest keeping LTP_REPRODUCIBLE_OUTPUT and dropping LTP_QUIET but no really strong preference on my side. Thoughts?

Maybe we can finally implement proper debug levels in LTP. E.g. hide TINFO and TWARN messages with debug level 0 and default to debug level
1. With debug level 2 we would show TDEBUG as well and with debug level 3 we would show TDEBUG messages for library too.

That would require running valgrind tests with something like debug level -1 ;) because what LTP_REPRODUCIBLE_OUTPUT actually does is that it hides testrun specific output like e.g. testrun specific addresses, temporary file names etc.

Quoted 5 lines
Quoted 2 lines

The LTP_REPRODUCIBLE_OUTPUT would have to stay, but the LTP_QUITE would have been replaced by different debug levels.

I thought just remove LTP_QUITE and control everything with LTP_REPRODUCIBLE_OUTPUT.

Sounds fine, Petr. For Valgrind testing, the functionality of both LTP_REPRODUCIBLE_OUTPUT and LTP_QUIET is useful. But there's no need to control the two features independently. Merging the functionality under one controlling env var works perfectly fine from the Valgrind testsuite perspective.

Thanks,
Martin

Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp
author
#12 lore raw
Quoted 20 lines · Petr Vorel
Quoted 18 lines
Quoted 18 lines

Hi!

Quoted 10 lines
Quoted 9 lines
Quoted 4 lines

That sounds reasonable to me. Which one would you prefer to keep? I'm inclined to suggest keeping LTP_REPRODUCIBLE_OUTPUT and dropping LTP_QUIET but no really strong preference on my side. Thoughts?

Maybe we can finally implement proper debug levels in LTP. E.g. hide TINFO and TWARN messages with debug level 0 and default to debug level
1. With debug level 2 we would show TDEBUG as well and with debug level 3 we would show TDEBUG messages for library too.

Quoted 4 lines

That would require running valgrind tests with something like debug level -1 ;) because what LTP_REPRODUCIBLE_OUTPUT actually does is that it hides testrun specific output like e.g. testrun specific addresses, temporary file names etc.

The LTP_REPRODUCIBLE_OUTPUT would have to stay, but the LTP_QUITE would have been replaced by different debug levels.

Quoted 8 lines
Quoted 2 lines

I thought just remove LTP_QUITE and control everything with LTP_REPRODUCIBLE_OUTPUT.

Sounds fine, Petr. For Valgrind testing, the functionality of both LTP_REPRODUCIBLE_OUTPUT and LTP_QUIET is useful. But there's no need to control the two features independently. Merging the functionality under one controlling env var works perfectly fine from the Valgrind testsuite perspective.

I prefer to keep LTP_REPRODUCIBLE_OUTPUT as variable name (with merged functionality of both). 1) We have LTP_ENABLE_DEBUG, so one would expect LTP_ENABLE_DEBUG and LTP_QUIET are mutually exclusive.
2) IMHO it's more about the reproducibility of the results.

Kind regards,
Petr

Quoted 2 lines

Thanks,
Martin

Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp