summaryrefslogtreecommitdiffstats
path: root/testsuites/support (follow)
Commit message (Collapse)AuthorAgeFilesLines
* libtest: <rtems/test.h> to <rtems/test-info.h>Sebastian Huber2020-07-232-2/+2
| | | | | | | | 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.
* testsuites: Remove rtems_test_pause*()Sebastian Huber2019-12-041-28/+0
| | | | | | | | | | | | | The rtems_test_pause() and rtems_test_pause_and_screen_number() macros had different implementations depending on the RTEMS_TEST_NO_PAUSE define. This define was defined to 1 by default. The user was able to change this via the undocumented --disable-test-no-pause configure command line option. Pausing tests and waiting for user input contradicts the goal of having automated test runs. Remove this feature. Update #3818.
* tests: Remove superfluous SMPTESTS defineSebastian Huber2019-11-121-9/+1
| | | | Update #3818.
* tests: Fix rtems_test_spin_until_next_tick()Sebastian Huber2018-12-072-15/+11
| | | | | | This bug surfaced due to sporadic failures in sptimecounter02. Adjust rtems_test_spin_for_ticks() to include the partial tick in the argument value.
* tests: Remove configure feature checksSebastian Huber2018-05-022-12/+6
| | | | Update #3409.
* tests: Use vprintk() in locked_printf()Sebastian Huber2018-01-191-1/+1
| | | | This avoids blocking output and the use of the floating-point unit.
* tests: Remove unused locked_printk()Sebastian Huber2018-01-192-23/+0
|
* tests: Use exponential backoff in locked_vprintf()Sebastian Huber2017-11-221-3/+19
| | | | | Without the exponential backoff a livelock was observed on a QorIQ P2020 with test SMP 5.
* tests: Use ld to map (wrap) printf, puts and putchar to tester functions.Chris Johns2017-11-112-41/+0
| | | | | | | | | - Remove the macro defines and the need for tmacro.h by remapping the symbols using ld's wrap option. - Remove FLUSH_OUTPUT, it was empty. - Move rtems_test_exit to libmisc/testsupport as a function. Update #3199.
* tests: Use rtems_test_begin and rtems_test_end.Chris Johns2017-11-111-43/+2
| | | | | | Add a tests enum and move all test banner test to the library in libmisc. Update #3199.
* tests: Remove TEST_INITSebastian Huber2017-10-281-1/+1
| | | | | | | | The TEST_EXTERN is a used only by the system.h style tests and they use CONFIGURE_INIT appropriately. Update #3170. Update #3199.
* tests: Use rtems_test_printer in generalSebastian Huber2017-10-283-180/+51
| | | | | Update #3170. Update #3199.
* tests: Move rtems_test_printer definitionSebastian Huber2017-10-281-2/+0
| | | | | | | Statically initialize it to use printk(). Update #3170. Update #3199.
* testsuite: Use printk for all test output where possible.Chris Johns2017-10-232-134/+88
| | | | | | | | | | - 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.
* tests: Use more integer print functionsSebastian Huber2017-07-181-0/+14
| | | | | | This avoids an unnecessary use of the floating point unit. Update #3076.
* Merge tmacros.h PRIxxx constants from testsuites/ into <rtems/inttypes.h>Joel Sherrill2017-04-181-41/+1
| | | | | | | This completes the initial creation of rtems/inttypes.h based on all existing PRIxxx definitions contained in RTEMS Project owned code. closes #2983.
* testsuite: Add a common test configuration. Fix configure.ac and Makefile.am ↵Chris Johns2017-04-041-3/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* tmacros.h: Fix print definesSebastian Huber2017-02-141-4/+4
|
* testsuite: Add test states to the testsuit configuration files.Chris Johns2016-12-071-3/+29
| | | | | | | | | | | | | | | | Change the testsuite configuration files to hold state information about a test. The states are: exclude - Do not build the test expected-fail - The test is expected to fail indeterminate - The test may pass or may fail A message is printed just after the test's BEGIN message to indicate there is a special state for the test. No state message means the test is expected to pass. This support requires tests are correctly written to the use standard support to begin and end a test.
* Make rtems/print.h independent of rtems/bspIo.hSebastian Huber2016-06-221-0/+1
|
* testsuites: Fix locked_printf() test printerSebastian Huber2016-05-261-11/+3
|
* testsuite: Fix printk formating warning.Chris Johns2016-05-251-3/+3
|
* cpukit, testsuite: Add rtems_printf and rtems_printer support.Chris Johns2016-05-253-28/+32
| | | | | | | | | | | | | | | | | | | This change adds rtems_printf and related functions and wraps the RTEMS print plugin support into a user API. All references to the plugin are removed and replaced with the rtems_printer interface. Printk and related functions are made to return a valid number of characters formatted and output. The function attribute to check printf functions has been added to rtems_printf and printk. No changes to remove warrnings are part of this patch set. The testsuite has been moved over to the rtems_printer. The testsuite has a mix of rtems_printer access and direct print control via the tmacros.h header file. The support for begink/endk has been removed as it served no purpose and only confused the code base. The testsuite has not been refactored to use rtems_printf. This is future work.
* Remove AVR portJoel Sherrill2016-01-191-3/+1
| | | | closes #2443.
* score: Replace _API_Mutex_Is_locked()Sebastian Huber2015-05-271-26/+19
| | | | Replace _API_Mutex_Is_locked() with _API_Mutex_Is_owner().
* Add test assertion for allocator mutex being unlockedJoel Sherrill2015-04-141-1/+54
| | | | | | | | | | The Allocator Mutex should not be locked outside a tested service call. In an SMP test or heavily multithreaded test, this is possible since another thread could have the lock for an extended period of time but this is not the norm for the tests. updates 2319.
* testsuites/.../tmacros.h: Add parentheses to fix warningJoel Sherrill2014-11-241-2/+2
|
* libtests/malloctest/init.c: Fix warningJoel Sherrill2014-11-201-5/+27
| | | | | | | posix_memalign() is prototyped to take a non-NULL parameter. But our test is deliberately passing one in. With the -Wnon-null warning flag enabled, we will always get warnings on this test unless we disable that warning for this single test case.
* testsuites: Move include for C++ compatibilitySebastian Huber2014-10-231-3/+2
|
* Use correct prototype of benchmark_timer_read()Joel Sherrill2014-09-161-3/+1
| | | | | | | | | | | | | | This change starts with removing the effectively empty file timerdrv.h. The prototypes for benchmark_timer_XXX() were in btimer.h which was not universally used. Thus every use of timerdrv.h had to be changed to btimer.h. Then the prototypes for benchmark_timer_read() had to be adjusted to return benchmark_timer_t rather than int or uint32_t. I took this opportunity to also correct the file headers to separate the copyright from the file description comments which is needed to ensure the copyright isn't propagated into Doxygen output.
* tests: Add locked_printf_plugin()Sebastian Huber2014-05-072-18/+49
| | | | Add locked_vprintf(). Return an int just like printf(), etc.
* Change all references of rtems.com to rtems.org.Chris Johns2014-03-218-8/+8
|
* sapi: Add <rtems/test.h>Sebastian Huber2014-03-172-0/+17
| | | | | | Provide support functions to print the begin/end of test message. Provide a test fatal extension to print out profiling reports in the future.
* testsuites: Add TESTS_USE_PRINTFSebastian Huber2014-02-121-0/+16
| | | | | Make it possible to use normal printf() if requested to allow output of floating point numbers.
* score: Create thread implementation headerSebastian Huber2013-07-261-2/+1
| | | | | | | | Move implementation specific parts of thread.h and thread.inl into new header file threadimpl.h. The thread.h contains now only the application visible API. Remove superfluous header file includes from various files.
* testsuites: Include missing header filesSebastian Huber2013-07-221-0/+1
|
* score: Add and use _Thread_Dispatch_is_enabled()Sebastian Huber2013-06-141-3/+3
| | | | | Delete _Thread_Dispatch_in_critical_section() and _Thread_Is_dispatching_enabled().
* smptests: Use priority ceiling for locked printSebastian Huber2013-05-311-1/+2
| | | | | In case the printf() blocks on a semaphore it was possible to end up in a livelock.
* Remove All CVS Id Strings Possible Using a ScriptJoel Sherrill2012-05-119-18/+0
| | | | | | | | | | | | Script does what is expected and tries to do it as smartly as possible. + remove occurrences of two blank comment lines next to each other after Id string line removed. + remove entire comment blocks which only exited to contain CVS Ids + If the processing left a blank line at the top of a file, it was removed.
* 2011-03-02 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsépius2012-03-021-0/+1
| | | | * support/src/spin.c: Include "test_support.h".
* Use alternative APISebastian Huber2012-02-172-57/+0
| | | | | | Replaced Allocate_majority_of_workspace() with rtems_workspace_allocate(). Replaced Allocate_majority_of_heap() with rtems_heap_greedy_allocate().
* 2011-12-11 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2011-12-113-6/+27
| | | | | | | | * support/include/tmtests_empty_function.h: New. * support/src/tmtests_empty_function.c, support/src/tmtests_support.c: Include "tmtests_empty_function.h". Remove local decls (Missing prototypes).
* 2011-11-04 Sebastian Huber <sebastian.huber@embedded-brains.de>Sebastian Huber2011-11-041-2/+2
| | | | * support/src/test_support.c: Avoid magic numbers.
* 2011-10-25 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2011-10-251-9/+0
| | | | | * support/include/tmacros.h: Remove fatal_posix_service_pointer_minus_one (unused).
* 2011-10-13 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2011-10-131-0/+30
| | | | | * support/include/primode.h: New. * Makefile.am: Add support/include/primode.h
* 2011-09-30 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2011-09-301-4/+0
| | | | * support/include/tmacros.h: Remove PRItime_t.
* 2011-09-30 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2011-09-301-0/+30
| | | | | * support/include/pritime.h: New. * Makefile.am: Add support/include/pritime.h
* 2011-07-29 Jennifer Averett <Jennifer.Averett@OARcorp.com>Jennifer Averett2011-07-291-1/+1
| | | | * support/include/test_support.h: Fixed incorrect name in prototype.
* 2011-07-01 Jennifer Averett <Jennifer.Averett@OARcorp.com>Jennifer Averett2011-07-011-2/+10
| | | | | | * support/include/tmacros.h: Disable the check for dispatch disable level for SMP tests. Another CPU may be inside RTEMS by the time these checks are being done which would result in false failures.
* 2011-06-28 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2011-06-282-1/+97
| | | | | * configure.ac, support/include/test_support.h: * support/src/locked_print.c: New file.