.\" Text automatically generated by txt2man .TH fsdeploy 1 "03 Nov 2020" "fsdeploy-0.4" "deploy a disk image from forensics-samples" .SH NAME \fBfsdeploy \fP- deploy a disk image from forensics-samples \fB .SH SYNOPSIS .nf .fam C \fBfsdeploy\fP .fam T .fi .fam T .fi .SH DESCRIPTION \fBfsdeploy\fP is a command to provide a disk image from forensics-samples package to a CI test environment in Debian. It also can provide the original-files directory from forensics-samples. .PP \fBfsdeploy\fP will copy file.xz to $AUTOPKGTEST_TMP and unzip it, making the selected file available for CI tests via autopkgtest command. It also can copy original-files to $AUTOPKGTEST_TMP (no unzip needed). .PP On Debian systems, forensics-samples- and forensics-samples-files packages will depend of the forensics-samples-tools, that provides \fBfsdeploy\fP command. .SH OPTIONS Possible values are: fs.btrfs.xz, fs.exfat.xz, fs.ext2.xz, fs.ext4.xz, fs.ntfs.xz, fs.vfat.xz, fs.multiple.xz and original-files. .PP fs.multiple.xz has some filesystems. .SH EXAMPLES See below an example of a possible debian/tests/control file for foremost: .PP .nf .fam C Test-Command: fsdeploy fs.ntfs.xz; cd $AUTOPKGTEST_TMP; foremost -Tq fs.ntfs.xz; tree -C output-* Depends: @, forensics-samples-ntfs, tree Restrictions: allow-stderr .fam T .fi Now an example for mac-robber: .PP .nf .fam C Test-Command: fsdeploy original-files; mac-robber $AUTOPKGTEST_TMP | grep a-text Depends: @, forensics-samples-files Test-Command: [ -e /dev/loop0 ] || exit 77; fsdeploy fs.ext4.xz; cd $AUTOPKGTEST_TMP; mkdir mnt; mount -o ro,offset=1048576 fs.ext4 mnt; mac-robber mnt | grep a-text; umount mnt Depends: @, forensics-samples-ext4 # isolation-machine will provide access to /dev/loop0, essential to mount # images using the mount command. # rw-build-tree allow autopkgtest run several times. Restrictions: allow-stderr, isolation-machine, needs-root, rw-build-tree, skippable .fam T .fi Note that Debian CI environments commonly are not able to run isolation-machine. Consequently, the test will be skipped. .PP Example for disktype command: .PP .nf .fam C Test-Command: fsdeploy fs.multiple.xz; cd $AUTOPKGTEST_TMP; disktype fs.multiple Depends: @, forensics-samples-multiple .fam T .fi .SH AUTHOR forensics-samples was written by Joao Eriberto Mota Filho and is available at https://github.com/eribertomota/forensics-samples .PP This manual page was written by Joao Eriberto Mota Filho for the Debian project (but may be used by others).