Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
mailutils
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
7fe78e5f
...
7fe78e5f6bf91ebc15f786ede785c2a0d93337a4
authored
2002-11-04 17:47:30 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Invoke mu_init with -noflags.
1 parent
c2745178
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
26 deletions
mail.remote/testsuite/lib/mail.remote.exp
mail.remote/testsuite/lib/mail.remote.exp
View file @
7fe78e5
...
...
@@ -18,16 +18,19 @@
source
$top
_srcdir/testsuite/lib/mailutils.exp
mu_init
mu_init
-noflags
mu_prepare_spools
set
mu_filename
"
$
MU_FOLDER_DIR/mta.diag"
set
env
(
MTA_DIAG
)
"
$mu
_filename"
# mailer_remote_test [-message MESSAGE
]
[
-default
(
FAIL|XFAIL
)]
# [-from FROM
]
[
-to TO
][
-pattern PATTERN-LIST
][
PATTERN...
]
# mail_remote_test [-message MESSAGE
]
[
-default
(
FAIL|XFAIL
)]
# [-input INPUT-LIST
]
# [-args ARGS
]
[
-pattern PATTERN-LIST
][
PATTERN...
]
# INPUT-LIST - List of input strings for MU_TOOL
# PATTERN - Sequence to expect in return.
# MESSAGE - [optional
]
message to output
proc
mailer_remote_test
{
args
}
{
# ARGS - Additional arguments to MU_TOOL
proc
mail_remote_test
{
args
}
{
global MU_TOOL
global top_builddir
global verbose
...
...
@@ -84,14 +87,6 @@ proc mailer_remote_test { args } {
}
}
verbose
"Spawning
$
MU_TOOL --mailer
$url
$invocation
"
1
set res
[
remote_spawn host
"
$
MU_TOOL --mailer
$url
$invocation
"
]
if
{
$res
< 0 ||
$res
==
""
}
{
perror
"Spawning
$
MU_TOOL
$invocation
failed."
return 1
;
}
if
{
"
$message
"
==
""
}
{
set message
[
lindex
$args
0
]
}
...
...
@@ -100,20 +95,9 @@ proc mailer_remote_test { args } {
send_user
"Message is
\"
$message
\"\n
"
}
set result
""
verbose
"INPUT:
$input
"
1
for
{
set
i 0
}
{
$result
==
""
&&
$i
<
[
llength
$input
]}
{
incr
i
}
{
set s
[
lindex
$input
$i
]
verbose
"SEND:
$s
"
1
set result
[
mu_send
"
[
lindex
$input
$i
]
\n
"
]
verbose
"RESULT:
$result
"
}
mu_send
""
remote_wait host 60
return
[
mu_test_file -default
$default
-message
$message
-pattern
$pattern
$mu
_filename
]
return
[
mailer_test -default
$default
-message
$message
\
-input
$input
-pattern
$pattern
-file
\
$mu
_filename -args
"--mailer
$url
$invocation
"
]
}
...
...
Please
register
or
sign in
to post a comment