Skip to contentSkip to conversation

erofs-utils: tests: register chunk-based inode test

PATCH In review Yifan Zhao 2 participants 3 messages Jun 26

lore
Share & tools
lore

Yifan Zhao

author
#0 lore raw

PATCH 1/2 erofs-utils: tests: register chunk-based inode test

Assisted-by Codex:GPT-5.5

---
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
index cd1971a..a1e31fb 100644
@@ -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
index 3b2a059..f8ede34 100755
@@ -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
author
#1 lore raw

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
---
 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
index a1e31fb..3c41eb3 100644
@@ -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
new file mode 100644
index 0000000..34e059f
@@ -0,0 +1,2 @@
+QA output created by 032
+Silence is golden
Signature · 1 line
2.54.0
#2 lore raw
In reply to Yifan Zhao
Quoted 28 lines · Yifan Zhao
Assisted-by Codex:GPT-5.5

---
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
index cd1971a..a1e31fb 100644
@@ -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 +0 -0
index 3b2a059..f8ede34 100755

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