test-raw: Run tests and shutdown automatically
* Move running the tests to user bootscript. * Remove SSH preconfiguration from first_login. * Add debug_server settings. * Disable more flaky tests. * Fix libsupportkit_RemoteTestObject.so build. Change-Id: I774ab4fc5a007da463cf1213d92132ad9f64fe7f Reviewed-on: https://review.haiku-os.org/c/haiku/+/10708 Tested-by: Commit checker robot <[email protected]> Reviewed-by: Kacper Kasper <[email protected]>
This commit is contained in:
@@ -17,6 +17,8 @@ rule UnitTestLib
|
||||
local local_libraries = $(4) ;
|
||||
local rdefs = $(5) ;
|
||||
|
||||
AddResources $(lib) : $(rdefs) ;
|
||||
|
||||
# if TEST_DEBUG is defined, we turn on debugging
|
||||
if $(TEST_DEBUG) {
|
||||
DEBUG on $(lib) [ FGristFiles $(sources:S=$(SUFOBJ)) ] ?= 1 ;
|
||||
@@ -36,7 +38,7 @@ rule UnitTestLib
|
||||
UseCppUnitObjectHeaders $(sources) ;
|
||||
|
||||
MakeLocate $(lib) : $(TARGET_UNIT_TEST_LIB_DIR) ;
|
||||
SharedLibrary $(lib) : $(sources) : $(libraries) $(local_libraries) libcppunit.so : $(rdefs) ;
|
||||
SharedLibrary $(lib) : $(sources) : $(libraries) $(local_libraries) libcppunit.so ;
|
||||
|
||||
UnitTestDependency $(lib) ;
|
||||
UNIT_TEST_LIBRARIES on unittests += $(lib) ;
|
||||
|
||||
@@ -3,6 +3,14 @@
|
||||
# import everything from the minimum image
|
||||
include [ FDirName $(HAIKU_BUILD_RULES_DIR) images definitions minimum ] ;
|
||||
|
||||
local runTestsBootscript = TestsBootscript ;
|
||||
SEARCH on $(runTestsBootscript) = [ FDirName $(HAIKU_TOP) src tests ] ;
|
||||
AddFilesToHaikuImage home config settings boot launch : $(runTestsBootscript) ;
|
||||
|
||||
local debugServerSettings = debug_server_settings ;
|
||||
SEARCH on $(debugServerSettings) = [ FDirName $(HAIKU_TOP) src tests ] ;
|
||||
AddFilesToHaikuImage home config settings system debug_server : $(debugServerSettings) : settings ;
|
||||
|
||||
SYSTEM_APPS = [ FFilterByBuildFeatures
|
||||
Debugger@libedit
|
||||
NetworkStatus
|
||||
|
||||
@@ -266,9 +266,6 @@ AddFilesToPackage data user_launch : $(userLaunchScripts) ;
|
||||
|
||||
# first login scripts
|
||||
local firstLoginFiles = default_deskbar_items.sh ;
|
||||
if $(HAIKU_BUILD_TYPE) = test {
|
||||
firstLoginFiles += test_image.sh ;
|
||||
}
|
||||
firstLoginFiles = $(firstLoginFiles:G=first-login) ;
|
||||
SEARCH on $(firstLoginFiles)
|
||||
= [ FDirName $(HAIKU_TOP) data system boot first_login ] ;
|
||||
|
||||
Reference in New Issue
Block a user