Commit Graph

4601 Commits

Author SHA1 Message Date
Sebastian Huber
c728948434 libtest: Add T_push_plan() and T_pop_plan()
Update #3199.
2020-08-18 07:08:51 +02:00
Sebastian Huber
72960bc7d4 libtest: Change T_step() and T_assert_step()
Normally, the expected test step must be a compile time constant.  Allow
variable expected test steps for the T_step() and T_assert_step().  This
can be used for parameterized test loops with individual fixtures.

Remove the ability to use custom failure messages due to some
implementation constraints.

Update #3199.
2020-08-18 07:08:51 +02:00
Sebastian Huber
5383d4db04 libtest: Add fixture steps
Support a new test plan for each nested fixture.

Update #3199.
2020-08-18 07:08:51 +02:00
Sebastian Huber
5a8114c6c5 libtest: Change fixture scope method
Return the produced character count.  There is no need for a NUL
termination.

Update #3199.
2020-08-18 07:08:51 +02:00
Sebastian Huber
01677dd491 spintrcritical23: Restore runner priority 2020-08-11 10:03:53 +02:00
Aschref Ben Thabet
5d7ab6bd21 libtests/dl10: Delete unused functions 2020-08-11 09:49:02 +02:00
Sebastian Huber
c1354f0514 libtest: Add T_thread_switch_record()
Add support to record thread switch events.  This can be used to check
that a blocking operation results in the expected sequence of thread
switches.

Update #3199.
2020-08-11 08:03:47 +02:00
Sebastian Huber
32f1f747cc libtest: Fix T_interrupt_test() in SMP configs
Update #3199.
2020-08-06 19:15:57 +02:00
Aschref Ben Thabet
6c4ca834fa psxhdrs/strncpy/stpncpy: Fix string turncation warning
Since we need to test the strncpy function, using a character array with
a fixed array size in this case in place of character pointer can avoid
the string turncation warning.
2020-08-05 14:21:17 +02:00
Sebastian Huber
81631dea2e smpschededf02: Document reset() function 2020-08-04 15:48:32 +02:00
Aschref Ben Thabet
699f465c50 psxhdrs/strncat: Fix string truncation warning 2020-07-30 14:57:57 +02:00
Sebastian Huber
4444094d02 spmisc01: Include missing header file
Update #4032.
2020-07-24 07:31:43 +02:00
Sebastian Huber
6f94a830bd score: Add RTEMS_WEAK
Update #4032.
2020-07-24 07:12:58 +02:00
Sebastian Huber
b2ff5fe310 spintrcritical_support: Remove
This test support was replaced by T_interrupt_test() is no longer used.
2020-07-23 09:27:48 +02:00
Sebastian Huber
6b795cd75d spintrcritical24: Use T_interrupt_test() 2020-07-23 09:27:48 +02:00
Sebastian Huber
23b9debe12 spintrcritical23: Use T_interrupt_test() 2020-07-23 09:27:48 +02:00
Sebastian Huber
1414e710db spintrcritical22: Use T_interrupt_test() 2020-07-23 09:27:47 +02:00
Sebastian Huber
59ee302074 spintrcritical21: Use T_interrupt_test() 2020-07-23 09:27:47 +02:00
Sebastian Huber
38636e23c6 spintrcritical20: Use T_interrupt_test() 2020-07-23 09:27:47 +02:00
Sebastian Huber
aebdd1dacb spintrcritical18: Use T_interrupt_test() 2020-07-23 09:27:47 +02:00
Sebastian Huber
031e8246d4 spintrcritical16: Use T_interrupt_test() 2020-07-23 09:27:47 +02:00
Sebastian Huber
1c2e05d4e3 spintrcritical15: Use T_interrupt_test() 2020-07-23 09:27:47 +02:00
Sebastian Huber
5020a281b5 spintrcritical13/14: Use T_interrupt_test() 2020-07-23 09:27:47 +02:00
Sebastian Huber
8cbba4496a spintrcritical11/12: Use T_interrupt_test() 2020-07-23 09:27:47 +02:00
Sebastian Huber
be2f9d74cb spintrcritical10: Use T_interrupt_test() 2020-07-23 09:27:47 +02:00
Sebastian Huber
a231276908 spintrcritical09: Use T_interrupt_test() 2020-07-23 09:27:47 +02:00
Sebastian Huber
5f66ac86dd spintrcritical08: Use T_interrupt_test() 2020-07-23 09:27:47 +02:00
Sebastian Huber
2831395812 spintrcritical06/spintrcritical07: Remove tests
These two tests check conditions which no longer exist in the thread
queue implementation.  The are obsolete since the change to use
red-black trees for the priority queues.
2020-07-23 09:27:47 +02:00
Sebastian Huber
21f7333979 spintrcritical01/2/3/4/5: Use T_interrupt_test() 2020-07-23 09:27:47 +02:00
Sebastian Huber
857a65dc7e psxintrcritical01: Use T_interrupt_test() 2020-07-23 09:27:47 +02:00
Sebastian Huber
cc3fd8fcf1 libtest: Add T_interrupt_test()
Update #3199.
2020-07-23 09:27:47 +02:00
Sebastian Huber
d702c9f47d libtest: Make check message optional
This macro magic is in line with C11 and C++11, but limits the maximum
count of arguments.

