Commit graph

1539 commits

Author SHA1 Message Date
Tuncer Ayaz
ebfb1dc40d Add option to show available commands
Implement new option -c/--commands to print available
commands and its variables.
2010-03-08 21:14:06 +01:00
Tuncer Ayaz
218051618f Add TODO file
A TODO file is always a good idea.
2010-03-06 13:22:07 +01:00
Tuncer Ayaz
aeabfb6fe9 Add escript_foldl/3 TODO
Comment what has to be done when the new OTP release is out
and the time is right.
2010-03-06 00:04:50 +01:00
Tuncer Ayaz
dfb5af4049 Add forward-compatible escript_foldl function
escript:foldl/3 was undocumented and has been replaced with
better APIs post-R13B04. The new exported funs are officially
documented.
2010-03-05 22:56:31 +01:00
Dave Smith
a49d257412 Merging eunit fixes + some UNIT TESTS!! from cebernard 2010-03-05 13:27:45 -07:00
Dave Smith
95227cf6ef Merging changes from vagabond 2010-03-05 10:25:47 -07:00
David Reid
a29da71aac Support for downloading deps via bzr. 2010-03-05 00:06:39 -08:00
David Reid
92a5a326d5 Support downloading deps via SVN. 2010-03-04 23:50:57 -08:00
Chris Bernard
25538e071f Fixed 3 bugs in rebar_eunit. Added EUnit tests to capture them.
1.  When running the eunit command with the convention of putting
tests in "*_tests" modules, eunit would run those tests twice.  This
is because: 1) eunit:test/1 will naturally look for foo's tests both
in foo, and in foo_tests, and 2) eunit:test/1 was being folded over
all project modules.  The fix is to filter "*_tests" modules from the
list passed to eunit:test/1.

