Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
test: bundle node-weak in test/gc so that it doesn't need to be downl…
Browse files Browse the repository at this point in the history
…oaded
  • Loading branch information
TooTallNate authored and piscisaureus committed Jun 13, 2012
1 parent 35a1421 commit 6a8b5b3
Show file tree
Hide file tree
Showing 8 changed files with 537 additions and 10 deletions.
13 changes: 6 additions & 7 deletions Makefile
Expand Up @@ -61,17 +61,16 @@ test-http1: all
test-valgrind: all
$(PYTHON) tools/test.py --mode=release --valgrind simple message

node_modules/weak:
test/gc/node_modules/weak/build:
@if [ ! -f node ]; then make all; fi
@if [ ! -d node_modules ]; then mkdir -p node_modules; fi
./node deps/npm/bin/npm-cli.js install weak \
--nodedir="$(shell pwd)" \
--prefix="$(shell pwd)" --unsafe-perm # go ahead and run as root.
./node deps/npm/node_modules/node-gyp/bin/node-gyp rebuild \
--directory="$(shell pwd)/test/gc/node_modules/weak" \
--nodedir="$(shell pwd)"

test-gc: all node_modules/weak
test-gc: all test/gc/node_modules/weak/build
$(PYTHON) tools/test.py --mode=release gc

test-all: all node_modules/weak
test-all: all test/gc/node_modules/weak/build
$(PYTHON) tools/test.py --mode=debug,release
make test-npm

Expand Down
13 changes: 13 additions & 0 deletions test/gc/node_modules/weak/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

114 changes: 114 additions & 0 deletions test/gc/node_modules/weak/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions test/gc/node_modules/weak/binding.gyp

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions test/gc/node_modules/weak/lib/weak.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

55 changes: 55 additions & 0 deletions test/gc/node_modules/weak/package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6a8b5b3

Please sign in to comment.