summaryrefslogtreecommitdiffstats
path: root/testsuites/fstests (unfollow)
Commit message (Collapse)AuthorFilesLines
2024-02-26testsuites/jffs2: Add test for empty NOR FSKinsey Moore3-0/+262
This adds a test to very that remounting a completely used, but empty NOR JFFS2 filesystem is possible. Previously, this triggered an edge condition in the JFFS2 scan code that prevented remount of a correctly formed and uncorrupted filesystem.
2023-12-22testsuites/fstests: Add JFFS2 NAND support testsKinsey Moore2-0/+290
This adds a second set of JFFS2 tests running on top of a simulated NAND backend to ensure that interactions with delayed writes operate as expected.
2023-12-19fstests/tftpfs: Use rtems_test_run()Sebastian Huber1-56/+2
2023-09-26tests: Add header for RTEMS test printerSebastian Huber1-0/+1
The <rtems/test-info.h> header file is required for every RTEMS test program. Move the RTEMS test printer support to a dedicated header file <rtems/test-printer.h>. This removes an unnecessary dependency to the RTEMS printer support in <rtems/test-info.h>. Tests using the RTEMS Testing Framework no longer depend on the <rtems/printer.h>.
2023-05-20Update company nameSebastian Huber26-26/+26
The embedded brains GmbH & Co. KG is the legal successor of embedded brains GmbH.
2023-03-15cpukit/jffs2: Add support for NAND under JFFS2Kinsey Moore1-1/+1
This adds write buffer and bad block support required for JFFS2 operation on NAND devices. This also adds the minor modifications necessary for RTEMS support in the Linux header stubs and in wbuf.c. Memory and NOR backed applications should experience no difference in operation since they do not expose the callbacks required for write buffer support.
2023-03-14doxygen: Add groups for related test suitesSebastian Huber1-1/+1
2022-08-05testsuite: Fix warningsChris Johns1-1/+1
Updates #4662
2022-06-21TFTPFS: Fix test configuration for FP targetsSebastian Huber1-0/+2
The test uses snprintf(). Update #4666.
2022-06-21TFTPFS: Reduce test configurationSebastian Huber1-3/+2
Update #4666.
2022-06-21TFTPFS: Add testsFrank Kühndel5-0/+9475
Update #4666.
2022-04-12fstests/fsdosfsname01/create_image.sh: Manually change license to BSD-2Joel Sherrill1-3/+22
Updates #3053.
2022-04-12testsuites/fstests/*: Change license to BSD-2Joel Sherrill20-60/+438
Updates #3053.
2022-04-07testsuites/fstests/*: Change license to BSD-2Joel Sherrill40-117/+860
Updates #3053.
2022-03-10bsps/testsuites/: Scripted embedded brains header file clean upJoel Sherrill18-108/+0
Updates #4625.
2022-03-10testsuites/fstests/fsdosfsname01/create_files.cs: Convert to UNIX CR/LF.Joel Sherrill1-121/+121
This file had a mix of both DOS and UNIX CR/LF. Updates #4625.
2021-10-04testsuites/fstests: Fix uninitialized utimbuf structsAlex White2-2/+2
The utimbuf structs in fsimfsconfig01 and fsimfsconfig02 were being passed to utime uninitialized. This did not cause problems until utime was changed to use utimensat behind the scenes. Now that utimensat is called, the values of the utimbuf struct are checked, and EINVAL is set for invalid values. The utimebuf structs in these tests could contain invalid values since they are uninitialized. By zero-initializing the utimbuf structs, we ensure that they pass the checks in utimensat and that errno is set to the expected ENOTSUP.
2021-09-21build: Remove old build systemSebastian Huber2-731/+0
Close #3250. Close #4081.
2021-06-08fsnofs01/init.c: Check for ENOENT from utime().Joel Sherrill1-3/+6
The addition of the entire *utime*() family of functions resulted in this call returning ENOENT not ENXIO. This is better aligned with the POSIX definition of the methods.
2021-03-26libblock: Add rtems_bdbuf_peek()Christian Mauderer1-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
2020-10-15fsdosfsname01: Fix string truncation warningFrank Kühndel1-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
2020-04-16Canonicalize config.h includeSebastian Huber14-14/+14
Use the following variant which was already used by most source files: #ifdef HAVE_CONFIG_H #include "config.h" #endif
2020-03-13libio: Robust file descriptor reference countingSebastian Huber1-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.
2020-03-04imfs: Add IMFS_add_node()Sebastian Huber1-34/+172
Update #3894.
2020-03-03fstests/fsrename: Rename a file twiceSebastian Huber1-0/+29
2020-02-25libio: Add POSIX user environment pointer to TCBSebastian Huber6-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.
2020-02-04fstests/fsstatvfs: Include missing header fileSebastian Huber1-0/+1
2019-12-19config: CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORSSebastian Huber17-17/+17
Rename CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS into CONFIGURE_MAXIMUM_FILE_DESCRIPTORS. Update #3753.
2019-11-12fstests: Use tmacros.h instead of pmacros.hSebastian Huber16-17/+16
This avoids an extra include path. Update #3818.
2019-02-05fs: Add struct dirent::d_type supportSebastian Huber1-27/+62
2019-01-30build: Do not install test programsSebastian Huber1-3/+1
2019-01-07Fix format warningsSebastian Huber1-18/+18
2018-11-27dosfs: Fix device identifierSebastian Huber1-0/+41
Update #3358.
2018-10-12fsclose01: Fix uninitialized variable warningSebastian Huber1-1/+1
2018-10-10build: Remove local.amSebastian Huber1-1/+0
2018-10-10build: Directly reference libraries in testsSebastian Huber1-9/+9
Remove use of TMPINSTALL_FILES.
2018-08-15fsdosfssync01/init.c: Remove unused variableJoel Sherrill1-1/+0
2018-08-07tests: Avoid deprecated rtems_disk_io_initialize()Sebastian Huber3-10/+0
Update #3358.
2018-08-07ramdisk: Use rtems_blkdev_create()Sebastian Huber4-57/+7
Update #3358.
2018-06-14tools: Remove rtems-bin2cSebastian Huber1-1/+1
This tool is now included in the RTEMS tools repository. Close #3380.
2018-05-02tests: Remove configure feature checksSebastian Huber1-50/+0
Update #3409.
2018-04-30Drop executable permissions on .[ch] filesJoel Sherrill1-0/+0
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-11fstest/fsrfsbitmap01: Update RFS bitmap tests to test fixes.Chris Johns1-0/+19
Add tests to check the patches for this ticket exist and are fixed. Close #3089
2018-04-10testsuite/fstests: Merged nested Makefile.am files into one Makefile.amChris Johns97-1730/+702
This change is part of the testsuite Makefile.am reorganization. Update #3382
2018-04-04build: Remove EXTRA_DISTSebastian Huber1-6/+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-09fsclose01: Fix task mode, use attributeSebastian Huber1-1/+2
Update #1971.
2018-02-09fsclose01: Use floating-point taskSebastian Huber1-1/+1
The tmpfile() uses sprintf(). Update #1971.
2018-02-05fsclose01: Add tmpfile() test caseSebastian Huber2-3/+28
Close #1971.
2018-01-25Remove make preinstallChris Johns1-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.