Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
The Tor Project
Applications
tor-browser-bundle-testsuite
Commits
ab59dc01
Unverified
Commit
ab59dc01
authored
Feb 25, 2014
by
boklm
Browse files
tbb-testsuite: allow testing more than one bundle
parent
c7440b33
Changes
1
Hide whitespace changes
Inline
Side-by-side
tbb-testsuite
View file @
ab59dc01
...
...
@@ -17,9 +17,10 @@ sub exit_error {
}
sub
get_options
{
my
@options
=
qw(os=s
tbbfile=s
language=s)
;
my
@options
=
qw(os=s language=s)
;
my
%res
=
%default_options
;
Getopt::Long::
GetOptionsFromArray
(
\
@
_
,
\
%res
,
@options
)
||
exit
1
;
$res
{
files
}
=
\
@_
;
return
\
%res
;
}
...
...
@@ -66,11 +67,18 @@ sub selenium_tests {
}
}
$options
->
{
basedir
}
=
getcwd
;
$options
->
{
tbbdir
}
=
extract_tbb
(
$options
->
{
tbbfile
});
chdir
$options
->
{
tbbdir
}
||
exit_error
"
Can't enter directory
$options
->{tbbdir}
";
setup_tbb
;
print
"
tbbdir:
$options
->{tbbdir}
\n
";
mozmill_tests
;
selenium_tests
;
sub
test_tbb
{
my
(
$tbbfile
)
=
@_
;
my
$oldcwd
=
getcwd
;
$options
->
{
tbbdir
}
=
extract_tbb
(
$tbbfile
);
chdir
$options
->
{
tbbdir
}
||
exit_error
"
Can't enter directory
$options
->{tbbdir}
";
setup_tbb
;
print
"
tbbdir:
$options
->{tbbdir}
\n
";
mozmill_tests
;
selenium_tests
;
chdir
$oldcwd
;
}
foreach
my
$tbbfile
(
@
{
$options
->
{
files
}})
{
test_tbb
(
$tbbfile
);
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment