1#!/bin/bash 2 3[ -f testing.sh ] && . testing.sh 4 5#testing "name" "command" "result" "infile" "stdin" 6 7BDIR="$FILES/blkid" 8 9bzcat "$BDIR"/squashfs.bz2 > temp.img 10testing "file" "blkid temp.img" 'temp.img: TYPE="squashfs"\n' "" "" 11rm temp.img 12 13testing "cramfs" 'bzcat "$BDIR"/cramfs.bz2 | blkid -' \ 14 '-: LABEL="mycramfs" TYPE="cramfs"\n' "" "" 15testing "ext2" 'bzcat "$BDIR"/ext2.bz2 | blkid -' \ 16 '-: LABEL="myext2" UUID="e59093ba-4135-4fdb-bcc4-f20beae4dfaf" TYPE="ext2"\n' \ 17 "" "" 18testing "ext3" 'bzcat "$BDIR"/ext3.bz2 | blkid -' \ 19 '-: LABEL="myext3" UUID="79d1c877-1a0f-4e7d-b21d-fc32ae3ef101" TYPE="ext3"\n' \ 20 "" "" 21testing "ext4" 'bzcat "$BDIR"/ext4.bz2 | blkid -' \ 22 '-: LABEL="myext4" UUID="dc4b7c00-c0c0-4600-af7e-0335f09770fa" TYPE="ext4"\n' \ 23 "" "" 24testing "f2fs" 'bzcat "$BDIR"/f2fs.bz2 | blkid -' \ 25 '-: UUID="b53d3619-c204-4c0b-8504-36363578491c" TYPE="f2fs"\n' \ 26 "" "" 27testing "msdos" 'bzcat "$BDIR"/msdos.bz2 | blkid -' \ 28 '-: LABEL="mymsdos" UUID="5108-1e6e" TYPE="vfat"\n' "" "" 29testing "ntfs" 'bzcat "$BDIR"/ntfs.bz2 | blkid -' \ 30 '-: UUID="8585600838bfe16e" TYPE="ntfs"\n' "" "" 31testing "reiserfs" 'bzcat "$BDIR"/reiser3.bz2 | blkid -' \ 32 '-: LABEL="myreiser" UUID="a5b99bec-45cc-41d7-986e-32f4b6fc28f2" TYPE="reiserfs"\n' \ 33 "" "" 34testing "squashfs" 'bzcat "$BDIR"/squashfs.bz2 | blkid -' \ 35 '-: TYPE="squashfs"\n' "" "" 36testing "vfat" 'bzcat "$BDIR"/vfat.bz2 | blkid -' \ 37 '-: LABEL="myvfat" UUID="1db9-5673" TYPE="vfat"\n' "" "" 38testing "xfs" 'bzcat "$BDIR"/xfs.bz2 | blkid -' \ 39 '-: LABEL="XFS_test" UUID="d63a1dc3-27d5-4dd4-8b38-f4f97f495c6f" TYPE="xfs"\n' \ 40 "" "" 41 42#testing "minix" 'bzcat "$BDIR"/minix.bz2 | blkid -' 43#adfs bfs btrfs cramfs jfs nilfs romfs 44#vfat // fat32 fat12 fat16 45