File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ CFLAGS ?= -O2 -march=native
3
3
GNATMAKE = gprbuild -dm -p
4
4
GNATCLEAN = gprclean -q
5
5
GNATINSTALL = gprinstall
6
+ GNATPROVE = gnatprove --cwe --pedantic -k -j0 --output-header
6
7
7
8
PREFIX ?= /usr
8
9
@@ -18,7 +19,7 @@ installcmd = $(GNATINSTALL) -p \
18
19
--ali-subdir=$(alidir ) \
19
20
--prefix=$(PREFIX )
20
21
21
- .PHONY : build tests tools debug clean coverage install uninstall
22
+ .PHONY : build tests tools debug clean coverage prove install uninstall
22
23
23
24
build :
24
25
$(GNATMAKE ) -P tools/json_ada.gpr -cargs $(CFLAGS )
@@ -33,10 +34,14 @@ debug:
33
34
$(GNATMAKE ) -P tools/json_ada.gpr -XMode=debug -cargs $(CFLAGS )
34
35
35
36
clean :
37
+ -$(GNATPROVE ) --clean -P tools/json_ada.gpr
36
38
$(GNATCLEAN ) -P tools/json_ada.gpr
37
39
$(GNATCLEAN ) -P tests/unit/unit_tests.gpr
38
40
rm -rf bin build tests/unit/build test/cov TEST-* .xml
39
41
42
+ prove :
43
+ $(GNATPROVE ) --level=4 --prover=all --mode=check -P tools/json_ada.gpr
44
+
40
45
tests : build_test
41
46
./tests/unit/test_bindings
42
47
You can’t perform that action at this time.
0 commit comments