forked from holepunchto/bare-make
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.js
More file actions
39 lines (29 loc) · 1.07 KB
/
Copy pathtest.js
File metadata and controls
39 lines (29 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
const test = require('brittle')
const path = require('path')
const { isWindows } = require('which-runtime')
const make = require('.')
test('basic', { timeout: 120000 }, async (t) => {
const cwd = path.resolve(__dirname, 'test/fixtures/basic')
await t.execution(make.generate({ cwd, cache: false, stdio: 'inherit' }))
await t.execution(make.build({ cwd, clean: true, stdio: 'inherit' }))
await t.execution(make.install({ cwd, stdio: 'inherit' }))
})
test('address sanitizier', { skip: isWindows, timeout: 120000 }, async (t) => {
const cwd = path.resolve(__dirname, 'test/fixtures/basic')
await t.execution(
make.generate({
cwd,
cache: false,
stdio: 'inherit',
sanitize: 'address'
})
)
await t.execution(make.build({ cwd, clean: true, stdio: 'inherit' }))
})
test('color', { timeout: 120000 }, async (t) => {
const cwd = path.resolve(__dirname, 'test/fixtures/basic')
await t.execution(
make.generate({ cwd, cache: false, color: true, stdio: 'inherit' })
)
await t.execution(make.build({ cwd, clean: true, stdio: 'inherit' }))
})