summaryrefslogtreecommitdiff
path: root/test/rebar_dir_SUITE.erl
Commit message (Collapse)AuthorAgeFilesLines
* Corrects a fix to src_dir valuesFred Hebert2017-09-271-2/+3
| | | | | | | | | | The previous patch at #7c959cc fixed the usage of duplicate values for directories through relative paths, but mistakenly went overboard and dropped the `./` path, which is still fairly common. Similarly for `../". The code is modified to special-case such values and keep the code working.
* Fix relative src dir specificationsFred Hebert2017-08-301-1/+1
| | | | | | | | When fetching src_dir values, some relative paths can be inserted. When deduplicating the paths on the fetch, this fact means that logically duplicate (but literally different) directories can be returned at once. By normalizing the names, duplication bugs can be resolved.
* Add 'recursive' optionSiri Hansen2016-11-211-3/+63
| | | | | | | | | | | | The option {recursive,boolean()} can now be set pr directory in 'src_dirs' and 'extra_src_dirs', and on top level in the new 'erlc_compiler' option. Example config: {erlc_compiler,[{recursive,false}]}. {src_dirs,[{"src",[{recursive,true}]}]}. This will cause recursive compilation within the "src" directory, but not in any other directoires.
* Read env var REBAR_CACHE_DIR on rebar3 only onceFrancisco Rojas2016-04-061-1/+1
| | | | | Instead of reading every time that rebar_dir:global_cache_dir/1 is called
* use priv_dir in rebar_dir testFrancisco Rojas2016-03-171-2/+2
|
* Allows overwrite default cache dir using REBAR_CACHE_DIRFrancisco Rojas2016-03-151-2/+34
| | | | | Allows overwrite the default cache directory using the environment variable REBAR_CACHE_DIR.
* Add tests for base_dir reconfigurationFred Hebert2015-12-191-3/+40
| | | | Tests both absolutes and relative paths.
* dedup `src_dirs` and `extra_src_dirs` on readalisdair sullivan2015-10-301-6/+6
|
* extract `retarget_path/2', `relative_path/2' and `reduce_path/1' andalisdair sullivan2015-09-131-5/+33
| | | | add tests
* wip: move state into app_infoTristan Sloughter2015-08-311-21/+21
|
* methods for retrieving `src_dirs` and `extra_src_dirs`alisdair sullivan2015-05-191-0/+99
note that now ALL `src_dirs` across included profiles are compiled. previously only the last included profile's `src_dirs` were used