erofs-utils: tests: register chunk-based inode test
PATCH 1/2 erofs-utils: tests: register chunk-based inode test
Assisted-by Codex:GPT-5.5
Signed-off-by Yifan Zhao <[email protected]>
---
maybe just squash it with previous patch...
tests/Makefile.am | 3 +++ tests/erofs/031 | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-)
tests/Makefile.am +3 -0
@@ -129,6 +129,9 @@ TESTS += erofs/029 # 030 - regression test for NULL dentry on hardlink-to-root tar entry TESTS += erofs/030 +# 031 - test chunk-based inodes +TESTS += erofs/031 + # NEW TEST CASE HERE # TESTS += erofs/999
tests/erofs/031 +1 -1
@@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # SPDX-License-Identifier: MIT # # Test chunk-based mapping with shared chunks across inodes
Signature · 1 line
2.54.0
PATCH 2/2 erofs-utils: tests: add multi-device chunk read regression test
Unfortunately, erofs-utils currently lacks image injection support, so the test has to hard-code the relevant offsets.
Assisted-by Codex:GPT-5.5
Signed-off-by Yifan Zhao <[email protected]>
--- tests/Makefile.am | 3 + tests/erofs/032 | 135 ++++++++++++++++++++++++++++++++++++++++++++ tests/erofs/032.out | 2 + 3 files changed, 140 insertions(+) create mode 100755 tests/erofs/032 create mode 100644 tests/erofs/032.out
tests/Makefile.am +3 -0
@@ -132,6 +132,9 @@ TESTS += erofs/030 # 031 - test chunk-based inodes TESTS += erofs/031 +# 032 - regression test for buffered reads across device chunks +TESTS += erofs/032 + # NEW TEST CASE HERE # TESTS += erofs/999
tests/erofs/032 new file +135 -0
135 lines not on this page · raw message
tests/erofs/032.out new file +2 -0
@@ -0,0 +1,2 @@ +QA output created by 032 +Silence is golden
Signature · 1 line
2.54.0
Quoted 28 lines · Yifan Zhao
Assisted-by Codex:GPT-5.5Signed-off-by Yifan Zhao <[email protected]>---
maybe just squash it with previous patch...tests/Makefile.am | 3 +++ tests/erofs/031 | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-)tests/Makefile.am +3
-0@@ -129,6 +129,9 @@ TESTS += erofs/029 # 030 - regression test for NULL dentry on hardlink-to-root tar entry TESTS += erofs/030 +# 031 - test chunk-based inodes +TESTS += erofs/031 + # NEW TEST CASE HERE # TESTS += erofs/999tests/erofs/031 +0
-0
tests/erofs/031 line 1
Quoted 2 lines
tests/erofs/031 +1
-1@@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash
It shouldn't be !/bin/bash since other platforms which doesn't have bash will skip this and _require_bash is used to switch to bash mode.
Quoted 3 lines
tests/erofs/031 +0
-0# SPDX-License-Identifier: MIT # # Test chunk-based mapping with shared chunks across inodes