From f490540538cb8999b926a84129f20f08775c2800 Mon Sep 17 00:00:00 2001 From: Rudi Grinberg Date: Wed, 10 Jan 2018 02:14:55 +0800 Subject: [PATCH] Update tests for linting --- test/blackbox-tests/test-cases/reason/jbuild | 7 ++++++- test/blackbox-tests/test-cases/reason/run.t | 6 ++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/test/blackbox-tests/test-cases/reason/jbuild b/test/blackbox-tests/test-cases/reason/jbuild index a51a3f06..9f06e8ad 100644 --- a/test/blackbox-tests/test-cases/reason/jbuild +++ b/test/blackbox-tests/test-cases/reason/jbuild @@ -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 ${<})))) \ No newline at end of file + (action (run ${<})))) diff --git a/test/blackbox-tests/test-cases/reason/run.t b/test/blackbox-tests/test-cases/reason/run.t index db40a876..4d4fc656 100644 --- a/test/blackbox-tests/test-cases/reason/run.t +++ b/test/blackbox-tests/test-cases/reason/run.t @@ -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