Skip to contentSkip to conversation

package/ltp-testsuite: Add Open POSIX and realtime test suite opts

PATCH Applied Richard Palethorpe via buildroot 3 participants 3 messages Oct 21, 2021 – Oct 26, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/ltp-testsuite: Add Open POSIX and realtime test suite opts

During LTP and/or kernel development it's very rare that I want the Open POSIX and the realtime tests. Open POSIX in particular takes considerable time to build. So this adds the option of disabling them.

They default to on so as not to break existing test automation.

---
 package/ltp-testsuite/Config.in        | 16 ++++++++++++++++
 package/ltp-testsuite/ltp-testsuite.mk | 12 +++++++++---
 2 files changed, 25 insertions(+), 3 deletions(-)
package/ltp-testsuite/Config.in +16 -0
index 32e1b6ad76..272c2ede37 100644
@@ -20,6 +20,22 @@ config BR2_PACKAGE_LTP_TESTSUITE
 
 	  http://linux-test-project.github.io
 
+if BR2_PACKAGE_LTP_TESTSUITE
+
+config BR2_PACKAGE_LTP_TESTSUITE_OPEN_POSIX
+	bool "Open POSIX testsuite"
+	default y
+	help
+	  Test suite for POSIX compliance. Included with the LTP.
+
+config BR2_PACKAGE_LTP_TESTSUITE_REALTIME
+	bool "Realtime testsuite"
+	default y
+	help
+	  Test suite for realtime kernels. Included with the LTP.
+
+endif
+
 comment "ltp-testsuite needs a toolchain w/ NPTL"
 	depends on BR2_PACKAGE_LTP_TESTSUITE_ARCH_SUPPORTS
 	depends on BR2_USE_MMU
package/ltp-testsuite/ltp-testsuite.mk +9 -3
index 3d8fe3b78c..cc6d3c63b6 100644
@@ -11,9 +11,15 @@ LTP_TESTSUITE_SITE = https://github.com/linux-test-project/ltp/releases/download
 LTP_TESTSUITE_LICENSE = GPL-2.0, GPL-2.0+
 LTP_TESTSUITE_LICENSE_FILES = COPYING
 
-LTP_TESTSUITE_CONF_OPTS += \
-	--with-realtime-testsuite --with-open-posix-testsuite \
-	--disable-metadata
+LTP_TESTSUITE_CONF_OPTS += --disable-metadata
+
+ifeq ($(BR2_PACKAGE_LTP_TESTSUITE_OPEN_POSIX),y)
+LTP_TESTSUITE_CONF_OPTS += --with-open-posix-testsuite
+endif
+
+ifeq ($(BR2_PACKAGE_LTP_TESTSUITE_REALTIME),y)
+LTP_TESTSUITE_CONF_OPTS += --with-realtime-testsuite
+endif
 
 ifeq ($(BR2_LINUX_KERNEL),y)
 LTP_TESTSUITE_DEPENDENCIES += linux
Signature · 6 lines
2.33.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#2 lore raw
In reply to Richard Palethorpe via buildroot
Quoted 9 lines · Richard Palethorpe via buildroot

During LTP and/or kernel development it's very rare that I want the Open POSIX and the realtime tests. Open POSIX in particular takes considerable time to build. So this adds the option of disabling them.

They default to on so as not to break existing test automation.

Applied to master, thanks.

Regards,
Arnout

Quoted 46 lines
---
  package/ltp-testsuite/Config.in        | 16 ++++++++++++++++
  package/ltp-testsuite/ltp-testsuite.mk | 12 +++++++++---
  2 files changed, 25 insertions(+), 3 deletions(-)
package/ltp-testsuite/Config.in +16 -0
index 32e1b6ad76..272c2ede37 100644
@@ -20,6 +20,22 @@ config BR2_PACKAGE_LTP_TESTSUITE
 
  	  http://linux-test-project.github.io
 
+if BR2_PACKAGE_LTP_TESTSUITE
+
+config BR2_PACKAGE_LTP_TESTSUITE_OPEN_POSIX
+	bool "Open POSIX testsuite"
+	default y
+	help
+	  Test suite for POSIX compliance. Included with the LTP.
+
+config BR2_PACKAGE_LTP_TESTSUITE_REALTIME
+	bool "Realtime testsuite"
+	default y
+	help
+	  Test suite for realtime kernels. Included with the LTP.
+
+endif
+
  comment "ltp-testsuite needs a toolchain w/ NPTL"
  	depends on BR2_PACKAGE_LTP_TESTSUITE_ARCH_SUPPORTS
  	depends on BR2_USE_MMU
package/ltp-testsuite/ltp-testsuite.mk +2 -3
index 3d8fe3b78c..cc6d3c63b6 100644
@@ -11,9 +11,15 @@ LTP_TESTSUITE_SITE = https://github.com/linux-test-project/ltp/releases/download
  LTP_TESTSUITE_LICENSE = GPL-2.0, GPL-2.0+
  LTP_TESTSUITE_LICENSE_FILES = COPYING
 
-LTP_TESTSUITE_CONF_OPTS += \
-	--with-realtime-testsuite --with-open-posix-testsuite \
-	--disable-metadata
+LTP_TESTSUITE_CONF_OPTS += --disable-metadata
+

package/ltp-testsuite/ltp-testsuite.mk LTP_TESTSUITE_SITE = https://github.com/linux-test-project/ltp/releases/download · line 25

Quoted 10 lines
package/ltp-testsuite/ltp-testsuite.mk +7 -0
+ifeq ($(BR2_PACKAGE_LTP_TESTSUITE_OPEN_POSIX),y)
+LTP_TESTSUITE_CONF_OPTS += --with-open-posix-testsuite
+endif
+
+ifeq ($(BR2_PACKAGE_LTP_TESTSUITE_REALTIME),y)
+LTP_TESTSUITE_CONF_OPTS += --with-realtime-testsuite
+endif
 
  ifeq ($(BR2_LINUX_KERNEL),y)
  LTP_TESTSUITE_DEPENDENCIES += linux

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot