Commit Graph

1050 Commits

Author SHA1 Message Date
Sebastian Huber
1a48cbfa16 sptests: Avoid include path magic
Update #3818.
2019-11-12 09:47:20 +01:00
Sebastian Huber
1e343825f4 tests: Simplify fatal error test support
Move system.h to shared init.c.

Update #3818.
2019-11-12 09:47:20 +01:00
Sebastian Huber
f32e119716 psxtests: Avoid build system defined defines
Update #3818.
2019-11-12 09:36:19 +01:00
Sebastian Huber
224ceb0b95 psxfenv01: Check FE_DIVBYZERO define 2019-11-12 08:50:01 +01:00
Sebastian Huber
aeb981ea1b psxtests/psxualarm: Fix test failure
Update #3794.
2019-10-01 09:16:31 +02:00
Joel Sherrill
8798372261 Correct initial POSIX signals mask
+ Modify POSIX thread create extension to ensure expected
	  initial signal mask is provided to system threads, initial
	  tasks and threads, and inheritied by tasks and threads.
	+ Adds psxsignal07 to verify functionality when using a POSIX
	  Initialization thread and POSIX threads.
	+ Adds psxsignal08 to verify functionality when using a Classic API
	  Initialization task and Classic API tasks.

Closes #3794.
2019-09-24 16:27:57 -05:00
Vaibhav Gupta
5e5867a32a Add psxfenv01 test to psxtests
Note that this test requires a functional fenv implementation. Some
targets have multilib variants where the fenv implementation is not
100% passing.
2019-09-10 13:47:29 -05:00
Vaibhav Gupta
57e0173584 psxtests: Add ndbm test suite
Joel Sherrill <joel@rtems.org> modified the patch to
	add autoconf logic to avoid building this new test
	unless the tool chain include <ndbm.h>. The ensures
	that git bisect continues to work and that the addition
	of this test does not immediately force the entire
	community to update their tools.
2019-07-30 10:18:09 -05:00
Vaibhav Gupta
d9fcb22a61 psxtests: Add psxinttypes01 for <inttypes.h> methods 2019-06-19 11:03:35 -05:00
Joel Sherrill
6d3e3934cd Makefile.am: Add psxhdrs/termios files to build 2019-05-07 15:01:03 -05:00
Jacob Shin
7bd38f88c7 psxhdrs: Add POSIX API Signature Compliance Tests for termios.h 2019-05-07 14:35:30 -05:00
Sebastian Huber
f9219db2a9 rtems: Add rtems_scheduler_get_processor_maximum()
Add rtems_scheduler_get_processor_maximum() as a replacement for
rtems_get_processor_count(). The rtems_get_processor_count() is a bit
orphaned. Adopt it by the Scheduler Manager. The count is also
misleading, since the processor set may have gaps and the actual count
of online processors may be less than the value returned by
rtems_get_processor_count().

Update #3732.
2019-04-09 08:06:46 +02:00
Joel Sherrill
127ee3a552 psxhdrs/stdio/v*.c: Fix warnings in varargs tests 2019-03-25 16:27:44 -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
3d65f457ea psxtests/psxonce01: Fix typo
Update #3334.
2019-02-18 08:33:26 +01:00
Sebastian Huber
e4ad14cc78 score: Avoid some deadlocks in _Once()
Recursive usage of the same pthread_once_t results now in a deadlock.
Previously, an error of EINVAL was returned.  This usage scenario is
invalid according to the POSIX pthread_once() specification.

Close #3334.
2019-02-18 07:25:58 +01:00
Sebastian Huber
7fdcd02338 psxtests: Remove bogus file
This file is unused and makes trouble on Windows.

Updates #3638.
2019-02-12 10:26:34 +01:00
Sebastian Huber
b015c01443 build: Do not install test programs 2019-01-30 09:46:35 +01:00
Sebastian Huber
7bde91bd5f Fix format warnings due to ino_t changes 2019-01-10 09:06:56 +01:00
Sebastian Huber
3a5c71dea4 psxconfig01: Fix pre-processor conditions
Do not rely on compiler optimizations to throw away empty loops.

Close #3673.
2019-01-10 08:12:16 +01:00
Jacob Shin
e4a19f5b66 psxhdrs: Add POSIX API Signature Compliance Tests for errno.h 2019-01-08 09:48:29 -06:00
Jiri Gaisler
5b951175d0 psxfile01: Fix one second sleep
Checking of atime in psxfile01 (line 713) can fail since a delay for
rtems_clock_get_ticks_per_second (line 699) gives a delay of less than
one second, depending on when the last tick occurred. atime is measured
in whole seconds, and a fast processor might read the file before a new
second occurs. Add one tick to the delay will solve the problem.
2019-01-07 14:23:50 +01:00
Jacob Shin
8af51b09e2 psxhdrs: Changing copyright license to BSD-2-Clause 2018-12-20 15:57:23 -06:00
Marçal Comajoan Cara
cfa82b34b0 psxhdrs: Update licenses to 2-Clause BSD (GCI 2018)
Updated licenses of the files I wrote to the 2-Clause BSD License.

