File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -25,5 +25,8 @@ test-unit:
2525test-connection :
2626 @node script/test-connection.js $(params )
2727
28+ test-libpg : test-unit
29+ @find test/integration/client -name " *-tests.js" | $(node-command ) --libpg true
30+
2831test-integration : test-connection
2932 @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++) {
3838 case '-t' :
3939 case '--test' :
4040 config . test = args [ ++ i ] ;
41+ case '--libpg' :
42+ config . libpg = ( args [ ++ i ] == "true" ) ;
4143 default :
4244 break ;
4345 }
Original file line number Diff line number Diff line change 11require . paths . unshift ( __dirname + '/../lib/' ) ;
22
3- Client = require ( 'client' ) ;
43EventEmitter = require ( 'events' ) . EventEmitter ;
54
65sys = require ( 'sys' ) ;
@@ -10,6 +9,12 @@ buffers = require(__dirname + '/test-buffers');
109Connection = require ( 'connection' ) ;
1110var args = require ( __dirname + '/cli' ) ;
1211
12+ if ( args . libpg ) {
13+ } else {
14+ Client = require ( 'client' ) ;
15+ }
16+
17+
1318process . on ( 'uncaughtException' , function ( d ) {
1419 if ( 'stack' in d && 'message' in d ) {
1520 console . log ( "Message: " + d . message ) ;
You can’t perform that action at this time.
0 commit comments