Commit Graph

3851 Commits

Author SHA1 Message Date
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
Chris Johns
bba48d90bc libdl: Support link ordered loading of ELF sections.
The ARM C++ exception ABI uses an address ordered index table to
locate the correct frame data and this requires the EXIDX sections are
loaded in the order the order the matching text is loaded.

The EXIDX sections set the SHF_LINK_ORDER flag and link field. This patch
adds support to load those flagged sections in the linked-to section
order.

Updates #2955.
Closes #2959
2017-03-31 09:00:14 +11:00
Sebastian Huber
a1c60b5690 benchmarks/whetstone: Port to RTEMS
Update #2958.
2017-03-29 07:42:50 +02:00
Sebastian Huber
3785f93779 benchmarks/whetstone: Import
Import whetstone sources from:

http://www.netlib.org/benchmark/whetstone.c

Update #2958.
2017-03-29 07:42:49 +02:00
Sebastian Huber
0a16d5f4a0 benchmarks/linpack: Port to RTEMS
Close #2958.
2017-03-29 07:42:46 +02:00
Sebastian Huber
8783660741 benchmarks/linpack: Import
Import linpack sources from:

http://www.netlib.org/benchmark/linpack-pc.c

Update #2958.
2017-03-29 07:42:46 +02:00
Sebastian Huber
954ca41055 benchmarks/dhrystone: Port to RTEMS
Update #2958.
2017-03-29 07:42:43 +02:00
Sebastian Huber
317c1f41ea benchmarks/dhrystone: Import
Import dhrystone sources from:

http://www.netlib.org/benchmark/dhry-c

Update #2958.
2017-03-29 07:29:01 +02:00
Sebastian Huber
0027682546 benchmarks: Add benchmark templates
Update #2958.
2017-03-29 07:29:01 +02:00
Kevin Kirspel
1c6926c11f termios: Synchronize with latest FreeBSD headers
Adding modified FreeBSD headers to synchronize RTEMS termios with
FreeBSD.  Modify termios to support dedicated input and output baud for
termios structure.  Updated BSPs to use dedicated input and output baud
in termios structure.  Updated tools to use dedicated input and output
baud in termios structure.  Updated termios testsuites to use dedicated
input and output baud in termios structure.

Close #2897.
2017-03-22 11:55:04 +01:00
Sebastian Huber
d50ab07938 dosfs: Fix file name search
Do not use our long file name entry count to optimize the file name
search. The Unicode comparison must be taken into account.

Update #2939.
2017-03-16 15:33:59 +01:00
Sebastian Huber
e69ee3629d dosfs: Fix fat_file_write()
Remove forced overwrite which leads to file data corruption.  The logic
to determine a forced overwrite was fundamentally broken.  For simplity,
disable this feature.

Update #2622.
2017-03-16 15:33:57 +01:00
Sebastian Huber
1becaa953e dosfs: Fix msdos_utf8_normalize_and_fold()
It is all right in case the result uses the full destination buffer.
Without this fix the handling of a maximum 8.3 short file name is
broken.

Update #2928.
2017-03-16 15:33:57 +01:00
Sebastian Huber
66fac03fae libio: Fix deadlock in location management
Perform a context-dependent deferred location release to avoid a
deadlock on the file system instance locks, for example during a
chdir().

Update #2936.
2017-03-16 15:33:56 +01:00
Joel Sherrill
191d39a5c4 psxstrsignal01: New test 2017-03-15 12:59:47 -05:00
Chris Johns
eb733202ad Fix rtems-test-check with a BSD sed.
BSD sed does not support '\t' and treated '[ \t]' as 3 characters. This patch
uses a standard method of supporting blank spaces.
2017-03-14 13:54:21 +11:00
Sebastian Huber
cb056d02c5 cdtest: Print begin of test only once 2017-03-03 09:04:12 +01:00
Sebastian Huber
902ffeddb5 termios09: Test send callback 2017-02-28 09:09:23 +01:00
Sebastian Huber
3663543392 termios: Implement non-blocking write 2017-02-28 09:09:23 +01:00
Sebastian Huber
a165a9607a termios: Make write POSIX compatible
Currently only blocking read/write operations are implemented.  A
blocking write must transfer at least one character.  It should not wait
for the device for the second character and so on.

Close #2917.
2017-02-28 09:09:19 +01:00
Sebastian Huber
5244d31ef7 termios: Simplify oproc()
Call rtems_termios_puts() only once.  Adjust column in one place.
2017-02-28 09:05:47 +01:00
Sebastian Huber
06d14667f7 termios09: Test output post processing 2017-02-28 09:05:47 +01:00
Sebastian Huber
c80f6aa916 termios: Fix infinite loop in receive path
In canonical mode, the raw input buffer or the canonical buffer may
overflow without an end of line.  Avoid an infinite loop in this case.

Close #2915.
2017-02-28 09:05:47 +01:00
Sebastian Huber
9fa0f543ec termios: Change receive callback invocation
Call the receive callback in case a read will succeed without to block.
This enables the use of the receive callback for a poll() and select()
support.  Increase raw input buffer size to allow buffering of one line.

