# along with this program. If not, see <http://www.gnu.org/licenses/>.
set UPLOAD_TOOL [file join $srcdir upload-ftp-v1.2.pl]
+if { ! [info exists PERL] } { set PERL perl }
+if { ! [info exists CHECK_COVERAGE] } { set CHECK_COVERAGE no }
# Format versions accepted by the script.
set DIRECTIVE_FORMAT_VERSIONS { 1.1 1.2 }
proc run_upload_batch_test {} {
global spawn_id
- global UPLOAD_TOOL
+ global UPLOAD_TOOL PERL CHECK_COVERAGE
# run test case
- spawn $UPLOAD_TOOL --testing-this-script -s ftp
+ set runcmd [list spawn]
+ if { $CHECK_COVERAGE } {
+ lappend runcmd $PERL -T -MDevel::Cover=-silent,1
+ }
+ lappend runcmd $UPLOAD_TOOL --testing-this-script -s ftp
+ eval $runcmd
wait
}