2.  When running the eunit command with cover enabled and tests in a
'test' directory, cover would error because it couldn't find the
source code for those tests.  This is because cover:analyze/3 will
only find module source in "." and "../src".  This is hard-coded in
cover :-(.  Since cover shouldn't be calculating code coverage on test
code anyway, the fix is to not fold cover:analyze/3 over
non-production code.

3.  When running the eunit command with cover enabled and a test suite
defined, cover would only attempt to calculate coverage on the the
test suite itself.  This was because only the suite was passed to
cover:analyze/3.  The fix is to fold cover:analyze/3 over all the
production code, filtering out the suite module if it is defined.
2010-03-04 20:53:12 -05:00
Vagabond
50832a1a14 Don't detect the source file as an include of itself 2010-03-02 18:04:08 -05:00
Vagabond
a3f8489340 Move the .erl sorting to the right place 2010-03-02 17:58:05 -05:00
Vagabond
c4d3f0ea65 Fix dependancy checking for headers by ensuring "include" is always in the eep IncludePath 2010-03-02 17:34:12 -05:00
Vagabond
4ce01860e9 Compile parse transform and custom behaviours first 2010-03-02 17:13:58 -05:00
Tuncer Ayaz
56e30351f7 Add install command target= var to bash completion 2010-02-27 00:07:00 +01:00
Tuncer Ayaz
92e667b062 Add missing mode setting in Emacs file variables 2010-02-25 21:43:23 +01:00
Tuncer Ayaz
23781ae460 Fix unused var warning 2010-02-25 19:57:02 +01:00
theiw
8a3ad89f7c Refactor eunit and cover 2010-02-19 22:37:48 +00:00
Dave Smith
872076be3f Adding cleaner module to permit users to specify their own set of files to delete 2010-02-21 05:39:12 -07:00
Dave Smith
28d3b75641 Fix bug in templater where escript was not found in subdirs were specified in rebar.config; minor formatting cleanups 2010-02-20 20:15:07 -07:00
Dave Smith
496851cefd Add support for installing to a target directory as alternative to Erlang base dir 2010-02-20 13:42:44 -07:00
Tuncer Ayaz
00c855d030 Update comment for filelib:ensure_dir/1 wrapper.
The wrapper can now be removed as I've fixed the problem in R13B04.
2010-02-17 23:38:06 +01:00
Dave Smith
b0dfd233ae Make sure to add ebin/ to current path when compiling doterl files; found by @sj_mackenzie 2010-02-16 15:16:19 -07:00
Dave Smith
6714d47efb Deal properly with env vars that have multiple = in the value 2010-02-16 11:00:14 -07:00
Dave Smith
1f6d861aba Overhaul env expansion so that rebar fully expands env refs prior to invoking the shell script. Also now using DRV_* env vars for compilation/linking of files found in c_src; this frees up "normal" CFLAGS/LDFLAGS for usage in sub build scripts. 2010-02-16 07:05:29 -07:00
Dave Smith
51133313a6 Updating template defs to use "template" in lieu of "file" directive 2010-02-14 09:25:53 -07:00
Dave Smith
7bfa2405db Merging w/ http://bitbucket.org/bryan/rebar 2010-02-14 09:24:47 -07:00
Bryan Fink
f6feac493d provide separate 'file' and 'template' directives, instead of one 'file' directive with a boolean Render flag 2010-02-13 14:14:29 -05:00
Dave Smith
0f7b47ce7b Merging w/ mainline 2010-02-13 10:18:18 -07:00
Dave Smith
d486dff6e8 Merging with OJ's branch 2010-02-13 10:17:44 -07:00
Dave Smith
96c1ceba60 Break out arch string function; update ERLANG_TARGET to include bitness of the Erlang target 2010-02-12 15:05:32 -07:00
Dave Smith
a0732e9e78 Make sure to cover all edge cases when parsing module names 2010-02-12 11:57:50 -07:00
Dave Smith
1def586e39 Merging w/ mainline 2010-02-12 11:33:32 -07:00
Tuncer Ayaz
fa4b2ee701 Add emacs and vim file local variables 2010-02-11 00:16:34 +01:00
Dave Smith
22d21f63d0 Append wordsize to the architecture string 2010-02-10 14:05:52 -07:00
Ryan Tilder
f502bb09dd I'm a moron. Make it a string. 2010-02-10 11:23:53 -08:00
Dave Smith
268405d0dc Adding new vars for scripts to determine architecture (32/64 bit) and target platform of Erlang VM; courtesy of rtilder 2010-02-10 11:15:55 -07:00
Dave Smith
b787f195b8 Add vim line; courtesy of rtilder 2010-02-10 11:08:56 -07:00
theiw
788bd3df72 Provide package support for eunit; build_plt now includes listed applications; begin including -spec annotations 2010-02-05 17:34:38 +00:00
Dave Smith
30a3816c86 Use init:stop/1 over halt/1 to ensure all I/O gets a chance to flush 2010-02-05 13:16:21 -07:00
Bryan Fink
60629e8516 add chmod template directive for changing file file permission
usage: {chmod, Mode, File}
where: Mode is an integer, as specified by the 'mode' field of the file_info record
       (see docs for file:write_file_info/2)
2010-02-04 17:45:05 -05:00
Bryan Fink
4c2dade0f4 add Render flag to 'file' template directive
{file,In,Out,true} = render with mustache
{file,In,Out,false} = do not render with mustache (leave as-is)

old-form {file,In,Out} is equivalent to {file,In,Out,true}
2010-02-04 15:52:44 -05:00
Bryan Fink
4e01b32d5d look for templates in local directory as well 2010-02-04 14:30:10 -05:00
OJ Reeves
71c974e341 Added support for the speficiation of test suite names
eg.  rebar eunit              -- runs all tests in all modules
     rebar eunit suite=foo    -- only runs tests in foo.erl/foo_tests.erl

Added an entry to .hgignore to avoid .swp files (created by VIM).
2010-02-03 22:27:09 +10:00
OJ Reeves
6c359a08cd Added 3 new templates:
- simplefsm - Basic shell of a gen_fsm module
 - simplesrv - Basic shell of a gen_server module
 - simplemod - Basic shell of a module along with an associated test module.
2010-02-03 21:56:30 +10:00
Tuncer Ayaz
2734f2bcc2 Do not print dynamic escript name in usage info 2010-02-02 12:56:16 +01:00
Dave Smith
bd510dea20 Tweaking order of defaults so that -shared is default across platforms unless explicitly overridden 2010-02-01 10:56:47 -07:00
Dave Smith
f333bc2a92 Removing useless debug message and extraneous newline 2010-02-01 09:29:13 -07:00
Dave Smith
b9e78d6722 Add support for passing addt'l list of sources to erlc_compiler 2010-02-01 08:37:52 -07:00
Dave Smith
47e70f308a Add support for forcibly overwriting output files; courtesy of OJ Reeves 2010-01-30 09:56:06 -07:00
Dave Smith
12420ee43c Fix typo; courtesy of OJ Reeves 2010-01-30 09:48:28 -07:00