Close #2916.
2017-02-28 09:05:42 +01:00
Sebastian Huber
9f69ac2a9d termios: Ignore carriage return early if desired
In case carriage return characters should be ignored in the input
(IGNCR), then drop them early before they reach the raw input buffer.
This makes it easier to calculate the content size of the raw input
buffer.
2017-02-28 08:51:31 +01:00
Sebastian Huber
c54769e71e spextensions01: Fix extension create order
Update #2692.
2017-02-21 12:11:44 +01:00
Sebastian Huber
611f926212 psxtests: Fix warnings 2017-02-15 10:35:07 +01:00
Sebastian Huber
71ac0a60ca spqreslib: Remove invalid test cases 2017-02-14 10:05:24 +01:00
Sebastian Huber
ad25f10d5b spcbssched02: Remove invalid test cases 2017-02-14 10:03:42 +01:00
Sebastian Huber
ecf53c8dd5 psxsem01: Fix warning 2017-02-14 09:57:22 +01:00
Sebastian Huber
54835ae9b3 Rename CONFIGURE_SMP_MAXIMUM_PROCESSORS
Rename CONFIGURE_SMP_MAXIMUM_PROCESSORS to CONFIGURE_MAXIMUM_PROCESSORS
since the SMP part is superfluous.

Update #2894.
2017-02-14 09:52:05 +01:00
Sebastian Huber
c341463c97 tmacros.h: Fix print defines 2017-02-14 08:59:23 +01:00
Sebastian Huber
9333de2fa8 sppagesize: Include missing header file 2017-02-14 08:54:51 +01:00
Sebastian Huber
d9c6542970 dosfs: Fix msdos_find_file_in_directory()
For a filename match the entry must match without anything remaining.

Close #2908.
2017-02-14 08:07:22 +01:00
Sebastian Huber
239dd35fce smptests: Fix warnings 2017-02-03 11:25:04 +01:00
Sebastian Huber
07d71279b4 Prefix confdefs.h internal def with an underscore
Close #2895.
2017-02-03 11:14:58 +01:00
Sebastian Huber
ca1e546e77 score: Improve scheduler helping protocol
Only register ask for help requests in the scheduler unblock and yield
operations.  The actual ask for help operation is carried out during
_Thread_Do_dispatch() on a processor related to the thread.  This yields
a better separation of scheduler instances.  A thread of one scheduler
instance should not be forced to carry out too much work for threads on
other scheduler instances.

Update #2556.
2017-02-03 10:17:38 +01:00
Sebastian Huber
f95fa38764 Remove CONFIGURE_SMP_APPLICATION
Enable the SMP support if CONFIGURE_SMP_MAXIMUM_PROCESSORS > 1.

Update #2893.
2017-02-02 09:07:08 +01:00
Kuan-Hsun Chen
166a9f67cd sprmsched01/spedfsched04: Revise
Instead of using the target time and console driver, both tests now use
assertions and rtems_rate_monotonic_get_status() to verify the count of
postponed jobs.  The setting of spedfsched04 is slightly changed.

Close #2795.
2017-01-31 07:20:06 +01:00
Kuan-Hsun Chen
0794197f72 rtems: Fix _Rate_monotonic_Renew_deadline()
Prepare a precondition to prevent the potential integer overflow.

Remove one redundant parameter in _Rate_monotonic_Renew_deadline().

sptests/sprmsched02: Create
A test case for checking the overflow condition of postponed_jobs
in rtems_rate_monotonic_period_status.

Update #2885.
2017-01-30 07:53:13 +01:00
Sebastian Huber
6f6da82ca0 score: Fix user extensions order
Use forward and reverse order for initial and dynamic extensions.  This
is the behaviour documented in the C Users Guide.  Change thread
terminate order to backward to be in line with the thread delete order.
Change fatal error order to forward to ensure that initial extensions
are called first due the peculiar execution context of fatal error
extensions, see _Terminate() documentation.

Update #2692.
2017-01-26 11:20:45 +01:00
Kuan-Hsun Chen
d7feb8677d Remove rtems_rate_monotonic_postponed_job_count()
Add a variable named "count" in rtems_rate_monotonic_period_status
structure.  Revise rtems_rate_monotonic_get_status() for the postponed
job count.

sptests/sp69: Add in the verification of the postponed job count for
rtems_rate_monotonic_get_status().

Update #2795.
2017-01-26 10:00:33 +01:00
Sebastian Huber
7cb7454f93 psxtests: Relax shared memory tests
There is currently no proper mmap() implementation.

Update #2859.
2017-01-25 11:46:51 +01:00
Sebastian Huber
23a11b68cd sptests/spedfsched04: Merge and fix
Merge into one file and fix obvious problems (e.g. out of bounds array
access).

Update #2795.
2017-01-25 11:16:02 +01:00
Sebastian Huber
29e08d41f4 sptests/sprmsched01: Merge and fix
Merge into one file and fix obvious problems (e.g. out of bounds array
access).

Update #2795.
2017-01-24 15:37:04 +01:00
Sebastian Huber
6af2221aac fsscandir01: Check MAXNAMLEN and NAME_MAX
Update #1394.
2017-01-24 10:08:33 +01:00
Sebastian Huber
436a4b384b smptests/smpsignal01: Check signal ISR level
Close #2751.
2017-01-24 09:44:02 +01:00
Gedare Bloom
cb2cbecefd classic: adjust names of RM postponed job functions
closes #2795
2017-01-13 13:58:11 -05:00
Kuan-Hsun Chen
ad40220f80 sptests: EDF scheduler overrun handling
Update #2795.
2017-01-13 13:58:01 -05:00
Kuan-Hsun Chen
86aa124806 sptests: rate monotonic scheduler overrun handling
Update #2795.
2017-01-13 13:57:34 -05:00