-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathjustfile
43 lines (31 loc) · 1.38 KB
/
justfile
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
40
41
42
43
zig:="zig-0.14.0"
out:=".dim-out"
default: install test
install:
{{zig}} build install
test: unit-test behaviour-tests build-test
unit-test:
{{zig}} build test
behaviour-tests: \
(behaviour-test "tests/basic/empty.dis") \
(behaviour-test "tests/basic/fill-0x00.dis") \
(behaviour-test "tests/basic/fill-0xAA.dis") \
(behaviour-test "tests/basic/fill-0xFF.dis") \
(behaviour-test "tests/basic/raw.dis") \
(behaviour-test "tests/part/mbr/minimal.dis") \
(behaviour-test "tests/part/mbr/no-part-bootloader.dis") \
(behaviour-test "tests/part/mbr/basic-single-part-sized.dis") \
(behaviour-test "tests/fs/fat12.dis") \
(behaviour-test "tests/fs/fat16.dis") \
(behaviour-test "tests/fs/fat32.dis") \
(behaviour-test "tests/compound/mbr-boot.dis")
behaviour-test script: install
@mkdir -p {{ join(out, parent_directory(script)) }}
./zig-out/bin/dimmer --output {{ join(out, without_extension(script) + ".img") }} --script "{{script}}" --size 33M
./zig-out/bin/dimmer --output {{ join(out, without_extension(script) + ".img") }} --deps-file {{ join(out, without_extension(script) + ".d") }} --script "{{script}}" --size 33M
# TODO(fqu): sfdisk --json .dim-out/tests/part/mbr/basic-single-part-unsized.img
[working-directory: 'tests/zig-build-interface']
build-test:
{{zig}} build
fuzz:
{{zig}} build install test --fuzz --port 35991