# The following tests will verify if the image has the right filesystem and
# some parts of important files. This will ensure that content exists and is
# right inside the images.

Test-Command: fsdeploy fs.btrfs.xz;
              cd $AUTOPKGTEST_TMP;
              disktype fs.btrfs | grep -E "Btrfs file system";
              hexdump fs.btrfs -C | grep -E '(SX530|Exif|GIMP)'
Depends: bsdmainutils, disktype, forensics-samples-btrfs

Test-Command: fsdeploy fs.exfat.xz;
              cd $AUTOPKGTEST_TMP;
              disktype fs.exfat | grep -E "exFAT file system";
              hexdump fs.exfat -C | grep -E '(SX530|Exif|GIMP)'
Depends: bsdmainutils, disktype (>= 9-11), forensics-samples-exfat

Test-Command: fsdeploy fs.ext2.xz;
              cd $AUTOPKGTEST_TMP;
              disktype fs.ext2 | grep -E "Ext2 file system";
              hexdump fs.ext2 -C | grep -E '(SX530|Exif|GIMP)'
Depends: bsdmainutils, disktype, forensics-samples-ext2

Test-Command: fsdeploy fs.ext4.xz;
              cd $AUTOPKGTEST_TMP;
              disktype fs.ext4 | grep -E "Ext4 file system";
              hexdump fs.ext4 -C | grep -E '(SX530|Exif|GIMP)'
Depends: bsdmainutils, disktype, forensics-samples-ext4

Test-Command: fsdeploy fs.multiple.xz;
              cd $AUTOPKGTEST_TMP;
              disktype fs.multiple | grep -E '(Btrfs|Ext4|exFAT|NTFS) file system';
              hexdump fs.multiple -C | grep -E '(JFIF|Exif|text file|file only)'
Depends: bsdmainutils, disktype, forensics-samples-multiple

Test-Command: fsdeploy fs.ntfs.xz;
              cd $AUTOPKGTEST_TMP;
              disktype fs.ntfs | grep -E "NTFS file system";
              hexdump fs.ntfs -C | grep -E '(SX530|Exif|GIMP)'
Depends: bsdmainutils, disktype, forensics-samples-ntfs

Test-Command: fsdeploy fs.vfat.xz;
              cd $AUTOPKGTEST_TMP;
              disktype fs.vfat | grep -E "FAT32 file system";
              hexdump fs.vfat -C | grep -E '(SX530|Exif|GIMP)'
Depends: bsdmainutils, disktype, forensics-samples-vfat
