Commit Graph
152 Commits
Author SHA1 Message Date
Joel Sherrill dcbba7c0e6 psxtmtests/*/*.doc: Change license to BSD-2
Updates #3053.
2022-06-14 10:31:39 -05:00
Ryan Long b99d119604 psxtmtests/psxtmcond*: Add file headers and licenses
These files had no file header, copyright, or license. Based on git
history, added appropriate copyright and license.
2022-04-27 15:19:24 -05:00
Joel Sherrill 842a7dd813 psxtmtests/psxtmkey02/init.c: Manually change license to BSD-2
This has yet another typo in the license and was missed by the script.

Updates #3053.
2022-04-12 13:35:39 -05:00
Joel Sherrill ceeca0db5b psxtmtests/psxtmthread06/init.c: Adjust formatting 2022-04-12 13:35:39 -05:00
Joel Sherrill 94fa540cc2 testsuites/psxtmtests: Change license to BSD-2
Updates #3053.
2022-04-12 13:35:39 -05:00
Sebastian Huber db8f598d56 build: Remove old build system
Close #3250.
Close #4081.
2021-09-21 07:39:09 +02:00
Sebastian Huber 5faad36f97 psxtmtests: Fix test names
Tests PSXTMCOND 08, 09, and 10 had the same test name.
2020-06-23 10:34:57 +02:00
Sebastian Huber 150fbaf9c9 psxtmtests: Avoid build system defined defines
Update #3818.
2019-11-12 09:36:19 +01:00
Shashvat Jain 0a154d5c9c Correct psxtmtests_plan.csv 2019-03-11 18:56:56 -05:00
Chris Johns 96e4b22312 testsuite: Make the OPERATION_COUNT a test configuration parameter.
- Add a small memory test config file.
- Update the small memory PowerPC BSPs to use the new test config.
2019-03-07 06:33:47 +11:00
Sebastian Huber b015c01443 build: Do not install test programs 2019-01-30 09:46:35 +01:00
Sebastian Huber 4f3a2532a3 psxtmtests: Fix format warnings
Update #3384.
2019-01-28 14:17:39 +01:00
Himanshu40 8f5abeab8a psxtmtests: Changed the copyright license to BSD-2-Clause (GCI 2018) 2018-12-22 09:46:14 -06:00
Sebastian Huber ef23838543 score: Avoid sbintime_t in API headers
The sbintime_t is a non-POSIX type and not visible if strict standard
options are selected.

Move implementation details from <rtems/score/timestamp.h> to
<rtems/score/timestampimpl.h>.

Update #3598.
2018-12-07 14:22:01 +01:00
Joel Sherrill 5886a7016d psxtmtests_plan.csv: Add preemption cases for pthread_setschedprio 2018-12-06 11:30:23 -06:00
Marçal Comajoan Cara be9a83df87 psxtmtests/psxtmtests_plan.csv: Fix typos (GCI 2018)
Two quotation marks were missing so the CSV looked bad when using
an editor with syntax highlighting and could also have produced some
errors if the file was processed.  Also two "Yes" ys were lowercase and
I uppercased them so they are like the rest.
2018-12-06 11:26:46 -06:00
Marçal Comajoan Cara c078065f6a psxtmtests: Identified a Timing Test missing (GCI 2018)
pthread_setschedprio (http://pubs.opengroup.org/onlinepubs/9699919799/)
was missing in rtems/testsuites/psxtmtests/psxtmtests.csv.

This work was part of GCI 2018.
2018-12-06 11:26:34 -06:00
Joel Sherrill 36e1b8204f psxtmcleanup01/init.c: Fix warnings 2018-12-05 15:23:58 -06:00
Himanshu40 183b0ae488 psxtmtests: add psxtmmqrcvblock02 (GCI 2018) 2018-11-25 09:49:30 -06:00
Himanshu40 69812aaa2c psxtmbarrierattr01: Added new POSIX timing suite (GCI 2018) 2018-11-21 14:12:54 -06:00
Himanshu40 edae517758 psxtmutexattr01: Added new POSIX timing suite (GCI 2018) 2018-11-20 09:26:57 -06:00
Himanshu40 edd366c9ef psxtmcleanup01: new POSIX timing suite (GCI 2018) 2018-11-17 12:56:35 -06:00
shashvatjain f06c436a4a psxtmtests_plan.csv: Update to reflect psxtmmqrcvblock01 (GCI 2018) 2018-11-16 11:17:13 -06:00
shashvatjain ccf11ce9b7 psxtmmqrcvblock01: Add new POSIX timing test (GCI 2018) 2018-11-15 16:41:39 -06:00
Himanshu40 841b54ee6a psxtmthreadattr01: Correct mistakes in previous merge (GCI 2018)
Joel admits to grabbing one iteration too early of the patch. :(
2018-11-15 16:40:47 -06:00
Himanshu40 8abb230b77 psxtmthreadattr01: Add new test (GCI 2018) 2018-11-15 14:00:59 -06:00
Joel Sherrill 62954aaf25 psxtmtests_plan.csv: Add pthread cleanup and attr test cases 2018-11-11 09:25:16 -06:00
Joel Sherrill e9f15bee8b psxtmtests_plan.csv: Add psxtmonce01 2018-11-07 12:09:00 -06:00
Joel Sherrill 98cc00e6f3 psxtmonce01/init.c: Use static and Simple Console 2018-11-07 12:07:53 -06:00
Sebastian Huber a818d13cc0 build: Remove superfluous psxtmonce01/Makefile.am 2018-11-07 07:44:07 +01:00
Himanshu40 9bb395167a psxtmonce01: New test written by Himanshu40 as part of GCI2018 2018-11-06 18:36:08 -06:00
Sebastian Huber ef16a111c7 posix: Enable psxtmtests tests by default
Update #2514.
2018-10-29 10:52:48 +01:00
Sebastian Huber 477bca2d61 build: Remove local.am 2018-10-10 07:57:47 +02:00
Sebastian Huber b422aa3f4a tests: Remove configure feature checks
Update #3409.
2018-05-02 07:11:03 +02:00
Chris Johns aa567bc1cc configure: Add subdir-objects to all automake flags.
This option silences warning with automake-1.16.1 allowing us to
upgrade to that version.

This change has been tested with automake-1.12.6 and automake-1.16.1.
It seems version 1.16.1 configures slower than 1.12.6 for the same
source and BSP. The newer versions is 6 second slower.

Close #3387.
2018-04-11 11:52:29 +10:00
Chris Johns dfc57eb34f testsuite/psxtmtests: Merged nested Makefile.am files into one Makefile.am
This change is part of the testsuite Makefile.am reorganization.

Update #3382
2018-04-10 08:24:54 +10:00
Chris Johns 2afb22b7e1 Remove make preinstall
A speciality of the RTEMS build system was the make preinstall step.  It
copied header files from arbitrary locations into the build tree.  The
header files were included via the -Bsome/build/tree/path GCC command
line option.

This has at least seven problems:

* The make preinstall step itself needs time and disk space.

* Errors in header files show up in the build tree copy.  This makes it
  hard for editors to open the right file to fix the error.

* There is no clear relationship between source and build tree header
  files.  This makes an audit of the build process difficult.

* The visibility of all header files in the build tree makes it
  difficult to enforce API barriers.  For example it is discouraged to
  use BSP-specifics in the cpukit.

* An introduction of a new build system is difficult.

* Include paths specified by the -B option are system headers.  This
  may suppress warnings.

* The parallel build had sporadic failures on some hosts.

This patch removes the make preinstall step.   All installed header
files are moved to dedicated include directories in the source tree.
Let @RTEMS_CPU@ be the target architecture, e.g. arm, powerpc, sparc,
etc.  Let @RTEMS_BSP_FAMILIY@ be a BSP family base directory, e.g.
erc32, imx, qoriq, etc.

The new cpukit include directories are:

* cpukit/include

* cpukit/score/cpu/@RTEMS_CPU@/include

* cpukit/libnetworking

The new BSP include directories are:

* bsps/include

* bsps/@RTEMS_CPU@/include

* bsps/@RTEMS_CPU@/@RTEMS_BSP_FAMILIY@/include

There are build tree include directories for generated files.

The include directory order favours the most general header file, e.g.
it is not possible to override general header files via the include path
order.

The "bootstrap -p" option was removed.  The new "bootstrap -H" option
should be used to regenerate the "headers.am" files.

Update #3254.
2018-01-25 08:45:26 +01:00
Sebastian Huber e58e29fdb9 Remove coverhd.h
This header file contained timing overhead values which are hard to
maintain.

Update #3254.
2017-11-24 15:27:01 +01:00
Sebastian Huber c4b8b147dd tests: Use simple console driver
Update #3170.
Update #3199.
2017-11-06 07:26:42 +01:00
Sebastian Huber af4355459e tests: Remove TEST_INIT
The TEST_EXTERN is a used only by the system.h style tests and they use
CONFIGURE_INIT appropriately.

Update #3170.
Update #3199.
2017-10-28 13:33:56 +02:00
Chris Johns 98c6d50145 testsuite: Use printk for all test output where possible.
- Remove the printf support leaving the direct printk support configured
  with TESTS_USE_PRINTK and all other output goes via a buffered vsniprintf
  call to printk.
- Control the test's single init for functions and global data with
  TEST_INIT and not CONFIGURE_INIT. They are now separate.

Updates #3170.
2017-10-23 16:25:45 +11:00
Sebastian Huber de59c065c5 posix: Implement self-contained POSIX mutex
POSIX mutexes are now available in all configurations and no longer
depend on --enable-posix.

Update #2514.
Update #3112.
2017-10-05 14:29:02 +02:00
Sebastian Huber 5222488573 posix: Implement self-contained POSIX condvar
POSIX condition variables are now available in all configurations and no
longer depend on --enable-posix.

Update #2514.
Update #3113.
2017-10-05 14:29:02 +02:00
Sebastian Huber 89fc9345de posix: Implement self-contained POSIX rwlocks
POSIX rwlocks are now available in all configurations and no longer
depend on --enable-posix.

Update #2514.
Update #3115.
2017-10-05 14:29:02 +02:00
Sebastian Huber e67929c4c0 posix: Implement self-contained POSIX barriers
POSIX barriers are now available in all configurations and no longer
depend on --enable-posix.

Update #2514.
Update #3114.
2017-10-05 14:29:01 +02:00
Sebastian Huber c090db7405 posix: Implement self-contained POSIX semaphores
For semaphore object pointer and object validation see
POSIX_SEMAPHORE_VALIDATE_OBJECT().

Destruction or close of a busy semaphore returns an error status.  The
object is not flushed.

POSIX semaphores are now available in all configurations and no longer
depend on --enable-posix.

Update #2514.
Update #3116.
2017-10-05 14:29:01 +02:00
Chris Johns 258bda306b testsuite: Add a common test configuration. Fix configure.ac and Makefile.am errors.
- Add a top level test configuration file for test states that are common
  to all BSPs. This saves adding a test configuration (tcfg) file for
  every BSP.

- Add the test states 'user-input' and 'benchmark'. This
  lets 'rtems-test' stop the test rather than waiting for a timeout or
  letting a benchmark run without the user asking for it to run.

- Implement rtems-test-check in Python to make it faster. The shell script
  had grown to a point it was noticably slowing the build down.

- Fix the configure.ac and Makefile.am files for a number of the
  test directories. The files are difficiult to keep in sync with the
  number of tests and mistakes can happen such as tests being left
  out of the build. The test fsrofs01 is an example. Also a there was
  a mix of SUBDIRS and _SUBDIRS being used and only _SUBDIRS should be
  used.

- Fix the test fsrofs01 so it compiles.

Closes #2963.
2017-04-04 08:24:22 +10:00
Gedare Bloom 6e98ea9157 posix: add clock_nanosleep and tests
updates #2732
2016-07-25 12:44:47 -04:00
Sebastian Huber c8982e5f6a posix: Simplify message queues
The mq_open() function returns a descriptor to a POSIX message queue
object identified by a name.  This is similar to sem_open().  In
contrast to the POSIX semaphore the POSIX message queues use a separate
object for the descriptor.  This extra object is superfluous, since the
object identifier can be used directly for this purpose, just like for
the semaphores.

Update #2702.
Update #2555.
2016-05-02 07:46:15 +02:00
Joel Sherrill 4b8184f0ed psxtmtests_plan.csv: Fix typo 2015-12-01 08:33:43 -06:00