diff options
| author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-06-13 12:49:46 +0000 |
|---|---|---|
| committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-06-13 12:49:46 +0000 |
| commit | 26017b1b048900fa994029d492987fbef2eb3b43 (patch) | |
| tree | 4181e3ce865b221df93d06633b7d976e587a142b /util-linux | |
| parent | 1fd46215b2567bfb2d659859796920a0b0637550 (diff) | |
| download | busybox-w32-26017b1b048900fa994029d492987fbef2eb3b43.tar.gz busybox-w32-26017b1b048900fa994029d492987fbef2eb3b43.tar.bz2 busybox-w32-26017b1b048900fa994029d492987fbef2eb3b43.zip | |
minix.h: add very simple test script
Diffstat (limited to 'util-linux')
| -rw-r--r-- | util-linux/minix.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/util-linux/minix.h b/util-linux/minix.h index 476f32735..e630fe033 100644 --- a/util-linux/minix.h +++ b/util-linux/minix.h | |||
| @@ -74,3 +74,25 @@ enum { | |||
| 74 | MINIX2_INODES_PER_BLOCK = BLOCK_SIZE / sizeof(struct minix2_inode), | 74 | MINIX2_INODES_PER_BLOCK = BLOCK_SIZE / sizeof(struct minix2_inode), |
| 75 | }; | 75 | }; |
| 76 | 76 | ||
| 77 | /* | ||
| 78 | Basic test script for regressions in mkfs/fsck. | ||
| 79 | Copies current dir into image (typically bbox build tree). | ||
| 80 | |||
| 81 | #!/bin/sh | ||
| 82 | tmpdir=/tmp/minixtest-$$ | ||
| 83 | tmpimg=/tmp/minix-img-$$ | ||
| 84 | |||
| 85 | mkdir $tmpdir | ||
| 86 | dd if=/dev/zero of=$tmpimg bs=1M count=20 || exit | ||
| 87 | ./busybox mkfs.minix $tmpimg || exit | ||
| 88 | mount -o loop $tmpimg $tmpdir || exit | ||
| 89 | cp -a "$PWD" $tmpdir | ||
| 90 | umount $tmpdir || exit | ||
| 91 | ./busybox fsck.minix -vfm $tmpimg || exit | ||
| 92 | echo "Continue?" | ||
| 93 | read junk | ||
| 94 | ./busybox fsck.minix -vfml $tmpimg || exit | ||
| 95 | rmdir $tmpdir | ||
| 96 | rm $tmpimg | ||
| 97 | |||
| 98 | */ | ||