This work was part of GCI 2018.
2018-12-14 10:41:00 -06:00
Himanshu40
4bd2f802a9 Some minor fix on psxhdrs 2018-12-14 10:28:33 -06:00
Himanshu40
c1912df285 psxhdrs: Changed the copyright license to BSD-2-Clause (GCI 2018) 2018-12-14 10:26:49 -06:00
Sebastian Huber
21275b58a5 score: Static Objects_Information initialization
Statically allocate the objects information together with the initial
set of objects either via <rtems/confdefs.h>.  Provide default object
informations with zero objects via librtemscpu.a.  This greatly
simplifies the workspace size estimate.  RTEMS applications which do not
use the unlimited objects option are easier to debug since all objects
reside now in statically allocated objects of the right types.

Close #3621.
2018-12-14 07:03:29 +01:00
Pritish Jain
877048c86a psxhdrs: Changed the Copyright license to BSD-2-Clause .
The Copyright clause has been changed to BSD-2-Clause for all the tests in the
header files math.h , utime.h , fmtmsg.h and sys/ipc.h .
2018-12-13 09:46:04 -06:00
Jacob Shin
cb8281f6e1 psxhdrs: Add POSIX API Signature Compliance Tests for sys/msg.h (GCI 2018) 2018-12-13 09:43:35 -06:00
Jacob Shin
28f23eb637 psxhdrs: Add POSIX API Signature Compliance Tests for sys/select.h (GCI 2018)
The Google Code-In finished before I could submit this, so I thought I would submit this instead of letting it go to waste.
2018-12-13 09:36:21 -06:00
ABR290B
86b0ac9fc8 psxhdrs: Add POSIX Signature Compliance Test for sys/shm.h (GCI 2018) 2018-12-13 09:24:12 -06:00
ABR290B
a0353ea266 POSIX Signature Compliance Test for utmpx.h (GCI2018) 2018-12-13 09:12:54 -06:00
ABR290B
0af5eded57 POSIX Signature Compliance Test for sys/statvfs.h (GCI 2018) 2018-12-13 09:02:04 -06:00
Jacob Shin
b770665f01 psxhdrs: Add POSIX API Signature Compliance Tests for net/if.h 2018-12-12 15:00:10 -06:00
zehata
bf19a9c613 psxhdrs/: Changed boilerplate licenses to BSD-2 (GCI 2018) 2018-12-11 21:44:53 -06:00
ABR290B
af677c0f7e psxhdrs: POSIX API Signature Compliance Test for setjmp.h (GCI2018) 2018-12-11 21:37:35 -06:00
Marçal Comajoan Cara
6ab788dce7 psxhdrs: Implement POSIX API Signature Compliance Tests for poll.h (GCI 2018)
poll.h implements poll() which is not supported by RTEMS according
to the RTEMS POSIX 1003.1 Compliance Guide. See #3657.

This work was part of GCI 2018.
2018-12-11 13:22:38 -06:00
Pritish Jain
484ef98c87 psxhdrs: Add POSIX Compliance Tests for wordexp.h (GCI 2018) 2018-12-11 13:14:24 -06:00
Sebastian Huber
b7a1f9efad psxhdrs: Fix compile errors 2018-12-11 09:42:17 +01:00
Himanshu40
b05aa8ee41 psxhdrs: Add POSIX API Signature Compliance Tests for pwd.h (GCI 2018) 2018-12-10 12:56:35 -06:00
Zenon
c107f2b778 psxhdrs: Add POSIX API Signature Compliance Tests for fcntl.h (GCI 2018) 2018-12-10 12:56:34 -06:00
Joel Sherrill
ed6a8e3ca1 psxtests/Makefile.am: Add fcntl methods missed in previous commit 2018-12-10 12:39:34 -06:00
Joel Sherrill
2bb21ddec6 psxtests/Makefile.am: Correct spacing 2018-12-10 12:33:13 -06:00
Jacob Shin
9084b6b53f psxhdrs: Add POSIX API Signature Compliance Tests for sys/resource.h (GCI 2018) 2018-12-10 11:50:32 -06:00
Marçal Comajoan Cara
5269bf47b1 psxhdrs: Implement POSIX API Signature Compliance Tests for sys/times.h (GCI 2018) 2018-12-09 17:08:38 -06:00
Shashvat Jain
dc95ef6790 psxhdrs: Add POSIX Conformance Test for sys/ipc.h (GCI 2018)
Test for this file has been added but are disabled due to the absence
of header file sys/ipc.h.

see Ticket #3650
2018-12-09 16:53:51 -06:00
Jacob Shin
9e7e8b3f2c psxhdrs: Add POSIX API Signature Compliance Tests for sys/stat.h (GCI 2018) 2018-12-09 16:33:59 -06:00
Himanshu40
b009cfb638 psxhdrs: Added POSIX API Signature Compliance Tests for threads.h (GCI 2018) 2018-12-09 09:17:08 -06:00
Jacob Shin
a5c0886a6d psxhdrs: Add POSIX API Signature Compliance Tests for stdlib.h (GCI 2018) 2018-12-09 09:10:11 -06:00
ABR290B
15d806b0f9 psxhdrs: POSIX Signature Test for syslog.h (GCI2018) 2018-12-08 11:42:24 -06:00