-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c2a9c42
commit 535c3b1
Showing
2 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package: dosfstools | ||
|
||
essential: | ||
- dosfstools_copyright | ||
|
||
slices: | ||
bins: | ||
essential: | ||
- libc6_libs | ||
contents: | ||
/usr/sbin/dosfsck: | ||
/usr/sbin/dosfslabel: | ||
/usr/sbin/fatlabel: | ||
/usr/sbin/fsck.fat: | ||
/usr/sbin/fsck.msdos: | ||
/usr/sbin/fsck.vfat: | ||
/usr/sbin/mkdosfs: | ||
/usr/sbin/mkfs.fat: | ||
/usr/sbin/mkfs.msdos: | ||
/usr/sbin/mkfs.vfat: | ||
|
||
copyright: | ||
contents: | ||
/usr/share/doc/dosfstools/copyright: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
summary: Integration tests for dosfstools | ||
|
||
execute: | | ||
# Chisel a minimum number of slices to give us a runnable system that we can | ||
# test in. | ||
rootfs="$(install-slices dosfstools_bins)" | ||
# create a test image | ||
dd if=/dev/zero of="${rootfs}/test.img" bs=1M count=250 | ||
# format the test image as fat | ||
chroot "${rootfs}" mkfs.fat test.img | ||
# check that the format was fine | ||
chroot "${rootfs}" fsck.fat test.img | grep "0 files" | ||
# change the label of the image | ||
chroot "${rootfs}" fatlabel test.img "TESTIMG" | ||
# verify it changed | ||
chroot "${rootfs}" fatlabel test.img | grep "TESTIMG" | ||
# cleanup | ||
rm "${rootfs}/test.img" |