aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
authorGravatar Tim Emiola <tbetbetbe@users.noreply.github.com>2015-10-07 11:55:26 -0700
committerGravatar Tim Emiola <tbetbetbe@users.noreply.github.com>2015-10-07 11:55:26 -0700
commit0862bcf8d8f7759dfcce1de897d8db81fcd5d296 (patch)
treed3d7cfd4a25ba15bd902ea89b40f1518853c90c6 /tools
parente662881f860fa9d7dd6b44fb0cb9210ce9df474b (diff)
parent243be4e447526598ddd0c6e5b20d260d6db93a4e (diff)
Merge pull request #3625 from murgatroid99/node_single_install_step
Node single install step
Diffstat (limited to 'tools')
-rwxr-xr-xtools/run_tests/build_node.sh5
-rwxr-xr-xtools/run_tests/run_node.sh12
-rwxr-xr-xtools/run_tests/run_tests.py42
3 files changed, 5 insertions, 54 deletions
diff --git a/tools/run_tests/build_node.sh b/tools/run_tests/build_node.sh
index 95ffb94c6e..faa7b624b8 100755
--- a/tools/run_tests/build_node.sh
+++ b/tools/run_tests/build_node.sh
@@ -36,9 +36,4 @@ CONFIG=${CONFIG:-opt}
# change to grpc repo root
cd $(dirname $0)/../..
-export CXXFLAGS=-I`pwd`/include
-export LDFLAGS=-L`pwd`/libs/$CONFIG
-
-cd src/node
-
npm install --unsafe-perm
diff --git a/tools/run_tests/run_node.sh b/tools/run_tests/run_node.sh
index e322ab1995..780969089d 100755
--- a/tools/run_tests/run_node.sh
+++ b/tools/run_tests/run_node.sh
@@ -37,19 +37,15 @@ cd $(dirname $0)/../..
root=`pwd`
-cd $root/src/node
-
-export LD_LIBRARY_PATH=$root/libs/$CONFIG
-
if [ "$CONFIG" = "gcov" ]
then
- ./node_modules/.bin/istanbul cover --dir ../../reports/node_coverage \
- ./node_modules/.bin/_mocha -- --timeout 8000
+ ./node_modules/.bin/istanbul cover --dir reports/node_coverage \
+ ./node_modules/.bin/_mocha -- --timeout 8000 src/node/test
cd build
gcov Release/obj.target/grpc/ext/*.o
lcov --base-directory . --directory . -c -o coverage.info
- genhtml -o ../../../reports/node_ext_coverage --num-spaces 2 \
+ genhtml -o ../reports/node_ext_coverage --num-spaces 2 \
-t 'Node gRPC test coverage' coverage.info
else
- ./node_modules/mocha/bin/mocha --timeout 8000
+ ./node_modules/mocha/bin/mocha --timeout 8000 src/node/test
fi
diff --git a/tools/run_tests/run_tests.py b/tools/run_tests/run_tests.py
index 4e71e3e4b6..122102ea05 100755
--- a/tools/run_tests/run_tests.py
+++ b/tools/run_tests/run_tests.py
@@ -181,45 +181,6 @@ class CLanguage(object):
def __str__(self):
return self.make_target
-
-def gyp_test_paths(travis, config=None):
- binaries = get_c_tests(travis, 'c')
- out = []
- for target in binaries:
- if config is not None and config.build_config in target['exclude_configs']:
- continue
- binary = 'out/Debug/%s' % target['name']
- out.append(binary)
- return sorted(out)
-
-
-class GYPCLanguage(object):
-
- def test_specs(self, config, travis):
- return [config.job_spec([binary], [binary])
- for binary in gyp_test_paths(travis, config)]
-
- def pre_build_steps(self):
- return [['gyp', '--depth=.', '--suffix=-gyp', 'grpc.gyp']]
-
- def make_targets(self):
- # HACK(ctiller): force fling_client and fling_server to be built, as fling_test
- # needs these
- return gyp_test_paths(False) + ['fling_client', 'fling_server']
-
- def build_steps(self):
- return []
-
- def makefile_name(self):
- return 'Makefile-gyp'
-
- def supports_multi_config(self):
- return False
-
- def __str__(self):
- return 'gyp'
-
-
class NodeLanguage(object):
def test_specs(self, config, travis):
@@ -230,7 +191,7 @@ class NodeLanguage(object):
return []
def make_targets(self):
- return ['static_c', 'shared_c']
+ return []
def build_steps(self):
return [['tools/run_tests/build_node.sh']]
@@ -483,7 +444,6 @@ _DEFAULT = ['opt']
_LANGUAGES = {
'c++': CLanguage('cxx', 'c++'),
'c': CLanguage('c', 'c'),
- 'gyp': GYPCLanguage(),
'node': NodeLanguage(),
'php': PhpLanguage(),
'python': PythonLanguage(),