]> git.ipfire.org Git - thirdparty/util-linux.git/commit
tests: mkfs-endianness test uses prepared test data
authorMasami Ichikawa <masami256@gmail.com>
Tue, 8 Sep 2020 05:19:32 +0000 (14:19 +0900)
committerMasami Ichikawa <masami256@gmail.com>
Wed, 9 Sep 2020 00:10:58 +0000 (09:10 +0900)
commit9c84873186b1f0e5b70ebff6895d155b676a0cb0
treede4e6fe69ea8728f6873e44adaa44fb1a65b5b40
parent933f095feb6c695e02c9989d091c76cc1b8d6d4c
tests: mkfs-endianness test uses prepared test data

Commit 7b54f05d6b7124c23bff3bc1b8310231c8a2e131 added iflag=fullblock
option, it works fine with coreutils's dd but macOS's dd doesn't support
iflag option then test failed on macOS[1].

This commit added prepared test data for test to not use dd command to
avoid dd command difference.

tested on raspberry pi3
$ sudo sh -c 'for i in $(seq 1 500); do taskset -c 0 ./ts/cramfs/mkfs-endianness ;  done' | grep FAILED | wc -l
0

tested on macOS
$ sudo sh -c 'for i in $(seq 1 500); do ./ts/cramfs/mkfs-endianness ;  done' | grep FAILED | wc -l
       0

[1]https://travis-ci.org/github/karelzak/util-linux/jobs/723642222#L3907

Signed-off-by: Masami Ichikawa <masami256@gmail.com>
tests/ts/cramfs/mkfs-endianness
tests/ts/cramfs/mkfs-endianness_testdata_a [new file with mode: 0644]
tests/ts/cramfs/mkfs-endianness_testdata_b [new file with mode: 0644]