]> gerrit.simantics Code Review - simantics/district.git/blob - org.simantics.maps.server/node/node-v4.8.0-win-x64/node_modules/npm/node_modules/node-gyp/test/test-find-python.js
Adding integrated tile server
[simantics/district.git] / org.simantics.maps.server / node / node-v4.8.0-win-x64 / node_modules / npm / node_modules / node-gyp / test / test-find-python.js
1 'use strict'
2
3 var test = require('tape')
4 var configure = require('../lib/configure')
5 var execFile = require('child_process').execFile
6
7 test('find python executable', function (t) {
8   t.plan(4)
9
10   configure.test.findPython('python', function (err, found) {
11     t.strictEqual(err, null)
12     var proc = execFile(found, ['-V'], function (err, stdout, stderr) {
13       t.strictEqual(err, null)
14       t.strictEqual(stdout, '')
15       t.ok(/Python 2/.test(stderr))
16     })
17     proc.stdout.setEncoding('utf-8')
18     proc.stderr.setEncoding('utf-8')
19   })
20 })