diff options
author | Rob Landley <rob@landley.net> | 2014-09-20 13:09:14 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2014-09-20 13:09:14 -0500 |
commit | 387edf547eb09b27ca6d49772eb048d729f09cf4 (patch) | |
tree | 59d482f33735690cab6d90723393afa1e2c8dce5 /tests/blkid.test | |
parent | d3df423a6cde0c6282658ff628574771d3824d71 (diff) | |
download | toybox-387edf547eb09b27ca6d49772eb048d729f09cf4.tar.gz |
Move testsuite out of scripts/test into its own top level tests directory, and make ctrl-c kill "make test" more reliably.
Diffstat (limited to 'tests/blkid.test')
-rwxr-xr-x | tests/blkid.test | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/tests/blkid.test b/tests/blkid.test new file mode 100755 index 00000000..3f676df8 --- /dev/null +++ b/tests/blkid.test @@ -0,0 +1,44 @@ +#!/bin/bash + +[ -f testing.sh ] && . testing.sh + +#testing "name" "command" "result" "infile" "stdin" + +BDIR="$TOPDIR/tests/blkid" + +bzcat "$BDIR"/squashfs.bz2 > temp.img +testing "blkid file" "blkid temp.img" 'temp.img: TYPE="squashfs"\n' "" "" +rm temp.img + +testing "blkid cramfs" 'bzcat "$BDIR"/cramfs.bz2 | blkid -' \ + '-: LABEL="mycramfs" TYPE="cramfs"\n' "" "" +testing "blkid ext2" 'bzcat "$BDIR"/ext2.bz2 | blkid -' \ + '-: LABEL="myext2" UUID="e59093ba-4135-4fdb-bcc4-f20beae4dfaf" TYPE="ext2"\n' \ + "" "" +testing "blkid ext3" 'bzcat "$BDIR"/ext3.bz2 | blkid -' \ + '-: LABEL="myext3" UUID="79d1c877-1a0f-4e7d-b21d-fc32ae3ef101" TYPE="ext2"\n' \ + "" "" +testing "blkid ext4" 'bzcat "$BDIR"/ext4.bz2 | blkid -' \ + '-: LABEL="myext4" UUID="dc4b7c00-c0c0-4600-af7e-0335f09770fa" TYPE="ext2"\n' \ + "" "" +testing "blkid f2fs" 'bzcat "$BDIR"/f2fs.bz2 | blkid -' \ + '-: LABEL="" UUID="b53d3619-c204-4c0b-8504-36363578491c" TYPE="f2fs"\n' \ + "" "" +testing "blkid msdos" 'bzcat "$BDIR"/msdos.bz2 | blkid -' \ + '-: LABEL="mymsdos " UUID="5108-1e6e" TYPE="vfat"\n' "" "" +testing "blkid ntfs" 'bzcat "$BDIR"/ntfs.bz2 | blkid -' \ + '-: UUID="8585600838bfe16e" TYPE="ntfs"\n' "" "" +testing "blkid reiserfs" 'bzcat "$BDIR"/reiser3.bz2 | blkid -' \ + '-: LABEL="" UUID="a5b99bec-45cc-41d7-986e-32f4b6fc28f2" TYPE="reiserfs"\n' \ + "" "" +testing "blkid squashfs" 'bzcat "$BDIR"/squashfs.bz2 | blkid -' \ + '-: TYPE="squashfs"\n' "" "" +testing "blkid vfat" 'bzcat "$BDIR"/vfat.bz2 | blkid -' \ + '-: LABEL="myvfat " UUID="1db9-5673" TYPE="vfat"\n' "" "" +testing "blkid xfs" 'bzcat "$BDIR"/xfs.bz2 | blkid -' \ + '-: LABEL="XFS_test" UUID="d63a1dc3-27d5-4dd4-8b38-f4f97f495c6f" TYPE="xfs"\n' \ + "" "" + +#testing "blkid minix" 'bzcat "$BDIR"/minix.bz2 | blkid -' +#adfs bfs btrfs cramfs jfs nilfs romfs +#vfat // fat32 fat12 fat16 |