diff options
author | Kai Engert <kaie@kuix.de> | 2019-09-13 00:30:37 +0200 |
---|---|---|
committer | Kai Engert <kaie@kuix.de> | 2019-09-13 00:30:37 +0200 |
commit | b505efee370aa7e9332482cce742189c168d9232 (patch) | |
tree | 3da9734e2252ae5aeb8323022e486f3beefdff5c /coreconf | |
parent | 748ac995dfa31f9d170e9e70e9ecf50afbee6162 (diff) | |
download | nss-hg-b505efee370aa7e9332482cce742189c168d9232.tar.gz |
Bug 1385061 - Build NSPR tests with NSS make; Add gyp parameters to build/run NSPR tests. r=jcj
Diffstat (limited to 'coreconf')
-rw-r--r-- | coreconf/nspr.sh | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/coreconf/nspr.sh b/coreconf/nspr.sh index 325a188c3..d84674e0e 100644 --- a/coreconf/nspr.sh +++ b/coreconf/nspr.sh @@ -36,15 +36,30 @@ nspr_build() extra_params+=(--enable-64bit) fi - echo "NSPR [1/3] configure ..." + echo "NSPR [1/5] configure ..." pushd "$nspr_dir" >/dev/null CFLAGS="$nspr_cflags" CXXFLAGS="$nspr_cxxflags" \ LDFLAGS="$nspr_ldflags" CC="$CC" CXX="$CCC" \ run_verbose ../configure "${extra_params[@]}" "$@" popd >/dev/null - echo "NSPR [2/3] make ..." + echo "NSPR [2/5] make ..." run_verbose make -C "$nspr_dir" - echo "NSPR [3/3] install ..." + + if [ "$build_nspr_tests" = 1 ]; then + echo "NSPR [3/5] build tests ..." + run_verbose make -C "$nspr_dir/pr/tests" + else + echo "NSPR [3/5] NOT building tests" + fi + + if [[ "$build_nspr_tests" = 1 && "$run_nspr_tests" = 1 ]]; then + echo "NSPR [4/5] run tests ..." + run_verbose make -C "$nspr_dir/pr/tests" runtests + else + echo "NSPR [4/5] NOT running tests" + fi + + echo "NSPR [5/5] install ..." run_verbose make -C "$nspr_dir" install } |