Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nginx-push-stream-module
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
nginx-push-stream-module
Commits
c3f6fdd8
Commit
c3f6fdd8
authored
Mar 16, 2012
by
Wandenberg Peixoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improvement on commands to runs tests
parent
e4a5e005
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
6 deletions
+14
-6
Rakefile
test/Rakefile
+5
-5
base_test_case.rb
test/base_test_case.rb
+9
-1
No files found.
test/Rakefile
View file @
c3f6fdd8
...
...
@@ -105,11 +105,11 @@ end
desc
"Run all tests."
task
:tests
,
:executable
,
:host
,
:port
,
:workers
,
:tests_tmp_dir
do
|
t
,
args
|
ENV
[
'NGINX_EXEC'
]
=
args
[
:executable
]
||
nil
ENV
[
'NGINX_HOST'
]
=
args
[
:host
]
||
nil
ENV
[
'NGINX_PORT'
]
=
args
[
:port
]
||
nil
ENV
[
'NGINX_WORKERS'
]
=
args
[
:workers
]
||
nil
ENV
[
'NGINX_TESTS_TMP_DIR'
]
=
args
[
:tests_tmp_dir
]
||
nil
ENV
[
'NGINX_EXEC'
]
||
=
args
[
:executable
]
||
nil
ENV
[
'NGINX_HOST'
]
||
=
args
[
:host
]
||
nil
ENV
[
'NGINX_PORT'
]
||
=
args
[
:port
]
||
nil
ENV
[
'NGINX_WORKERS'
]
||
=
args
[
:workers
]
||
nil
ENV
[
'NGINX_TESTS_TMP_DIR'
]
||
=
args
[
:tests_tmp_dir
]
||
nil
require
'test/unit'
...
...
test/base_test_case.rb
View file @
c3f6fdd8
...
...
@@ -33,7 +33,15 @@ module BaseTestCase
end
def
nginx_executable
return
ENV
[
'NGINX_EXEC'
].
nil?
?
"/usr/local/nginx/sbin/nginx"
:
ENV
[
'NGINX_EXEC'
]
if
is_to_use_memory_check
return
"valgrind --show-reachable=yes --trace-children=yes --time-stamp=yes --leak-check=full --log-file=mld_
#{
method_name_for_test
}
.log
#{
ENV
[
'NGINX_EXEC'
].
nil?
?
"/usr/local/nginx/sbin/nginx"
:
ENV
[
'NGINX_EXEC'
]
}
"
else
return
ENV
[
'NGINX_EXEC'
].
nil?
?
"/usr/local/nginx/sbin/nginx"
:
ENV
[
'NGINX_EXEC'
]
end
end
def
is_to_use_memory_check
!
ENV
[
'CHECK_MEMORY'
].
nil?
and
!
`which valgrind`
.
empty?
end
def
nginx_address
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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