From 79c55ee5b2ac1e55ff786192a7fe1cb4853c54f7 Mon Sep 17 00:00:00 2001 From: walter-weinmann Date: Fri, 10 Feb 2017 14:31:17 +0100 Subject: [PATCH] Minor configuration refinements. --- .gitignore | 27 ++++++++++++++------------- cover.spec | 10 ++++++---- rebar.config | 17 ++++++----------- src/ocparse.app.src | 11 ++--------- test/ocparse_test.erl | 12 ++++++------ 5 files changed, 34 insertions(+), 43 deletions(-) diff --git a/.gitignore b/.gitignore index 0a062be..0cd41f3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,13 +1,14 @@ -*.dot -/_build -/erl_crash.dump -/rebar.lock -/src/oclexer.erl -/src/oclexer_legacy.erl -/src/ocparse.erl -/src/ocparse_legacy.erl -/test/*.beam -/test/generic_*.legacy -/test/generic_*.tst -/test/generic_*_SUITE.erl -/test/wwe.* +_build +erl_crash.dump +rebar.lock +src/oclexer.dot +src/oclexer.erl +src/oclexer_legacy.dot +src/oclexer_legacy.erl +src/ocparse.erl +src/ocparse_legacy.erl +test/*.beam +test/generic_*.legacy +test/generic_*.tst +test/generic_*_SUITE.erl +test/wwe.* diff --git a/cover.spec b/cover.spec index 673982f..5893300 100644 --- a/cover.spec +++ b/cover.spec @@ -1,5 +1,7 @@ {level, details}. -{incl_app, ocparse, details}. -{excl_mods, ocparse, [app_SUITE]}. -{incl_dirs_r, ["src"]}. -{src_dirs, ocparse, ["src"]}. \ No newline at end of file +{excl_mods, [ + oclexer, + oclexer_legacy, + ocparse, + ocparse_legacy +]}. diff --git a/rebar.config b/rebar.config index 1227ddd..3065059 100644 --- a/rebar.config +++ b/rebar.config @@ -1,4 +1,10 @@ {cover_enabled, true}. +{cover_excl_mods, [ + oclexer, + oclexer_legacy, + ocparse, + ocparse_legacy +]}. {ct_cover, true}. {ct_verbose, true}. @@ -17,17 +23,6 @@ {skip_deps, true}, verbose ]}. -{eunit_exclude_deps, true}. - -{profiles, [ - {prod, [ - {erl_opts, [no_debug_info, - warnings_as_errors]} - ]}, - {test, [ - {erl_opts, [debug_info]} - ]} -]}. {xref_checks, [ deprecated_functions, diff --git a/src/ocparse.app.src b/src/ocparse.app.src index 738754f..5486ef5 100644 --- a/src/ocparse.app.src +++ b/src/ocparse.app.src @@ -10,17 +10,10 @@ {mod, {ocparse, []}}, {modules, [ - generate_test_data, - oclexer, - oclexer_legacy, ocparse, - ocparse_fold, - ocparse_fold_legacy, - ocparse_legacy, - octest, - octest_legacy + ocparse_legacy ] }, - {vsn, "1.2.4"} + {vsn, "1.2.6"} ] }. diff --git a/test/ocparse_test.erl b/test/ocparse_test.erl index 7d01ab9..17d672c 100644 --- a/test/ocparse_test.erl +++ b/test/ocparse_test.erl @@ -168,13 +168,13 @@ test_cypher(_TestGroup, Test, Logs) -> throw({error, "Error catch ?assertEqual(ParseTree, NPTree)"}) end, ?D4("~n ~p~n", [ParseTree]); - {lex_error, Error} -> + {lex_error, _Error} -> ?D_("Failed lex_error : Test ~n > ~p", [Test]), - ?D_("Failed lex_error : Error~n > ~p", [Error]), - ?assertEqual(ok, Error); - {parse_error, {Error, _Tokens}} -> + ?D_("Failed lex_error : Error~n > ~p", [_Error]), + ?assertEqual(ok, _Error); + {parse_error, {_Error, _Tokens}} -> ?D_("Failed parse_error : Test ~n > ~p", [Test]), - ?D_("Failed parse_error : Error ~n > ~p", [Error]), + ?D_("Failed parse_error : Error ~n > ~p", [_Error]), ?D_("Failed parse_error : Tokens~n > ~p", [_Tokens]), - ?assertEqual(ok, Error) + ?assertEqual(ok, _Error) end.