diff options
author | Forrest L Norvell <forrest@npmjs.com> | 2015-11-25 21:12:51 +0300 |
---|---|---|
committer | Forrest L Norvell <forrest@npmjs.com> | 2015-11-25 22:43:33 +0300 |
commit | 1d14d882c3b5af0a7fee46e8e0e343d07e4c38cb (patch) | |
tree | 06774f9d4b8a3aa75e4f0cd8db69a6e321f8514d /node_modules/node-gyp/test/test-find-python.js | |
parent | 0e2013e5f16d50369db56af4d272101e606d7370 (diff) |
node-gyp@3.2.0
- Use result of `which` when searching for Python. (@refack)
- Add support for AIX. (@mhdawson)
- Update broken links and switch to HTTPS. (@drewish)
- Update to newer gyp. (@TooTallNate, @nathan7, @iWuzHere)
- Update to tar@2. (@Emuentes)
- process.platform will never be kfreebsd. (@kapouer)
Credit: @bnoordhuis
Reviewed-By: @othiym23
Diffstat (limited to 'node_modules/node-gyp/test/test-find-python.js')
-rw-r--r-- | node_modules/node-gyp/test/test-find-python.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/node_modules/node-gyp/test/test-find-python.js b/node_modules/node-gyp/test/test-find-python.js new file mode 100644 index 000000000..7f5c39467 --- /dev/null +++ b/node_modules/node-gyp/test/test-find-python.js @@ -0,0 +1,20 @@ +'use strict' + +var test = require('tape') +var configure = require('../lib/configure') +var execFile = require('child_process').execFile + +test('find python executable', function (t) { + t.plan(4) + + configure.test.findPython('python', function (err, found) { + t.strictEqual(err, null) + var proc = execFile(found, ['-V'], function (err, stdout, stderr) { + t.strictEqual(err, null) + t.strictEqual(stdout, '') + t.ok(/Python 2/.test(stderr)) + }) + proc.stdout.setEncoding('utf-8') + proc.stderr.setEncoding('utf-8') + }) +}) |