summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan <ry@tinyclouds.org>2009-04-21 13:51:05 +0200
committerRyan <ry@tinyclouds.org>2009-04-21 13:51:05 +0200
commitec9697b1ba442a21be2ad8046d96ace09ce95ac3 (patch)
treec08001fbc17c295f98a50886d2974447cf1113fe
parentf5b2a8f072ab8941eb5ac5fccb1fc8e1dcfc6c8b (diff)
downloadnode-new-ec9697b1ba442a21be2ad8046d96ace09ce95ac3.tar.gz
add 'make test'
-rwxr-xr-xconfigure9
-rw-r--r--wscript12
2 files changed, 14 insertions, 7 deletions
diff --git a/configure b/configure
index efa9df2671..db2d3c52b8 100755
--- a/configure
+++ b/configure
@@ -99,6 +99,12 @@ uninstall:
else \\
$WAF uninstall ; \\
fi;
+
+test: all
+ @for i in test/test*.js; do \\
+ echo -n "\$\$i: "; \\
+ build/default/node \$\$i && echo pass || echo fail; \\
+ done
clean:
@$WAF clean
@@ -107,6 +113,7 @@ distclean:
@$WAF distclean
@-rm -rf _build_
@-rm -f Makefile
+ @-rm -f *.pyc
check:
@$WAF check
@@ -114,7 +121,7 @@ check:
dist:
@$WAF dist
-.PHONY: clean dist distclean check uninstall install all
+.PHONY: clean dist distclean check uninstall install all test
EOF
}
diff --git a/wscript b/wscript
index dd87bff0bc..0ca952227c 100644
--- a/wscript
+++ b/wscript
@@ -77,18 +77,18 @@ def build(bld):
deps_tgt = join(bld.srcnode.abspath(bld.env),"deps")
v8dir_src = join(deps_src,"v8")
v8dir_tgt = join(deps_tgt, "v8")
- v8lib = bld.env["staticlib_PATTERN"] % "v8_g"
- #v8lib = bld.env["staticlib_PATTERN"] % "v8"
+ #v8lib = bld.env["staticlib_PATTERN"] % "v8_g"
+ v8lib = bld.env["staticlib_PATTERN"] % "v8"
v8 = bld.new_task_gen(
target=join("deps/v8",v8lib),
- rule='cp -rf %s %s && cd %s && scons -Q mode=debug library=static snapshot=on'
- #rule='cp -rf %s %s && cd %s && scons -Q library=static snapshot=on'
+ #rule='cp -rf %s %s && cd %s && scons -Q mode=debug library=static snapshot=on'
+ rule='cp -rf %s %s && cd %s && scons -Q library=static snapshot=on'
% ( v8dir_src , deps_tgt , v8dir_tgt),
before="cxx"
)
bld.env["CPPPATH_V8"] = "deps/v8/include"
- #bld.env["STATICLIB_V8"] = "v8"
- bld.env["STATICLIB_V8"] = "v8_g"
+ bld.env["STATICLIB_V8"] = "v8"
+ #bld.env["STATICLIB_V8"] = "v8_g"
bld.env["LIBPATH_V8"] = v8dir_tgt
bld.env["LINKFLAGS_V8"] = "-pthread"