# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-set UPLOAD_TOOL [file join $srcdir upload-ftp-v1.2.pl]
+set GATEKEEPER_TOOL [file join $srcdir gatekeeper.pl]
if { ! [info exists PERL] } { set PERL perl }
if { ! [info exists CHECK_COVERAGE] } { set CHECK_COVERAGE no }
set TENV_STEM [file join $TEST_BASE tenv]
# invoked by DejaGnu framework when a failure is recorded
-proc upload_count_failures { args } {
- global upload_failure_count
- incr upload_failure_count
+proc gatekeeper_count_failures { args } {
+ global gatekeeper_failure_count
+ incr gatekeeper_failure_count
}
-set local_record_procs(fail) upload_count_failures
+set local_record_procs(fail) gatekeeper_count_failures
proc put_file { file string } {
set chan [open $file w]
global TENV_STEM
set name [new_work_area $TENV_STEM]
- global upload_failure_count
- set upload_failure_count 0
+ global gatekeeper_failure_count
+ set gatekeeper_failure_count 0
make_test_environment $name
return $name
}
proc close_test_environment { name } {
- global upload_failure_count
+ global gatekeeper_failure_count
# delete the environment iff no tests failed
- if { $upload_failure_count == 0 } {
+ if { $gatekeeper_failure_count == 0 } {
file delete -force -- $name
}
}
proc run_upload_batch_test {} {
global spawn_id
- global UPLOAD_TOOL PERL CHECK_COVERAGE
+ global GATEKEEPER_TOOL PERL CHECK_COVERAGE
# run test case
set runcmd [list spawn]
if { $CHECK_COVERAGE } {
lappend runcmd $PERL -T -MDevel::Cover=-silent,1
}
- lappend runcmd $UPLOAD_TOOL --testing-this-script -s ftp
+ lappend runcmd $GATEKEEPER_TOOL --testing-this-script -s ftp
eval $runcmd
wait
}
$result "$name: expected mail produced to expected addresses"
}
-proc upload_exit {} {
+proc gatekeeper_exit {} {
# clean up test environment tree
global TEST_BASE
catch {file delete -- $TEST_BASE}
}
-proc upload_version {} {
- global UPLOAD_TOOL
+proc gatekeeper_version {} {
+ global GATEKEEPER_TOOL
- exec -- $UPLOAD_TOOL --testing-this-script --version >@ stdout
+ exec -- $GATEKEEPER_TOOL --testing-this-script --version >@ stdout
}
#EOF