test: add targets test-http2
and test-all-http2
Passes `--use-http2` to node. Fixes #1430.
This commit is contained in:
parent
e0d7c2cfa3
commit
e1bb241b51
6
Makefile
6
Makefile
@ -35,12 +35,18 @@ uninstall:
|
|||||||
test: all
|
test: all
|
||||||
python tools/test.py --mode=release simple message
|
python tools/test.py --mode=release simple message
|
||||||
|
|
||||||
|
test-http2: all
|
||||||
|
python tools/test.py --mode=release --use-http2 simple message
|
||||||
|
|
||||||
test-valgrind: all
|
test-valgrind: all
|
||||||
python tools/test.py --mode=release --valgrind simple message
|
python tools/test.py --mode=release --valgrind simple message
|
||||||
|
|
||||||
test-all: all
|
test-all: all
|
||||||
python tools/test.py --mode=debug,release
|
python tools/test.py --mode=debug,release
|
||||||
|
|
||||||
|
test-all-http2: all
|
||||||
|
python tools/test.py --mode=debug,release --use-http2
|
||||||
|
|
||||||
test-all-valgrind: all
|
test-all-valgrind: all
|
||||||
python tools/test.py --mode=debug,release --valgrind
|
python tools/test.py --mode=debug,release --valgrind
|
||||||
|
|
||||||
|
@ -1148,6 +1148,8 @@ def BuildOptions():
|
|||||||
result.add_option("--simulator", help="Run tests with architecture simulator",
|
result.add_option("--simulator", help="Run tests with architecture simulator",
|
||||||
default='none')
|
default='none')
|
||||||
result.add_option("--special-command", default=None)
|
result.add_option("--special-command", default=None)
|
||||||
|
result.add_option("--use-http2", help="Pass --use-http2 switch to node",
|
||||||
|
default=False, action="store_true")
|
||||||
result.add_option("--valgrind", help="Run tests through valgrind",
|
result.add_option("--valgrind", help="Run tests through valgrind",
|
||||||
default=False, action="store_true")
|
default=False, action="store_true")
|
||||||
result.add_option("--cat", help="Print the source of the tests",
|
result.add_option("--cat", help="Print the source of the tests",
|
||||||
@ -1306,10 +1308,18 @@ def Main():
|
|||||||
shell = abspath(options.shell)
|
shell = abspath(options.shell)
|
||||||
buildspace = dirname(shell)
|
buildspace = dirname(shell)
|
||||||
|
|
||||||
context = Context(workspace, buildspace, VERBOSE,
|
processor = GetSpecialCommandProcessor(options.special_command)
|
||||||
|
if options.use_http2:
|
||||||
|
def wrap(processor):
|
||||||
|
return lambda args: processor(args[:1] + ['--use-http2'] + args[1:])
|
||||||
|
processor = wrap(processor)
|
||||||
|
|
||||||
|
context = Context(workspace,
|
||||||
|
buildspace,
|
||||||
|
VERBOSE,
|
||||||
shell,
|
shell,
|
||||||
options.timeout,
|
options.timeout,
|
||||||
GetSpecialCommandProcessor(options.special_command),
|
processor,
|
||||||
options.suppress_dialogs,
|
options.suppress_dialogs,
|
||||||
options.store_unexpected_output)
|
options.store_unexpected_output)
|
||||||
# First build the required targets
|
# First build the required targets
|
||||||
|
Loading…
x
Reference in New Issue
Block a user