From: Cyril Hrubis <chrubis@suse.cz>
To: Petr Vorel <pvorel@suse.cz>
Cc: Subramanya Swamy <subramanya.swamy.linux@gmail.com>, ltp@lists.linux.it
Subject: Re: [LTP] [PATCH v3 1/1] isofs.sh: Test genisoimage, xorriso and mksisofs
Date: Mon, 29 Jan 2024 17:42:12 +0100 [thread overview]
Message-ID: <ZbfVZIxK779HhqWY@yuki> (raw)
In-Reply-To: <20240129092232.599010-1-pvorel@suse.cz>
Hi!
> @@ -50,10 +39,33 @@ do_test()
> local make_file_sys_dir="$PWD/files"
> local mkisofs_opt mount_opt
>
> + case $1 in
> + 1) MKISOFS_CMD="mkisofs"
> + HFSOPT="-hfs -D"
> + GREPOPT="mkisofs";;
> + 2) MKISOFS_CMD="genisoimage"
> + HFSOPT="-hfsplus -D -hfs -D"
> + GREPOPT="genisoimage";;
> + 3) MKISOFS_CMD="xorrisofs"
> + HFSOPT="-hfsplus -D"
> + GREPOPT="xorriso";;
> + esac
> +
> + tst_res TINFO "Testing $MKISOFS_CMD"
^
Maybe this should be after the two TCONF messages so that
we do not print:
INFO: "Testing foo"
CONF: "Missing foo"
Other than that it does look fine, as long as it's well tested feel free
to add this for the release.
Reviewed-by: Cyril Hrubis
> + if ! tst_cmd_available $MKISOFS_CMD; then
> + tst_res TCONF "Missing '$MKISOFS_CMD'"
> + return
> + fi
> +
> + if ! $MKISOFS_CMD 2>&1 | head -n 2 | grep -q "$GREPOPT"; then
> + tst_res TCONF "'$MKISOFS_CMD' is a symlink to another tool"
> + return
> + fi
> +
> mkdir -p -m 777 $mnt_point
> mkdir -p $make_file_sys_dir
>
> - # Generated directories and files
> mkdir -p $make_file_sys_dir
> gen_fs_tree "$make_file_sys_dir" 1
>
> @@ -62,15 +74,16 @@ do_test()
> for mkisofs_opt in \
> " " \
> "-J" \
> - "-hfs -D" \
> + "$HFSOPT" \
> " -R " \
> "-R -J" \
> "-f -l -D -J -allow-leading-dots -R" \
> - "-allow-lowercase -allow-multidot -iso-level 3 -f -l -D -J -allow-leading-dots -R"
> + "-allow-lowercase -allow-multidot -iso-level 3 -f -l -D -J \
> + -allow-leading-dots -R"
> do
> rm -f isofs.iso
> - EXPECT_PASS $MKISOFS_CMD -o isofs.iso -quiet $mkisofs_opt $make_file_sys_dir 2\> /dev/null \
> - || continue
> + EXPECT_PASS $MKISOFS_CMD -o isofs.iso -quiet $mkisofs_opt \
> + $make_file_sys_dir 2\> /dev/null || continue
>
> for mount_opt in \
> "loop" \
> --
> 2.43.0
>
--
Cyril Hrubis
chrubis@suse.cz
--
Mailing list info: https://lists.linux.it/listinfo/ltp
next prev parent reply other threads:[~2024-01-29 16:42 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-29 9:22 [LTP] [PATCH v3 1/1] isofs.sh: Test genisoimage, xorriso and mksisofs Petr Vorel
2024-01-29 16:42 ` Cyril Hrubis [this message]
2024-01-29 17:05 ` Petr Vorel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZbfVZIxK779HhqWY@yuki \
--to=chrubis@suse.cz \
--cc=ltp@lists.linux.it \
--cc=pvorel@suse.cz \
--cc=subramanya.swamy.linux@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox