Mercurial > hg > toybox
annotate scripts/test/blkid.test @ 1122:663242f2962c draft 0.4.7
Add test suite for blkid and clean up an editorial comment that shouldn't have been checked in.
author | Rob Landley <rob@landley.net> |
---|---|
date | Mon, 18 Nov 2013 07:42:48 -0600 |
parents | |
children | 9dc339b4ac2c |
rev | line source |
---|---|
1122
663242f2962c
Add test suite for blkid and clean up an editorial comment that shouldn't have been checked in.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
1 #!/bin/bash |
663242f2962c
Add test suite for blkid and clean up an editorial comment that shouldn't have been checked in.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
2 |
663242f2962c
Add test suite for blkid and clean up an editorial comment that shouldn't have been checked in.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
3 [ -f testing.sh ] && . testing.sh |
663242f2962c
Add test suite for blkid and clean up an editorial comment that shouldn't have been checked in.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
4 |
663242f2962c
Add test suite for blkid and clean up an editorial comment that shouldn't have been checked in.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
5 #testing "name" "command" "result" "infile" "stdin" |
663242f2962c
Add test suite for blkid and clean up an editorial comment that shouldn't have been checked in.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
6 |
663242f2962c
Add test suite for blkid and clean up an editorial comment that shouldn't have been checked in.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
7 BDIR="$TOPDIR/scripts/test/blkid" |
663242f2962c
Add test suite for blkid and clean up an editorial comment that shouldn't have been checked in.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
8 |
663242f2962c
Add test suite for blkid and clean up an editorial comment that shouldn't have been checked in.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
9 bzcat "$BDIR"/squashfs.bz2 > temp.img |
663242f2962c
Add test suite for blkid and clean up an editorial comment that shouldn't have been checked in.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
10 testing "blkid file" "blkid temp.img" 'temp.img: TYPE="squashfs"\n' "" "" |
663242f2962c
Add test suite for blkid and clean up an editorial comment that shouldn't have been checked in.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
11 rm temp.img |
663242f2962c
Add test suite for blkid and clean up an editorial comment that shouldn't have been checked in.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
12 |
663242f2962c
Add test suite for blkid and clean up an editorial comment that shouldn't have been checked in.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
13 testing "blkid cramfs" 'bzcat "$BDIR"/cramfs.bz2 | blkid -' \ |
663242f2962c
Add test suite for blkid and clean up an editorial comment that shouldn't have been checked in.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
14 '-: LABEL="mycramfs" TYPE="cramfs"\n' "" "" |
663242f2962c
Add test suite for blkid and clean up an editorial comment that shouldn't have been checked in.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
15 testing "blkid ext2" 'bzcat "$BDIR"/ext2.bz2 | blkid -' \ |
663242f2962c
Add test suite for blkid and clean up an editorial comment that shouldn't have been checked in.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
16 '-: LABEL="myext2" UUID="e59093ba-4135-4fdb-bcc4-f20beae4dfaf" TYPE="ext2"' \ |
663242f2962c
Add test suite for blkid and clean up an editorial comment that shouldn't have been checked in.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
17 "" "" |
663242f2962c
Add test suite for blkid and clean up an editorial comment that shouldn't have been checked in.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
18 testing "blkid ext3" 'bzcat "$BDIR"/ext3.bz2 | blkid -' \ |
663242f2962c
Add test suite for blkid and clean up an editorial comment that shouldn't have been checked in.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
19 '-: LABEL="myext3" UUID="79d1c877-1a0f-4e7d-b21d-fc32ae3ef101" TYPE="ext2"' \ |
663242f2962c
Add test suite for blkid and clean up an editorial comment that shouldn't have been checked in.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
20 "" "" |
663242f2962c
Add test suite for blkid and clean up an editorial comment that shouldn't have been checked in.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
21 testing "blkid ext4" 'bzcat "$BDIR"/ext4.bz2 | blkid -' \ |
663242f2962c
Add test suite for blkid and clean up an editorial comment that shouldn't have been checked in.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
22 '-: LABEL="myext4" UUID="dc4b7c00-c0c0-4600-af7e-0335f09770fa" TYPE="ext2"' \ |
663242f2962c
Add test suite for blkid and clean up an editorial comment that shouldn't have been checked in.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
23 "" "" |
663242f2962c
Add test suite for blkid and clean up an editorial comment that shouldn't have been checked in.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
24 testing "blkid f2fs" 'bzcat "$BDIR"/f2fs.bz2 | blkid -' \ |
663242f2962c
Add test suite for blkid and clean up an editorial comment that shouldn't have been checked in.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
25 '-: LABEL="" UUID="b53d3619-c204-4c0b-8504-36363578491c" TYPE="f2fs"' \ |
663242f2962c
Add test suite for blkid and clean up an editorial comment that shouldn't have been checked in.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
26 "" "" |
663242f2962c
Add test suite for blkid and clean up an editorial comment that shouldn't have been checked in.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
27 testing "blkid msdos" 'bzcat "$BDIR"/msdos.bz2 | blkid -' \ |
663242f2962c
Add test suite for blkid and clean up an editorial comment that shouldn't have been checked in.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
28 '-: LABEL="mymsdos " UUID="5108-1e6e" TYPE="vfat"' "" "" |
663242f2962c
Add test suite for blkid and clean up an editorial comment that shouldn't have been checked in.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
29 testing "blkid ntfs" 'bzcat "$BDIR"/ntfs.bz2 | blkid -' \ |
663242f2962c
Add test suite for blkid and clean up an editorial comment that shouldn't have been checked in.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
30 '-: UUID="8585600838bfe16e" TYPE="ntfs"' "" "" |
663242f2962c
Add test suite for blkid and clean up an editorial comment that shouldn't have been checked in.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
31 testing "blkid reiserfs" 'bzcat "$BDIR"/reiser3.bz2 | blkid -' \ |
663242f2962c
Add test suite for blkid and clean up an editorial comment that shouldn't have been checked in.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
32 '-: LABEL="" UUID="a5b99bec-45cc-41d7-986e-32f4b6fc28f2" TYPE="murderfs"' \ |
663242f2962c
Add test suite for blkid and clean up an editorial comment that shouldn't have been checked in.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
33 "" "" |
663242f2962c
Add test suite for blkid and clean up an editorial comment that shouldn't have been checked in.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
34 testing "blkid squashfs" 'bzcat "$BDIR"/squashfs.bz2 | blkid -' \ |
663242f2962c
Add test suite for blkid and clean up an editorial comment that shouldn't have been checked in.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
35 '-: TYPE="squashfs"' "" |
663242f2962c
Add test suite for blkid and clean up an editorial comment that shouldn't have been checked in.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
36 testing "blkid vfat" 'bzcat "$BDIR"/vfat.bz2 | blkid -' \ |
663242f2962c
Add test suite for blkid and clean up an editorial comment that shouldn't have been checked in.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
37 '-: LABEL="myvfat " UUID="1db9-5673" TYPE="vfat"' |
663242f2962c
Add test suite for blkid and clean up an editorial comment that shouldn't have been checked in.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
38 testing "blkid xfs" 'bzcat "$BDIR"/xfs.bz2 | blkid -' \ |
663242f2962c
Add test suite for blkid and clean up an editorial comment that shouldn't have been checked in.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
39 '-: LABEL="XFS_test" UUID="d63a1dc3-27d5-4dd4-8b38-f4f97f495c6f" TYPE="xfs"' \ |
663242f2962c
Add test suite for blkid and clean up an editorial comment that shouldn't have been checked in.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
40 "" "" |
663242f2962c
Add test suite for blkid and clean up an editorial comment that shouldn't have been checked in.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
41 |
663242f2962c
Add test suite for blkid and clean up an editorial comment that shouldn't have been checked in.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
42 #testing "blkid minix" 'bzcat "$BDIR"/minix.bz2 | blkid -' |
663242f2962c
Add test suite for blkid and clean up an editorial comment that shouldn't have been checked in.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
43 #adfs bfs btrfs cramfs jfs nilfs romfs |
663242f2962c
Add test suite for blkid and clean up an editorial comment that shouldn't have been checked in.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
44 #vfat // fat32 fat12 fat16 |