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

Gao Xiang <[email protected]> Fri, 26 Jun 2026 11:07:32 +0800
Newsgroups org.ozlabs.lists.linux-erofs
Message-ID <[email protected]>

On 2026/6/26 10:50, Yifan Zhao wrote:
> 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(-)
> 
> diff --git a/tests/Makefile.am b/tests/Makefile.am
> index cd1971a..a1e31fb 100644
> --- a/tests/Makefile.am
> +++ b/tests/Makefile.am
> @@ -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
>   
> diff --git a/tests/erofs/031 b/tests/erofs/031
> index 3b2a059..f8ede34 100755
> --- a/tests/erofs/031
> +++ b/tests/erofs/031
> @@ -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.

>   # SPDX-License-Identifier: MIT
>   #
>   # Test chunk-based mapping with shared chunks across inodes