summaryrefslogtreecommitdiffstats
path: root/testsuites/samples (unfollow)
Commit message (Collapse)AuthorFilesLines
2018-05-02tests: Remove configure feature checksSebastian Huber1-26/+1
Update #3409.
2018-04-11configure: Add subdir-objects to all automake flags.Chris Johns1-1/+1
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-10testsuite/samples: Merged nested Makefile.am files into one Makefile.amChris Johns22-372/+168
This change is part of the testsuite Makefile.am reorganization. Update #3382
2018-04-04build: Remove EXTRA_DISTSebastian Huber1-3/+0
A "make dist" is not supported. So, it makes no sense to have pure "make dist" related stuff in the Makefile.am.
2018-02-05termios: Remove obsolete configuration optionsSebastian Huber1-6/+0
Update #2843.
2018-01-25Remove make preinstallChris Johns3-0/+4
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-22cdtest: Increase stack sizeSebastian Huber1-0/+3
2017-11-11tests: Use rtems_test_begin and rtems_test_end.Chris Johns1-2/+2
Add a tests enum and move all test banner test to the library in libmisc. Update #3199.
2017-11-09pppd/Makefile.am: Add support/includeJoel Sherrill1-0/+2
2017-11-07tests: Use normal console for user input testsSebastian Huber3-3/+3
2017-11-06tests: Use <tmacros.h> in all testsSebastian Huber9-60/+25
Update #3170. Update #3199.
2017-11-06tests: Use simple console driverSebastian Huber13-13/+13
Update #3170. Update #3199.
2017-11-02tests: Use printf() instead of fprintf()Sebastian Huber1-25/+13
Update #3170. Update #3199.
2017-10-28tests: Remove TEST_INITSebastian Huber10-20/+0
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-28tests: Use rtems_print_printer_fprintf_putc()Sebastian Huber5-5/+5
Use rtems_print_printer_fprintf_putc() instead of rtems_print_printer_printf() to output via rtems_putc(). Update #3170. Update #3199.
2017-10-28tests: Move rtems_test_printer definitionSebastian Huber5-5/+0
Statically initialize it to use printk(). Update #3170. Update #3199.
2017-10-23testsuite: Use printk for all test output where possible.Chris Johns10-0/+20
- 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-08-24samples/fileio: Give command availability hintSebastian Huber1-3/+7
Close #3088.
2017-07-18tests: Use floating point taskSebastian Huber5-0/+9
These tests directly or indirectly use fprintf(), etc. which may use the floating point unit. Update #3076.
2017-04-04testsuite: Add a common test configuration. Fix configure.ac and Makefile.am ↵Chris Johns2-16/+22
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-03-03cdtest: Print begin of test only onceSebastian Huber1-2/+0
2016-12-09cdtest: Print proper begin/end of test messagesSebastian Huber2-28/+56
2016-12-09cdtest: Add std::runtime_error() test caseChris Johns1-15/+26
Update #2830.
2016-09-19tests: CONFIGURE_USE_DEVFS_AS_BASE_FILESYSTEMSebastian Huber1-1/+0
Avoid unnecessary use of CONFIGURE_USE_DEVFS_AS_BASE_FILESYSTEM.
2016-06-22Move printer initialization to separate headerSebastian Huber1-0/+1
The RTEMS print user need to know nothing about a particular printer implementation. In particular get rid of the <stdio.h> include which would be visible via <rtems.h>.
2016-06-22Make rtems/print.h independent of rtems/bspIo.hSebastian Huber1-0/+1
2016-06-16samples/base_mp/apptask.c: Fix warning and clean upJoel Sherrill1-12/+11
2016-05-26testsuite: Fix networking samples to use the RTEMS printer.Chris Johns2-0/+6
2016-05-25cpukit, testsuite: Add rtems_printf and rtems_printer support.Chris Johns3-0/+6
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.
2016-03-29samples/base_mp: Check directive statusSebastian Huber1-1/+5
2016-01-11score: Introduce Thread_Entry_informationSebastian Huber1-7/+4
This avoids potential dead code in _Thread_Handler(). It gets rid of the dangerous function pointer casts. Update #2514.
2015-06-22rtems: Add rtems_interrupt_local_disable|enable()Sebastian Huber2-0/+5
Add rtems_interrupt_local_disable|enable() as suggested by Pavel Pisa to emphasize that interrupts are only disabled on the current processor. Do not define the rtems_interrupt_disable|enable|flash() macros and functions on SMP configurations since they don't ensure system wide mutual exclusion.
2015-03-24samples/minimum/init.c: Add cast to avoid warningJoel Sherrill1-1/+1
2015-03-17testsuites/samples/minimum/init.c: Notepads no longer need to be disabledJoel Sherrill1-7/+0
They are disabled by default as they are deprecated.
2015-02-12IMFS: Add fine grained configurationSebastian Huber1-3/+0
Remove miniIMFS. Statically initialize the root IMFS. Add configuration options to disable individual features of the root IMFS, e.g. o CONFIGURE_IMFS_DISABLE_CHOWN, o CONFIGURE_IMFS_DISABLE_FCHMOD, o CONFIGURE_IMFS_DISABLE_LINK, o CONFIGURE_IMFS_DISABLE_MKNOD, o CONFIGURE_IMFS_DISABLE_MOUNT, o CONFIGURE_IMFS_DISABLE_READLINK, o CONFIGURE_IMFS_DISABLE_RENAME, o CONFIGURE_IMFS_DISABLE_RMNOD, o CONFIGURE_IMFS_DISABLE_SYMLINK, o CONFIGURE_IMFS_DISABLE_UNMOUNT, and o CONFIGURE_IMFS_DISABLE_UTIME.
2015-01-20libnetworking: Fix close of active socketsSebastian Huber1-1/+4
Send a special event to notify tasks waiting for a socket state change in case this socket gets closed. This prevents a use after free. Close #785.
2014-12-16Delete CONFIGURE_USE_IMFS_AS_BASE_FILESYSTEMSebastian Huber2-3/+0
This define was superfluous, undocumented and used inconsistently.
2014-12-05Update bug report URLSebastian Huber1-1/+1
2014-11-21Delete or rename MIN/MAX macros and definesSebastian Huber1-4/+1
Include <sys/param.h> if necessary to get the MIN()/MAX() macros.
2014-11-20shell: Do chroot() after successful loginSebastian Huber1-1/+7
2014-11-20samples/fileio: Use unlimited objectsSebastian Huber1-8/+1
2014-11-20samples/fileio: Fix warningSebastian Huber1-0/+2
2014-11-20shell: Use crypt_r() in rtems_shell_login_check()Sebastian Huber1-4/+9
Use '*" to disable shell login instead of '!' according to the Linux man page. Use getpwnam_r() instead of getpwnam(). Do not access the user environment directly. Update the user environment only after a successful login check.
2014-10-13nsecs/init.c: Use long to avoid overflow on 16-bit targetsJoel Sherrill1-2/+3
2014-10-09samples/base_sp: Fix printf() warningJoel Sherrill1-2/+3
2014-10-09samples/unlimited: Fix printf() warning and clean upJoel Sherrill5-24/+33
2014-09-30pppd: Fix warningsSebastian Huber1-3/+1
2014-09-01samples/iostream: Produce proper begin/end messageSebastian Huber2-4/+4
2014-06-11samples/pppd: Fix extra drivers initializerSebastian Huber1-1/+1
2014-05-22testsuite: Add a user keypress to start pppd.Chris Johns1-0/+22
Allow the test to run and pass when automatic testing.