diff --git a/tests/p_lzo/0-install_lzo.sh b/tests/p_lzo/0-install_lzo.sh new file mode 100755 index 0000000..d91ca7b --- /dev/null +++ b/tests/p_lzo/0-install_lzo.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# Author: Vivek Dubey +# Akshay Karle + +t_InstallPackage lzop diff --git a/tests/p_lzo/lzo_test.sh b/tests/p_lzo/lzo_test.sh new file mode 100755 index 0000000..98dd85b --- /dev/null +++ b/tests/p_lzo/lzo_test.sh @@ -0,0 +1,22 @@ +#!/bin/sh +# Author: Vivek Dubey +# Akshay Karle + +t_Log "Running $0 - testing lzo compression and decompression" + +FILE1=/tmp/testfile.txt +FILE2=/tmp/testfile.lzo + +echo 'CentOS' > ${FILE1} + +# running compression +lzop -9 ${FILE1} -o ${FILE2} +/bin/rm ${FILE1} + +lzop -d ${FILE2} -o ${FILE1} +/bin/rm ${FILE2} + +#checking file content +grep -q 'CentOS' ${FILE1} + +t_CheckExitStatus $? diff --git a/tests_incomplete/p_0lzo/0-install_lzo.sh b/tests_incomplete/p_0lzo/0-install_lzo.sh deleted file mode 100755 index d91ca7b..0000000 --- a/tests_incomplete/p_0lzo/0-install_lzo.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/bash -# Author: Vivek Dubey -# Akshay Karle - -t_InstallPackage lzop diff --git a/tests_incomplete/p_0lzo/abc b/tests_incomplete/p_0lzo/abc deleted file mode 100644 index 1aad27d..0000000 --- a/tests_incomplete/p_0lzo/abc +++ /dev/null @@ -1 +0,0 @@ -blahblahblah diff --git a/tests_incomplete/p_0lzo/foo b/tests_incomplete/p_0lzo/foo deleted file mode 100644 index 1aad27d..0000000 --- a/tests_incomplete/p_0lzo/foo +++ /dev/null @@ -1 +0,0 @@ -blahblahblah diff --git a/tests_incomplete/p_0lzo/foo.lzo b/tests_incomplete/p_0lzo/foo.lzo deleted file mode 100644 index 0cf13d8..0000000 Binary files a/tests_incomplete/p_0lzo/foo.lzo and /dev/null differ diff --git a/tests_incomplete/p_0lzo/lzo_test.sh b/tests_incomplete/p_0lzo/lzo_test.sh deleted file mode 100755 index 52245b9..0000000 --- a/tests_incomplete/p_0lzo/lzo_test.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/sh -# Author: Vivek Dubey -# Akshay Karle - -t_Log "Running $0 - testing lzo compression and decompression" - -FILE1=/tmp/testfile.txt -FILE2=/tmp/testfile.lzo - -echo 'CentOS' > ${FILE1} - -# running compression -lzop -9v ${FILE1} -o ${FILE2} -/bin/rm ${FILE1} - -lzop -d ${FILE2} -o ${FILE1} -/bin/rm ${FILE2} - -#checking file content -grep 'CentOS' ${FILE1} - -echo $? -#t_CheckExitStatus $? diff --git a/tests_incomplete/p_0lzo/test_lzo.sh b/tests_incomplete/p_0lzo/test_lzo.sh deleted file mode 100644 index e9614a8..0000000 --- a/tests_incomplete/p_0lzo/test_lzo.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/sh -# Author: Vivek Dubey -# Akshay Karle - -echo 'blahblahblah' > /tmp/foo - -lzop -9v /tmp/foo -o /tmp/foo.lzo - -lzop -d /tmp/foo.lzo -o /tmp/abc - -rm -f /tmp/foo -rm -f /tmp/foo.lzo -rm -f /tmp/abc -t_CheckExitStatus $?