File tree Expand file tree Collapse file tree 3 files changed +30
-6
lines changed Expand file tree Collapse file tree 3 files changed +30
-6
lines changed File renamed without changes.
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ JS = # set to JS shell command to run JS tests
27
27
28
28
# Main targets
29
29
30
- .PHONY : default opt unopt libopt libunopt jslib all land zip smallint
30
+ .PHONY : default opt unopt libopt libunopt jslib all land zip smallint dunebuild
31
31
32
32
default : opt
33
33
debug : unopt
@@ -41,6 +41,8 @@ land: $(WINMAKE) all
41
41
zip : $(ZIP )
42
42
smallint : smallint.native
43
43
44
+ dunebuild :
45
+ dune build
44
46
45
47
# Building executable
46
48
@@ -136,7 +138,7 @@ TESTDIR = ../test/core
136
138
TESTFILES = $( shell cd $( TESTDIR) ; ls * .wast; ls [a-z]* /* .wast)
137
139
TESTS = $( TESTFILES:%.wast=%)
138
140
139
- .PHONY: test debugtest partest
141
+ .PHONY: test debugtest partest dune-test
140
142
141
143
test: $( OPT) smallint
142
144
$( TESTDIR) /run.py --wasm ` pwd` /$( OPT) $( if $( JS) ,--js ' $(JS)' ,)
@@ -168,6 +170,9 @@ quiettest/%: $(OPT)
168
170
smallinttest: smallint
169
171
@./smallint.native
170
172
173
+ dunetest:
174
+ dune test
175
+
171
176
# Miscellaneous targets
172
177
173
178
.PHONY: clean
Original file line number Diff line number Diff line change 3
3
(library
4
4
(name wasm)
5
5
; The 'main' module shall not be part of the library, as it would start the
6
- ; WASM REPL every time in all the dependencies.
6
+ ; Wasm REPL every time in all the dependencies.
7
7
; We also need to exclude the 'wasm' module as it overlaps with the library
8
8
; name.
9
- (modules :standard \ main wasm))
9
+ ; 'smallint' is a separate test module.
10
+ (modules :standard \ main wasm smallint))
10
11
11
12
(executable
12
13
(name main)
15
16
(flags
16
17
(-open Wasm)))
17
18
19
+ (executable
20
+ (name smallint)
21
+ (modules smallint)
22
+ (libraries wasm)
23
+ (flags
24
+ (-open Wasm)))
25
+
18
26
(subdir
19
27
text
20
28
(rule
28
36
(modules parser)))
29
37
30
38
(env
31
- (dev
39
+ (_
32
40
(flags
33
- (-w +a-4-27-42-44-45 -warn-error +a-3))))
41
+ (-w +a-4-27-42-44-45-70 -warn-error +a-3))))
42
+
43
+ (rule
44
+ (alias runtest)
45
+ (deps
46
+ ./main.exe
47
+ ./smallint.exe
48
+ (source_tree ../test))
49
+ (action
50
+ (progn
51
+ (run ../test/core/run.py --wasm ./main.exe)
52
+ (run ./smallint.exe))))
You can’t perform that action at this time.
0 commit comments