diff --git a/tests/p_bzip2/0_install_bzip2.sh b/tests/p_bzip2/0_install_bzip2.sh new file mode 100755 index 0000000..6f560ef --- /dev/null +++ b/tests/p_bzip2/0_install_bzip2.sh @@ -0,0 +1,6 @@ +#!/bin/sh +# Author: Christoph Galuschka + +t_Log "Running $0 - attempting to install bzip2." +t_InstallPackage bzip2 + diff --git a/tests/p_bzip2/10-bzip2-test.sh b/tests/p_bzip2/10-bzip2-test.sh new file mode 100755 index 0000000..b9f5e16 --- /dev/null +++ b/tests/p_bzip2/10-bzip2-test.sh @@ -0,0 +1,36 @@ +#!/bin/sh +# Author: Athmane Madjoudj +# Author: Christoph Galuschka + +t_Log "Running $0 - run a file through bzip2,bzcat and bunzip2 test." + +# create file +FILE=/var/tmp/bzip2-test.txt + +cat > $FILE < + +t_Log "Running $0 - attempting to install gzip." +t_InstallPackage gzip + diff --git a/tests/p_gzip/10-gzip-test.sh b/tests/p_gzip/10-gzip-test.sh new file mode 100755 index 0000000..89fe1bb --- /dev/null +++ b/tests/p_gzip/10-gzip-test.sh @@ -0,0 +1,37 @@ +#!/bin/sh +# Author: Athmane Madjoudj +# Author: Christoph Galuschka + +t_Log "Running $0 - run a file through gzip,zcat and gunzip test." + +# create file +FILE=/var/tmp/gzip-test.txt + +cat > $FILE < + +t_Log "Running $0 - attempting to install zip." +t_InstallPackage zip + diff --git a/tests/p_zip/10-zip-test.sh b/tests/p_zip/10-zip-test.sh new file mode 100755 index 0000000..b00b6bc --- /dev/null +++ b/tests/p_zip/10-zip-test.sh @@ -0,0 +1,46 @@ +#!/bin/sh +# Author: Athmane Madjoudj +# Author: Christoph Galuschka + +t_Log "Running $0 - zip create and extract archive test." + +# create dir and two files +ZIPDIR='/var/tmp/zip-test' +FILE1=$ZIPDIR/file1.txt +FILE2=$ZIPDIR/file2.txt + +mkdir -p $ZIPDIR +cat > $FILE1 < $FILE2 <