summaryrefslogtreecommitdiffstats
path: root/spec/build
diff options
context:
space:
mode:
authorKinsey Moore <kinsey.moore@oarcorp.com>2024-02-19 18:19:12 -0600
committerJoel Sherrill <joel@rtems.org>2024-02-26 11:07:53 -0600
commitcd12bf025d44b8ead0ff52cb62923bb7c8eb178b (patch)
treed5a079ed890e067fcde6438936dd82b96d9eba64 /spec/build
parentcpukit/jffs2: Handle used empty file system (diff)
downloadrtems-cd12bf025d44b8ead0ff52cb62923bb7c8eb178b.tar.bz2
testsuites/jffs2: Add test for empty NOR FS
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.
Diffstat (limited to 'spec/build')
-rw-r--r--spec/build/testsuites/fstests/fsjffs2empty01.yml21
-rw-r--r--spec/build/testsuites/fstests/grp.yml2
2 files changed, 23 insertions, 0 deletions
diff --git a/spec/build/testsuites/fstests/fsjffs2empty01.yml b/spec/build/testsuites/fstests/fsjffs2empty01.yml
new file mode 100644
index 0000000000..44d3f5fa23
--- /dev/null
+++ b/spec/build/testsuites/fstests/fsjffs2empty01.yml
@@ -0,0 +1,21 @@
+SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
+build-type: test-program
+cflags: []
+copyrights:
+- Copyright (C) 2020 embedded brains GmbH & Co. KG
+cppflags: []
+cxxflags: []
+enabled-by: true
+features: c cprogram
+includes:
+- testsuites/fstests/jffs2_support
+ldflags: []
+links: []
+source:
+- testsuites/fstests/fsjffs2empty01/init.c
+stlib: []
+target: testsuites/fstests/fsjffs2empty01.exe
+type: build
+use-after: []
+use-before:
+- jffs2
diff --git a/spec/build/testsuites/fstests/grp.yml b/spec/build/testsuites/fstests/grp.yml
index 6c4d1a6fc9..a550ccbf9a 100644
--- a/spec/build/testsuites/fstests/grp.yml
+++ b/spec/build/testsuites/fstests/grp.yml
@@ -52,6 +52,8 @@ links:
- role: build-dependency
uid: fsimfsgeneric01
- role: build-dependency
+ uid: fsjffs2empty01
+- role: build-dependency
uid: fsjffs2gc01
- role: build-dependency
uid: fsnofs01