diff --git a/tests/p_perl/0-install_perl.sh b/tests/p_perl/0-install_perl.sh new file mode 100755 index 0000000..3ac8c7e --- /dev/null +++ b/tests/p_perl/0-install_perl.sh @@ -0,0 +1,7 @@ +#!/bin/bash +# Author: Madhurranjan Mohaan + +t_Log "Running $0 - installing perl" + +# Install perl +t_InstallPackage perl diff --git a/tests/p_perl/10-test_perl.sh b/tests/p_perl/10-test_perl.sh new file mode 100755 index 0000000..4523964 --- /dev/null +++ b/tests/p_perl/10-test_perl.sh @@ -0,0 +1,9 @@ +#!/bin/bash +# Author: Madhurranjan Mohaan + +# Check perl installation + +t_Log "Running $0 - checking perl installation" + +perl --version &>/dev/null +t_CheckExitStatus $? diff --git a/tests/p_perl/20-run_perl_script.sh b/tests/p_perl/20-run_perl_script.sh new file mode 100755 index 0000000..c1ee3c6 --- /dev/null +++ b/tests/p_perl/20-run_perl_script.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +# Author: Madhurranjan Mohaan + +t_Log "Running $0 - Testing perl by running it against a basic file" + +echo 'print "helloworld perlpackage"' > testfile +perl testfile + +t_CheckExitStatus $?