All of lore.kernel.org
 help / color / mirror / Atom feed
* [LTP] [PATCH] open_posix_testsuite/generate-makefiles.sh: Fix determinism issue
@ 2021-03-02 13:44 Richard Purdie
  2021-03-02 14:29 ` Cyril Hrubis
  0 siblings, 1 reply; 2+ messages in thread
From: Richard Purdie @ 2021-03-02 13:44 UTC (permalink / raw)
  To: ltp

Currently the list of tests is generated by the order of the files found
within the directories. This results in differences in the run.sh and?
Makefiles. Within Yocto Project this results in differing target
test packages. The fix is simple, just sort the output from locate-test.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>

Index: git/testcases/open_posix_testsuite/scripts/generate-makefiles.sh
===================================================================
--- git.orig/testcases/open_posix_testsuite/scripts/generate-makefiles.sh
+++ git/testcases/open_posix_testsuite/scripts/generate-makefiles.sh
@@ -24,7 +24,7 @@ generate_locate_test_makefile() {
 
 	echo "Generating $maketype Makefiles"
 
-	locate-test --$maketype | sed -e 's,^./,,g' > make-gen.$maketype
+	locate-test --$maketype | sed -e 's,^./,,g' | sort > make-gen.$maketype
 
 	generate_makefiles make-gen.$maketype $*
 



^ permalink raw reply	[flat|nested] 2+ messages in thread

* [LTP] [PATCH] open_posix_testsuite/generate-makefiles.sh: Fix determinism issue
  2021-03-02 13:44 [LTP] [PATCH] open_posix_testsuite/generate-makefiles.sh: Fix determinism issue Richard Purdie
@ 2021-03-02 14:29 ` Cyril Hrubis
  0 siblings, 0 replies; 2+ messages in thread
From: Cyril Hrubis @ 2021-03-02 14:29 UTC (permalink / raw)
  To: ltp

Hi!
Pushed, thanks.

-- 
Cyril Hrubis
chrubis@suse.cz

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-03-02 14:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-02 13:44 [LTP] [PATCH] open_posix_testsuite/generate-makefiles.sh: Fix determinism issue Richard Purdie
2021-03-02 14:29 ` Cyril Hrubis

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.