-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathmake.vsh
More file actions
executable file
·35 lines (22 loc) · 985 Bytes
/
make.vsh
File metadata and controls
executable file
·35 lines (22 loc) · 985 Bytes
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
#!/usr/bin/env -S v run
import build
mut context := build.context(
default: 'test'
)
context.task(name: 'run', run: |self| system('v -g run .'))
context.task(name: 'check', run: |self| exit(system('v -check -shared .')))
context.task(name: 'format', run: |self| system('v fmt -w .'))
context.task(name: 'verify-format', run: |self| exit(system('v fmt -verify .')))
context.task(
name: 'test-root'
run: |self| exit(system('v test ./key_test.v && v test ./tea_test.v'))
)
context.task(name: 'test-term', run: |self| exit(system('v test ./lib/term')))
context.task(name: 'test-ext', run: |self| exit(system('v test ./tests')))
context.task(
name: 'test'
run: |self| exit(system('v test ./key_test.v && v test ./tea_test.v && v test ./lib/term && v test ./tests && v -check -shared .'))
)
context.task(name: 'test-all', run: |self| exit(system('v test .')))
context.task(name: 'compile-make', run: |self| system('v -prod -skip-running make.vsh -o make'))
context.run()