Patch by Vasilis Kaoutsis (slightly edited):
* The POSIX test suite is copied to the image when the jam variable HAIKU_ADD_POSIX_TEST_SUITE_TO_IMAGE is defined (cf. UserBuildConfig.sample). * Added difftime and fork tests to the test suite run script. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22907 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -415,6 +415,36 @@ AddDirectoryToHaikuImage home config settings printers "Save as PDF"
|
||||
: home-config-settings-printers-save-as-pdf.rdef ;
|
||||
|
||||
|
||||
#pragma mark - Tests
|
||||
|
||||
# PosixTestSuite
|
||||
if $(HAIKU_ADD_POSIX_TEST_SUITE_TO_IMAGE) {
|
||||
# add run script
|
||||
AddFilesToHaikuImage home posixtestsuite : run_posix_tests ;
|
||||
|
||||
# add standard posix tests
|
||||
AddFilesToHaikuImage home posixtestsuite conformance interfaces difftime
|
||||
: difftime_1-1 ;
|
||||
AddFilesToHaikuImage home posixtestsuite conformance interfaces fork
|
||||
: fork_3-1 fork_4-1 fork_6-1 fork_8-1 fork_9-1 fork_12-1 ;
|
||||
|
||||
# add signal posix tests
|
||||
AddFilesToHaikuImage home posixtestsuite conformance interfaces kill
|
||||
: kill_2-1 ;
|
||||
AddFilesToHaikuImage home posixtestsuite conformance interfaces sighold
|
||||
: sighold_1-1 sighold_2-1 sighold_3-core-buildonly ;
|
||||
AddFilesToHaikuImage home posixtestsuite conformance interfaces sigignore
|
||||
: sigignore_1-1 sigignore_4-1 sigignore_5-core-buildonly
|
||||
sigignore_6-1 sigignore_6-2 ;
|
||||
AddFilesToHaikuImage home posixtestsuite conformance interfaces sigprocmask
|
||||
: sigprocmask_8-1 sigprocmask_8-2 sigprocmask_8-3 sigprocmask_12-1 ;
|
||||
AddFilesToHaikuImage home posixtestsuite conformance interfaces sigrelse
|
||||
: sigrelse_1-1 sigrelse_2-1 sigrelse_3-core-buildonly ;
|
||||
AddFilesToHaikuImage home posixtestsuite conformance interfaces signal
|
||||
: signal_1-1 signal_2-1 signal_3-1 signal_5-1 signal_6-1 signal_7-1 ;
|
||||
}
|
||||
|
||||
|
||||
#pragma mark - Optional Packages
|
||||
|
||||
|
||||
|
||||
@@ -130,3 +130,7 @@ HAIKU_DONT_INCLUDE_SRC = 1 ;
|
||||
DeferredSubInclude HAIKU_TOP src tests add-ons kernel file_systems
|
||||
userlandfs ;
|
||||
|
||||
|
||||
# Copy the posix test suite onto the image (or on the installation) into
|
||||
# "home/posixtestsuite" directory, including the run script.
|
||||
HAIKU_ADD_POSIX_TEST_SUITE_TO_IMAGE = 1 ;
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
SubDir HAIKU_TOP src tests system libroot posix posixtestsuite ;
|
||||
|
||||
MakeLocatePlatform run_posix_tests ;
|
||||
Shell run_posix_tests : run_posix_tests.sh ;
|
||||
|
||||
SubInclude HAIKU_TOP src tests system libroot posix posixtestsuite conformance ;
|
||||
|
||||
@@ -3,13 +3,16 @@
|
||||
usage()
|
||||
{
|
||||
cat <<EOF
|
||||
Usage: $0 [AIO|MEM|MSG|SEM|SIG|THR|TMR|TPS]
|
||||
Run the tests for POSIX area specified by the 3 letter tag
|
||||
in the POSIX spec
|
||||
Usage: $0 all
|
||||
to run all the available tests
|
||||
|
||||
$0 standard
|
||||
to run all the standard tests
|
||||
or
|
||||
$0 all
|
||||
to run all the available tests.
|
||||
you can run the tests for optional Posix
|
||||
functionality areas as specified by the
|
||||
letter tag in the posix spec
|
||||
$0 [AIO|MEM|MSG|SEM|SIG|THR|TMR|TPS]
|
||||
|
||||
EOF
|
||||
}
|
||||
@@ -21,6 +24,21 @@ targets()
|
||||
}
|
||||
|
||||
|
||||
standard_tests()
|
||||
{
|
||||
echo "difftime()"
|
||||
conformance/interfaces/difftime/difftime_1-1
|
||||
echo ""
|
||||
echo "fork()"
|
||||
conformance/interfaces/fork/fork_3-1
|
||||
conformance/interfaces/fork/fork_4-1
|
||||
conformance/interfaces/fork/fork_6-1
|
||||
conformance/interfaces/fork/fork_8-1
|
||||
conformance/interfaces/fork/fork_9-1
|
||||
conformance/interfaces/fork/fork_12-1
|
||||
}
|
||||
|
||||
|
||||
asynchronous_input_output_tests()
|
||||
{
|
||||
echo "asynchronous_input_output_tests: Not yet implemented."
|
||||
@@ -79,6 +97,7 @@ signals_tests()
|
||||
|
||||
all_tests()
|
||||
{
|
||||
standard_tests
|
||||
asynchronous_input_output_tests
|
||||
signals_tests
|
||||
}
|
||||
@@ -91,6 +110,9 @@ sleep 1
|
||||
all) echo "Executing all tests:"
|
||||
all_tests
|
||||
;;
|
||||
standard) echo "Executing standard tests:"
|
||||
standard_tests
|
||||
;;
|
||||
AIO) echo "Executing asynchronous I/O tests"
|
||||
asynchronous_input_output_tests
|
||||
;;
|
||||
|
||||
Reference in New Issue
Block a user