Permalink
Browse files

Merge pull request #12 from japj/gyp

gyp support for node 0.6.x
  • Loading branch information...
2 parents 3330899 + 147c363 commit d7aed7e0da71db9adcffd361730a188430455f08 @baudehlo committed May 22, 2012
View
@@ -0,0 +1,10 @@
+{
+ "targets": [
+ {
+ "target_name": "fs-ext",
+ "sources": [
+ "fs-ext.cc"
+ ]
+ }
+ ]
+}
View
@@ -20,8 +20,6 @@
// argument values, rather than calling the callback with the error?
-// Make this new-built copy of fs-ext available for testing
-require.paths.unshift(__dirname + '/..');
// console.log( require.resolve('../fs-ext'));
var assert = require('assert'),
@@ -154,7 +152,7 @@ if ( tests_run !== tests_ok ) {
// Test that constants are published - - - - - - - -
-var fs_binding = require('../build/default/fs-ext');
+var fs_binding = require('../build/Release/fs-ext');
var constant_names = [ 'LOCK_EX', 'LOCK_NB', 'LOCK_SH', 'LOCK_UN' ];
@@ -19,8 +19,6 @@
//TODO and Questions
-// Make this new-built copy of fs-ext available for testing
-require.paths.unshift(__dirname + '/..');
// console.log( require.resolve('../fs-ext'));
var assert = require('assert'),
View
@@ -41,8 +41,6 @@
// constants from system library values.
-// Make this new-built copy of fs-ext available for testing
-require.paths.unshift(__dirname + '/..');
// console.log( require.resolve('../fs-ext'));
var assert = require('assert'),
@@ -248,7 +246,7 @@ if ( tests_run !== tests_ok ) {
// Test that constants are published - - - - - - - -
-var fs_binding = require('../build/default/fs-ext');
+var fs_binding = require('../build/Release/fs-ext');
var constant_names = [ 'SEEK_SET', 'SEEK_CUR', 'SEEK_END' ];
@@ -22,8 +22,6 @@
// Ideas for testing borrowed from bnoordhuis (Ben Noordhuis)
-// Make this new-built copy of fs-ext available for testing
-require.paths.unshift(__dirname + '/..');
// console.log( require.resolve('../fs-ext'));
var assert = require('assert'),
View
@@ -19,8 +19,6 @@
// They do! Just not documented!
-// Make this new-built copy of fs-ext available for testing
-require.paths.unshift(__dirname + '/..');
// console.log( require.resolve('../fs-ext'));
var assert = require('assert'),
@@ -17,8 +17,6 @@
//TODO and Questions
-// Make this new-built copy of fs-ext available for testing
-require.paths.unshift(__dirname + '/..');
// console.log( require.resolve('../fs-ext'));
var assert = require('assert'),

0 comments on commit d7aed7e

Please sign in to comment.