Update tests for linting

This commit is contained in:
Rudi Grinberg 2018-01-10 02:14:55 +08:00
parent ca1c8dd897
commit f490540538
2 changed files with 12 additions and 1 deletions

View File

@ -7,6 +7,10 @@
((name rlib)
(public_name rlib)
(modules (bar cppome foo hello pped))
(lint
(per_module
((pps (reasonppx (-lint true))) (hello cppome))
((action (run ./pp/reasononlypp.exe -lint ${<})) (foo bar pped))))
(preprocess
(per_module
((pps (reasonppx)) (foo))
@ -16,6 +20,7 @@
(executable
((name rbin)
(modules (rbin))
(lint (action (run ./pp/reasononlypp.exe -lint ${<})))
(preprocess (action (run ./pp/reasononlypp.exe ${<})))
(libraries (rlib))))
@ -28,4 +33,4 @@
(alias
((name runtest)
(deps (rbin.exe))
(action (run ${<}))))
(action (run ${<}))))

View File

@ -86,3 +86,9 @@
"_build/install/default/lib/rlib/rlib.a"
"_build/install/default/lib/rlib/rlib.cmxs"
]
ocamlopt rbin.exe
rbin alias runtest
Cppome
hello world
Bar
Foo