mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
bump version to 2022.02.9
add miyoo_defconfig
This commit is contained in:
16
support/testing/tests/package/sample_bmap_tools.sh
Executable file
16
support/testing/tests/package/sample_bmap_tools.sh
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/bin/sh
|
||||
# simple test which creates a dummy file system image, then use bmaptool create
|
||||
# and bmaptool copy to copy it to another file
|
||||
|
||||
set -xeu
|
||||
|
||||
# create the necessary test files
|
||||
dd if=/dev/zero of=disk.img bs=2M count=1
|
||||
mkfs.ext4 disk.img
|
||||
fallocate -d disk.img
|
||||
dd if=/dev/zero of=copy.img bs=2M count=1
|
||||
|
||||
# do a test copy of the file system image
|
||||
bmaptool create -o disk.img.bmap disk.img
|
||||
bmaptool copy disk.img copy.img
|
||||
cmp disk.img copy.img
|
||||
Reference in New Issue
Block a user