git ssb

0+

cel-desktop / ssb-pkg



Tree: 67c0e15a98a66eb99db2251478505d6f3d37535c

Files: 67c0e15a98a66eb99db2251478505d6f3d37535c / test / test-50-many-callbacks / main.js

690 bytesRaw
1#!/usr/bin/env node
2
3'use strict';
4
5const path = require('path');
6const assert = require('assert');
7const utils = require('../utils.js');
8
9assert(!module.parent);
10assert(__dirname === process.cwd());
11
12const target = process.argv[2] || 'host';
13const input = './test-x-index.js';
14const output = './test-output.exe';
15
16if (process.arch === 'arm') return;
17
18let left, right;
19
20left = utils.spawn.sync(
21 'node', [ path.basename(input) ],
22 { cwd: path.dirname(input) }
23);
24
25utils.pkg.sync([
26 '--target', target,
27 '--output', output, input
28]);
29
30right = utils.spawn.sync(
31 './' + path.basename(output), [],
32 { cwd: path.dirname(output) }
33);
34
35assert.equal(left, right);
36utils.vacuum.sync(output);
37

Built with git-ssb-web