Browse Source

add 'make test'

v0.7.4-release
Ryan 16 years ago
parent
commit
ec9697b1ba
  1. 9
      configure
  2. 12
      wscript

9
configure

@ -100,6 +100,12 @@ uninstall:
$WAF uninstall ; \\ $WAF uninstall ; \\
fi; fi;
test: all
@for i in test/test*.js; do \\
echo -n "\$\$i: "; \\
build/default/node \$\$i && echo pass || echo fail; \\
done
clean: clean:
@$WAF clean @$WAF clean
@ -107,6 +113,7 @@ distclean:
@$WAF distclean @$WAF distclean
@-rm -rf _build_ @-rm -rf _build_
@-rm -f Makefile @-rm -f Makefile
@-rm -f *.pyc
check: check:
@$WAF check @$WAF check
@ -114,7 +121,7 @@ check:
dist: dist:
@$WAF dist @$WAF dist
.PHONY: clean dist distclean check uninstall install all .PHONY: clean dist distclean check uninstall install all test
EOF EOF
} }

12
wscript

@ -77,18 +77,18 @@ def build(bld):
deps_tgt = join(bld.srcnode.abspath(bld.env),"deps") deps_tgt = join(bld.srcnode.abspath(bld.env),"deps")
v8dir_src = join(deps_src,"v8") v8dir_src = join(deps_src,"v8")
v8dir_tgt = join(deps_tgt, "v8") v8dir_tgt = join(deps_tgt, "v8")
v8lib = bld.env["staticlib_PATTERN"] % "v8_g" #v8lib = bld.env["staticlib_PATTERN"] % "v8_g"
#v8lib = bld.env["staticlib_PATTERN"] % "v8" v8lib = bld.env["staticlib_PATTERN"] % "v8"
v8 = bld.new_task_gen( v8 = bld.new_task_gen(
target=join("deps/v8",v8lib), 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 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 library=static snapshot=on'
% ( v8dir_src , deps_tgt , v8dir_tgt), % ( v8dir_src , deps_tgt , v8dir_tgt),
before="cxx" before="cxx"
) )
bld.env["CPPPATH_V8"] = "deps/v8/include" bld.env["CPPPATH_V8"] = "deps/v8/include"
#bld.env["STATICLIB_V8"] = "v8" bld.env["STATICLIB_V8"] = "v8"
bld.env["STATICLIB_V8"] = "v8_g" #bld.env["STATICLIB_V8"] = "v8_g"
bld.env["LIBPATH_V8"] = v8dir_tgt bld.env["LIBPATH_V8"] = v8dir_tgt
bld.env["LINKFLAGS_V8"] = "-pthread" bld.env["LINKFLAGS_V8"] = "-pthread"

Loading…
Cancel
Save