Update #3199.
2020-07-23 09:27:47 +02:00
Sebastian Huber
cb3c6bdc0f libtest: Add push/pop fixture support
Update #3199.
2020-07-23 09:27:47 +02:00
Sebastian Huber
6b27e3251e libtest: Support custom scope messages via fixture
Update #3199.
2020-07-23 09:27:47 +02:00
Sebastian Huber
af9266541f libtest: Add T_get_one_clock_tick_busy()
Update #3199.
2020-07-23 09:27:47 +02:00
Sebastian Huber
e3e3b871ee libtest: Add T_busy()
Update #3199.
2020-07-23 09:27:47 +02:00
Sebastian Huber
361404e87d libtest: Move <t.h> to <rtems/test.h>
Update #3199.
2020-07-23 09:27:45 +02:00
Sebastian Huber
9de8d61a9a libtest: <rtems/test.h> to <rtems/test-info.h>
Rename this header file to later move <t.h> to <rtems/test.h>.  The main
feature provided by <rtems/test-info.h> is the output of standard test
information which is consumed by the RTEMS Tester.

Update #3199.
2020-07-23 09:27:10 +02:00
Sebastian Huber
dc4879bba4 rtems: Remove deprecated rtems_io_lookup_name()
Close #3420.
2020-07-14 07:25:46 +02:00
Sebastian Huber
37c36def7a Change version to RTEMS 6
Update #4020.
2020-06-30 09:19:08 +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
46c2387181 rtems: Remove RTEMS_MP_NOT_CONFIGURED error
Some objects can be created with a local or global scope in a
multiprocessing network. In non-multiprocessing configurations setting
the scope to local or global had no effect since such a system can be
viewed as a multiprocessing network with just one node. One and all
nodes is the same in such a network. However, if multiprocessing was
configured, creation of a global object in a single node network
resulted in an RTEMS_MP_NOT_CONFIGURED error. Remove this error
condition for symmetry to the non-multiprocessing setup. This is in line
with the task affinity behaviour in SMP systems.

Update #4005.
2020-06-18 07:09:34 +02:00
Jan Sommer
6369dafbb6 smpsignal01: Change state before sending the signal
The signal handler of the consumer might start executing
before rtems_signal_send of the producer returns.
Therefore change the state to SIG_1_SENT before sending the signal.
2020-06-11 13:29:35 +10:00
Eshan dhawan
e84587355a tests for fenv.h functions
added tests for fesetexeptflag(), fegetexeptflag(),
fegetround(), fesetround().

In the test fegetround() does not return any flag
other then FE_TONEAREST in tests.
This is probably due to soft float.

The test complies successfully and returns assert
at fegetround()

Other tests run without any errors
tested on RISCV/rv32imac

The test prints nothing if runs successfully.

updates #2971

Signed-off-by: Eshan dhawan <eshandhawan51@gmail.com>
2020-06-06 15:24:59 -05:00
Sebastian Huber
ea2d9237fc libtests/tar01: Remove files of tar01.tar archive
Update #3968.
2020-05-08 15:12:40 +02:00
Sebastian Huber
ef9517b7d5 libtests/tar0[12]: Add tar archive
Do not generate the test tar archive on the host computer since not all
file systems support symbolic links.

Close #3968.
2020-05-07 12:31:56 +02:00
Chris Johns
89f57a665f testsuite: Add the BSP architecture to the include path
Updates #2962
2020-05-06 18:38:38 +10:00
Sebastian Huber
1af8e45bb7 rtems: Add rtems_get_copyright_notice()
Update #3973.
2020-05-06 07:47:34 +02:00
Sebastian Huber
34b098edc5 rtems: Deprecate use of _RTEMS_version
Close #3970.
2020-05-06 07:39:10 +02:00
Chris Johns
e78c0806cb libtest/dl09: Test trampolines only when supported 2020-05-06 08:46:57 +10:00