Skip to content
Snippets Groups Projects
Commit 051a28ff authored by Nicolas "Pixel" Noble's avatar Nicolas "Pixel" Noble
Browse files

Implements #276

Adds a Makefile target called 'test_python' that first builds grpc, then call run_tests.py to run the python tests for the current configuration.
parent d9427202
No related branches found
No related tags found
No related merge requests found
...@@ -1837,6 +1837,11 @@ test_cxx: buildtests_cxx ...@@ -1837,6 +1837,11 @@ test_cxx: buildtests_cxx
$(Q) $(BINDIR)/$(CONFIG)/thread_pool_test || ( echo test thread_pool_test failed ; exit 1 ) $(Q) $(BINDIR)/$(CONFIG)/thread_pool_test || ( echo test thread_pool_test failed ; exit 1 )
   
   
test_python: static_c
$(E) "[RUN] Testing python code"
$(Q) tools/run_tests/run_tests.py -lpython -c$(CONFIG)
tools: privatelibs $(BINDIR)/$(CONFIG)/gen_hpack_tables $(BINDIR)/$(CONFIG)/grpc_create_jwt $(BINDIR)/$(CONFIG)/grpc_fetch_oauth2 $(BINDIR)/$(CONFIG)/grpc_print_google_default_creds_token tools: privatelibs $(BINDIR)/$(CONFIG)/gen_hpack_tables $(BINDIR)/$(CONFIG)/grpc_create_jwt $(BINDIR)/$(CONFIG)/grpc_fetch_oauth2 $(BINDIR)/$(CONFIG)/grpc_print_google_default_creds_token
   
buildbenchmarks: privatelibs $(BINDIR)/$(CONFIG)/grpc_completion_queue_benchmark $(BINDIR)/$(CONFIG)/low_level_ping_pong_benchmark buildbenchmarks: privatelibs $(BINDIR)/$(CONFIG)/grpc_completion_queue_benchmark $(BINDIR)/$(CONFIG)/low_level_ping_pong_benchmark
...@@ -653,6 +653,11 @@ test_cxx: buildtests_cxx ...@@ -653,6 +653,11 @@ test_cxx: buildtests_cxx
% endfor % endfor
test_python: static_c
$(E) "[RUN] Testing python code"
$(Q) tools/run_tests/run_tests.py -lpython -c$(CONFIG)
tools: privatelibs\ tools: privatelibs\
% for tgt in targets: % for tgt in targets:
% if tgt.build == 'tool': % if tgt.build == 'tool':
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment