git ssb

0+

cel-desktop / ssb-pkg



Tree: 65191f9a9664f013ebe726bb95a1a54b086e1bd5

Files: 65191f9a9664f013ebe726bb95a1a54b086e1bd5 / test / test-50-sigusr1 / main.js

608 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 windows = process.platform === 'win32';
14const input = './test-x-index.js';
15const output = './test-output.exe';
16
17if (windows) return;
18
19let right;
20
21utils.pkg.sync([
22 '--target', target,
23 '--output', output, input
24]);
25
26right = utils.spawn.sync(
27 './' + path.basename(output), [],
28 { expect: null }
29);
30
31assert.equal(right, 'ok\n');
32utils.vacuum.sync(output);
33

Built with git-ssb-web