File tree 3 files changed +11
-1
lines changed
3 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -25,5 +25,8 @@ test-unit:
25
25
test-connection :
26
26
@node script/test-connection.js $(params )
27
27
28
+ test-libpg : test-unit
29
+ @find test/integration/client -name " *-tests.js" | $(node-command ) --libpg true
30
+
28
31
test-integration : test-connection
29
32
@find test/integration -name " *-tests.js" | $(node-command )
Original file line number Diff line number Diff line change @@ -38,6 +38,8 @@ for(var i = 0; i < args.length; i++) {
38
38
case '-t' :
39
39
case '--test' :
40
40
config . test = args [ ++ i ] ;
41
+ case '--libpg' :
42
+ config . libpg = ( args [ ++ i ] == "true" ) ;
41
43
default :
42
44
break ;
43
45
}
Original file line number Diff line number Diff line change 1
1
require . paths . unshift ( __dirname + '/../lib/' ) ;
2
2
3
- Client = require ( 'client' ) ;
4
3
EventEmitter = require ( 'events' ) . EventEmitter ;
5
4
6
5
sys = require ( 'sys' ) ;
@@ -10,6 +9,12 @@ buffers = require(__dirname + '/test-buffers');
10
9
Connection = require ( 'connection' ) ;
11
10
var args = require ( __dirname + '/cli' ) ;
12
11
12
+ if ( args . libpg ) {
13
+ } else {
14
+ Client = require ( 'client' ) ;
15
+ }
16
+
17
+
13
18
process . on ( 'uncaughtException' , function ( d ) {
14
19
if ( 'stack' in d && 'message' in d ) {
15
20
console . log ( "Message: " + d . message ) ;
You can’t perform that action at this time.
0 commit comments