Skip to content

Commit

Permalink
Add 'test' target for node-waf.
Browse files Browse the repository at this point in the history
Update node to v0.1.33-131-gbfdc421, bindings works good.
  • Loading branch information
Sannis committed Mar 20, 2010
1 parent cf8279d commit a1d4250
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README
Expand Up @@ -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

Expand Down
7 changes: 5 additions & 2 deletions 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 = "."
Expand All @@ -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:
Expand Down

0 comments on commit a1d4250

Please sign in to comment.