From a1d4250e22634ce018511c014d72145088cf6a12 Mon Sep 17 00:00:00 2001 From: Oleg Efimov Date: Sat, 20 Mar 2010 14:07:13 +0300 Subject: [PATCH] Add 'test' target for node-waf. Update node to v0.1.33-131-gbfdc421, bindings works good. --- README | 2 +- wscript | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/README b/README index ffaf20c..36aea48 100644 --- a/README +++ b/README @@ -8,7 +8,7 @@ The two files required to use these bindings are mysql-sync.js and build/default/mysql_sync_bindings.node. Put this directory in your NODE_PATH or copy those two files where you need them. -Tested with Node version v0.1.30-36-g6670154 +Tested with Node version v0.1.33-131-gbfdc421 == Node.js diff --git a/wscript b/wscript index 9a09c2d..8f39a88 100644 --- a/wscript +++ b/wscript @@ -1,5 +1,5 @@ import Options -from os import unlink, symlink +from os import unlink, symlink, chdir, execl from os.path import exists srcdir = "." @@ -24,10 +24,13 @@ def build(bld): #obj.uselib = "MYSQL" obj.lib = "mysqlclient" -t = 'mysql_sync_bindings.node' +def test(tst): + execl('./tests/test.js') + def shutdown(): # HACK to get bindings.node out of build directory. # better way to do this? + t = 'mysql_sync_bindings.node' if Options.commands['clean']: if exists(t): unlink(t) else: