From ef0e0d99d6784c9d5558f3681cac409ac795eccf Mon Sep 17 00:00:00 2001 From: Madhurranjan Mohaan Date: Sep 15 2012 17:44:33 +0000 Subject: Added tests to install tcl and run tclsh against a file --- diff --git a/tests/p_tcl/0-install_tcl.sh b/tests/p_tcl/0-install_tcl.sh new file mode 100755 index 0000000..4670ec7 --- /dev/null +++ b/tests/p_tcl/0-install_tcl.sh @@ -0,0 +1,6 @@ +#!/bin/bash +# Author: Madhurranjan Mohaan + +t_Log "$0 - installing Tcl" +t_InstallPackage tcl + diff --git a/tests/p_tcl/10-test_tclsh.sh b/tests/p_tcl/10-test_tclsh.sh new file mode 100755 index 0000000..46511ff --- /dev/null +++ b/tests/p_tcl/10-test_tclsh.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +# Author: Madhurranjan Mohaan + +t_Log "Running $0 - Testing tclsh by running it with a basic file" + +echo 'puts "helloworld tclpackage"' > testfile +tclsh testfile + +t_CheckExitStatus $?