# 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 | egrep "Btrfs file system";
              hexdump fs.btrfs -C | egrep '(SX530|Exif|GIMP)'
Depends: bsdmainutils, disktype, forensics-samples-btrfs

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

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

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

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

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

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