diff options
author | alisdair sullivan <alisdair.sullivan@askuity.com> | 2015-12-06 23:14:25 -0800 |
---|---|---|
committer | alisdair sullivan <alisdair.sullivan@askuity.com> | 2015-12-06 23:17:41 -0800 |
commit | d9ae98e4d8d4e8773d7db96e1d977ca8eff08472 (patch) | |
tree | c17ba4ed4c7256494a60088f08edb461a26c2ef2 /test | |
parent | d76b25e62dd3a0c575cc2b4353aad3dbbb934c0a (diff) |
symlink mib hrl output in apps `include' directories
this restores compatibility with rebar2 and erlang.mk
Diffstat (limited to 'test')
-rw-r--r-- | test/rebar_compile_SUITE.erl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/rebar_compile_SUITE.erl b/test/rebar_compile_SUITE.erl index 3e7e015..1170a44 100644 --- a/test/rebar_compile_SUITE.erl +++ b/test/rebar_compile_SUITE.erl @@ -1025,6 +1025,9 @@ mib_test(Config) -> %% check a hrl corresponding to the mib in the mibs dir exists in priv/mibs/include true = filelib:is_file(filename:join([PrivMibsDir, "include", "SIMPLE-MIB.hrl"])), + %% check a hrl corresponding to the mib in the mibs dir exists in include + true = filelib:is_file(filename:join([AppDir, "include", "SIMPLE-MIB.hrl"])), + %% check the mibs dir was linked into the _build dir true = filelib:is_dir(filename:join([AppDir, "_build", "default", "lib", Name, "mibs"])). @@ -1075,6 +1078,9 @@ umbrella_mib_first_test(Config) -> %% check a hrl corresponding to the mib in the mibs dir exists in priv/mibs/include true = filelib:is_file(filename:join([PrivMibsDir, "include", "SIMPLE-MIB.hrl"])), + %% check a hrl corresponding to the mib in the mibs dir exists in include + true = filelib:is_file(filename:join([AppDir, "include", "SIMPLE-MIB.hrl"])), + %% check the mibs dir was linked into the _build dir true = filelib:is_dir(filename:join([AppsDir, "_build", "default", "lib", Name, "mibs"])). |