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
dac77136
Unverified
Commit
dac77136
authored
Jul 25, 2014
by
boklm
Browse files
build_firefox: update .mozconfig with number of cpu
parent
b5981404
Changes
1
Hide whitespace changes
Inline
Side-by-side
TBBTestSuite/BrowserUnitTests.pm
View file @
dac77136
...
...
@@ -6,6 +6,7 @@ use IO::CaptureOutput qw(capture_exec);
use
File::
Spec
;
use
File::
Find
;
use
File::
Copy
;
use
File::
Slurp
;
use
TBBTestSuite::
Common
qw(exit_error get_nbcpu run_to_file)
;
use
TBBTestSuite::
Reports
qw(load_report)
;
...
...
@@ -168,12 +169,18 @@ sub xpcshell_test {
sub
build_firefox
{
my
(
$tbbinfos
,
$test
)
=
@_
;
my
$nbcpu
=
get_nbcpu
;
$test
->
{
results
}{
success
}
=
0
;
copy
("
$FindBin
::Bin/data/mozconfig
",
'
.mozconfig
');
my
@l
=
read_file
('
.mozconfig
');
foreach
(
@l
)
{
s/MOZ_MAKE_FLAGS="-j4"/MOZ_MAKE_FLAGS="-j$nbcpu"/
;
}
write_file
('
.mozconfig
',
@l
);
run_to_file
("
$tbbinfos
->{'results-dir'}/
$test
->{name}.configure.txt
",
'
make
',
'
-f
',
'
client.mk
',
'
configure
')
or
return
;
run_to_file
("
$tbbinfos
->{'results-dir'}/
$test
->{name}.build.txt
",
'
make
',
'
-j
'
.
get_
nbcpu
,
'
-f
',
'
client.mk
',
'
build
')
or
return
;
'
make
',
"
-j
$
nbcpu
"
,
'
-f
',
'
client.mk
',
'
build
')
or
return
;
$test
->
{
results
}{
success
}
=
1
;
}
...
...
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