summaryrefslogtreecommitdiffstats
path: root/testsuites/fstests (follow)
Commit message (Collapse)AuthorAgeFilesLines
* libblock: Add rtems_bdbuf_peek()Christian Mauderer2021-03-261-0/+3
| | | | | | | | Adds a peek function that allows (for example) a file system to suggest the next blocks that should be used for read ahead. This can increase the read speed of fragmented files. Update #3689
* fsdosfsname01: Fix string truncation warningFrank Kühndel2020-10-151-6/+7
| | | | | | | | | | | | | | | This patch fixes a compiler warning: ../../../testsuites/fstests/fsdosfsname01/init.c:430:19: warning: '%s' directive output may be truncated writing up to 6424 bytes into a region of size 257 [-Wformat-truncation=] The buffer 'dirname' is exactly large enough so that no truncation can ever occur. Using the return value of snprintf() is an official supported way to suppress the warning. I considered the comment of Joel Sherrill about not replacing snprintf(): https://lists.rtems.org/pipermail/devel/2020-September/062113.html
* Canonicalize config.h includeSebastian Huber2020-04-1614-14/+14
| | | | | | | | Use the following variant which was already used by most source files: #ifdef HAVE_CONFIG_H #include "config.h" #endif
* libio: Robust file descriptor reference countingSebastian Huber2020-03-131-14/+48
| | | | | | | | | | | | There was a race conditon in the reference counting of file descriptors during a close() operation. After the call to the close handler, the rtems_libio_free() function cleared the flags to zero. However, at this point in time there may still exist some holders of the file descriptor. With RTEMS_DEBUG enabled this could lead to failed assertions in rtems_libio_iop_drop(). Change the code to use only atomic read-modify-write operations on the rtems_libio_iop::flags.
* imfs: Add IMFS_add_node()Sebastian Huber2020-03-041-34/+172
| | | | Update #3894.
* fstests/fsrename: Rename a file twiceSebastian Huber2020-03-031-0/+29
|
* libio: Add POSIX user environment pointer to TCBSebastian Huber2020-02-256-7/+0
| | | | | | | | | | The IO library used a POSIX key to store an optional POSIX user environment pointer. This pulled in the POSIX keys support in every application configuration. Add a user environment pointer to the thread control block (TCB) instead. Applications which do not need the POSIX user environment will just get an overhead of one pointer per thread. Close #3882.
* fstests/fsstatvfs: Include missing header fileSebastian Huber2020-02-041-0/+1
|
* config: CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORSSebastian Huber2019-12-1917-17/+17
| | | | | | | Rename CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS into CONFIGURE_MAXIMUM_FILE_DESCRIPTORS. Update #3753.
* fstests: Use tmacros.h instead of pmacros.hSebastian Huber2019-11-1216-17/+16
| | | | | | This avoids an extra include path. Update #3818.
* fs: Add struct dirent::d_type supportSebastian Huber2019-02-051-27/+62
|
* build: Do not install test programsSebastian Huber2019-01-301-3/+1
|
* Fix format warningsSebastian Huber2019-01-071-18/+18
|
* dosfs: Fix device identifierSebastian Huber2018-11-271-0/+41
| | | | Update #3358.
* fsclose01: Fix uninitialized variable warningSebastian Huber2018-10-121-1/+1
|
* build: Remove local.amSebastian Huber2018-10-101-1/+0
|
* build: Directly reference libraries in testsSebastian Huber2018-10-101-9/+9
| | | | Remove use of TMPINSTALL_FILES.
* fsdosfssync01/init.c: Remove unused variableJoel Sherrill2018-08-151-1/+0
|
* tests: Avoid deprecated rtems_disk_io_initialize()Sebastian Huber2018-08-073-10/+0
| | | | Update #3358.
* ramdisk: Use rtems_blkdev_create()Sebastian Huber2018-08-074-57/+7
| | | | Update #3358.
* tools: Remove rtems-bin2cSebastian Huber2018-06-141-1/+1
| | | | | | This tool is now included in the RTEMS tools repository. Close #3380.
* tests: Remove configure feature checksSebastian Huber2018-05-021-50/+0
| | | | Update #3409.
* Drop executable permissions on .[ch] filesJoel Sherrill2018-04-301-0/+0
|
* configure: Add subdir-objects to all automake flags.Chris Johns2018-04-111-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.
* fstest/fsrfsbitmap01: Update RFS bitmap tests to test fixes.Chris Johns2018-04-111-0/+19
| | | | | | Add tests to check the patches for this ticket exist and are fixed. Close #3089
* testsuite/fstests: Merged nested Makefile.am files into one Makefile.amChris Johns2018-04-1097-1730/+702
| | | | | | This change is part of the testsuite Makefile.am reorganization. Update #3382
* build: Remove EXTRA_DISTSebastian Huber2018-04-041-6/+0
| | | | | A "make dist" is not supported. So, it makes no sense to have pure "make dist" related stuff in the Makefile.am.
* fsclose01: Fix task mode, use attributeSebastian Huber2018-02-091-1/+2
| | | | Update #1971.
* fsclose01: Use floating-point taskSebastian Huber2018-02-091-1/+1
| | | | | | The tmpfile() uses sprintf(). Update #1971.
* fsclose01: Add tmpfile() test caseSebastian Huber2018-02-052-3/+28
| | | | Close #1971.
* Remove make preinstallChris Johns2018-01-251-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* fstests: Use floating-point taskSebastian Huber2018-01-191-0/+1
| | | | The fstests use snprintf().
* fstests: Use floating-point taskSebastian Huber2018-01-191-0/+1
| | | | The fstests use snprintf().
* dosfs: Allow creating a file with similar name.Christian Mauderer2017-12-071-0/+25
| | | | | | | | If there is already a file with a long file name it isn't possible to create a second file which has a name that ends on the first files name (for example ets.beam and sets.beam). This patch fixes that. Update #3258.
* dosfs: Fix files with same name as volume name.Christian Mauderer2017-12-051-1/+44
| | | | | | | Take care that a file in the root directory with the same name as the volume name can be found. Update #3257.
* fsjffs2gc01: Fix sporadic test failuresSebastian Huber2017-11-061-0/+8
|
* tests: Use simple console driverSebastian Huber2017-11-0616-16/+16
| | | | | Update #3170. Update #3199.
* tests: Remove TEST_INITSebastian Huber2017-10-2819-38/+0
| | | | | | | | The TEST_EXTERN is a used only by the system.h style tests and they use CONFIGURE_INIT appropriately. Update #3170. Update #3199.
* tests: Remove obsolete TESTS_USE_PRINTKSebastian Huber2017-10-283-3/+0
| | | | | Update #3170. Update #3199.
* testsuite: Use printk for all test output where possible.Chris Johns2017-10-2319-0/+38
| | | | | | | | | | - 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.
* libio: Use FIFO for iop free listSebastian Huber2017-09-151-4/+27
| | | | Update #3136.
* libio: Add hold/drop iop referenceSebastian Huber2017-09-156-0/+560
| | | | | | | Check iop reference count in close() and return -1 with errno set to EBUSY in case the file descriptor is still in use. Update #3132.
* fstests/fsimfsgeneric01: Fix test assertSebastian Huber2017-09-141-2/+1
|
* dosfs: Support a cluster size of 64KiBSebastian Huber2017-09-061-0/+28
| | | | Close #3003.
* Fix IO control request typeSebastian Huber2017-07-281-1/+1
|
* tests: Use floating point taskSebastian Huber2017-07-188-0/+13
| | | | | | | These tests directly or indirectly use fprintf(), etc. which may use the floating point unit. Update #3076.
* testsuite: Add a common test configuration. Fix configure.ac and Makefile.am ↵Chris Johns2017-04-043-30/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* dosfs: Fix file name searchSebastian Huber2017-03-161-1/+10
| | | | | | | 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.
* dosfs: Fix fat_file_write()Sebastian Huber2017-03-167-6/+172
| | | | | | | | 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.
* dosfs: Fix msdos_utf8_normalize_and_fold()Sebastian Huber2017-03-161-3/+20
| | | | | | | | 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.