-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
35 lines (27 loc) · 943 Bytes
/
Makefile
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
all: test
build/TestFail: tests/TestFail.juvix $(wildcard ./**/*.juvix)
@mkdir -p build/
juvix compile native -o build/TestFail tests/TestFail.juvix
build/TestPass: tests/TestPass.juvix $(wildcard ./**/*.juvix)
@mkdir -p build/
juvix compile native -o build/TestPass tests/TestPass.juvix
build/Example: Example.juvix $(wildcard ./**/*.juvix)
@mkdir -p build/
juvix compile native -o build/Example Example.juvix
.PHONY : example
example: build/Example
./build/Example
.PHONY : test
test: build/TestFail build/TestPass build/Example
tests/check_output.sh "./build/TestPass" expect_success "OK,Suite passed"
tests/check_output.sh "./build/TestFail" expect_fail "FAIL,OK,Suite failed"
tests/check_output.sh "./build/Example" expect_success "OK,Suite passed"
.PHONY: clean-build
clean-build:
@rm -rf build/
.PHONY: clean-deps
clean-deps:
@juvix clean
@(cd tests && exec juvix clean)
.PHONY: clean
clean: clean-deps clean-build