[LTP] [PATCH] open_posix_testsuite/generate-makefiles.sh: Fix determinism issue

Richard Purdie richard.purdie@linuxfoundation.org
Tue Mar 2 14:44:21 CET 2021


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 $*
 




More information about the ltp mailing list