summaryrefslogtreecommitdiff
path: root/src/rebar_ct.erl
Commit message (Collapse)AuthorAgeFilesLines
* allow suite[s] or test[s] as options for eunit and ctAndrew J. Stone2014-02-051-1/+9
|
* Fix is_verbose/1 helper functionTuncer Ayaz2013-12-061-2/+2
|
* Change rebar_ct:check_log/3 to use double quotesBjörn Bylander2013-09-201-1/+1
| | | | | | | | | | | | | | | | | The call to the grep program in rebar_ct:check_log/3 used single quotation marks around the strings grep should search for. This works well in most cases but fails on Windows 7 using GNU grep 2.5.4 as installed by the Chocolatey package GnuWin 0.6.3.1 with the follow message: ERROR: cmd /q /c grep -e 'TEST COMPLETE' -e '{error,make_failed}' ct/raw.log failed with error: 2 and output: grep: COMPLETE': No such file or directory This commit changes the single quotation marks to double quotation marks. I've tested this using GNU grep 2.5.3 on a Debian Linux machine and it works well.
* Make sure to run ct_run w/ -noshellDave Smith2013-06-251-1/+1
|
* Use ct_run if available; fixes strange issues with getting erl/ct to stopDave Smith2013-06-251-10/+21
|
* rebar_ct: fix Dialyzer warning caused by bcc57e9bTuncer Ayaz2013-06-241-4/+10
| | | | Also fix a single line exceeding max column.
* Handle ct_run exit codes in R15B02 and laterFred Hebert2013-04-181-4/+22
| | | | | | | | | | | | Since R15B02, ct_run returns a non-zero exit code when some tests failed or were auto-skipped. (See ticket OTP-9865.) This fix makes it so a non-0 code doesn't cause an instant failure, but still prompts for log verification before doing so. Given the behaviour was acceptable for pre-R15B02, it should be valid with it with post-R15B02. The fix should also be backwards compatible.
* Implement 'rebar help CMD1 CMD2' and extend common 'rebar help' msgTuncer Ayaz2012-12-311-0/+23
| | | | | * allow plugins to print help message for implemented commands * append core rebar.config options to common 'rebar help' message
* rebar_ct: fix wording in commentsTuncer Ayaz2012-11-181-5/+5
|
* ct: skip instead of halt on missing/unknown suiteArjan Scherpenisse2012-10-311-3/+10
| | | | | | | | | | | | | | | | | | | | | | This allows `rebar ct suites=abc` to consider all suites when you have a rebar setup with multiple sub_dirs. Previously, rebar halted after it could not find the suite in the first dir. But the suite might be present in another dir (when sub_dirs contains multiple dirs). This commit makes it so instead of halting, it prints a warning and continues with looking for the suite in the other `sub_dir`s. Note -- This uses try/catch to cause the test to be skipped because otherwise I needed to adjust the return values of 4 functions, the code path is pretty deeply nested here. Otherwise the whole call chain needed to be adjusted for this return value: `run_test -> make_cmd -> get_suites -> find_suite_path` IMHO, I think for exceptional cases like this it is fine to use throw; specially since only the {skip} is catched and nothing else.
* rebar_ct: ?DEBUG log ct_run commandTuncer Ayaz2012-09-031-0/+1
|
* rebar_ct: do not export variable from caseTuncer Ayaz2012-09-021-7/+6
|
* Fix whitespace errors in rebar_ct and rebar_eunitTuncer Ayaz2012-08-221-1/+1
|
* Fix #295 (consider *_SUITE.beam in ct skip check)Tuncer Ayaz2012-08-191-1/+1
|
* Add ct_log_dir option, skip test dir with no SUITEDeadZen2012-08-071-10/+18
| | | | | | | When rebar ct executes with its default common test directory of "test", it will generate a hardcoded "logs" directory in every application with a test directory present, causing an overlap with eunit's test framework so even test directories with only eunit tests will be processed by ct.
* Fix R13B03 build (Reported-by: Sergey Nartimov)Tuncer Ayaz2012-07-281-4/+4
|
* Finalize app=, skip_app=, suite= deprecationsTuncer Ayaz2012-07-231-1/+1
|
* Do not use application:set_envTuncer Ayaz2012-07-231-13/+13
|
* rebar_ct: rename function for clarityTuncer Ayaz2012-06-211-2/+2
|
* Merge pull request #230 from hyperthunk/ct-nameDave Smith2012-06-081-4/+10
|\ | | | | Support ct_run using short name
| * Support ct_run using short nameTim Watson2012-05-221-4/+10
| | | | | | | | | | | | | | | | | | | | | | Not every system under test can be run with long names, and this makes rebar's common_test support useless in those environments, as it currently uses long names (test@hostname.domain) by default, without recourse to change them. This patch adds support for a {ct_use_short_names, boolean()} config variable, which allows the user to specify whether short or long names are required.
* | Remove ?FAIL in favor of ?ABORTDave Smith2012-06-081-4/+4
|/
* Support different log levelsTuncer Ayaz2012-01-171-6/+6
|
* Deprecate ct suite= option for suites= optionMagnus Klaar2012-01-061-12/+17
|
* Add support for customising common test directoryTim Watson2011-12-281-1/+2
| | | | | | | This patch allows users to specify the directory in which common_test source files can be found. Most common_test suites are integration, rather than unit tests and keeping the sources apart from test sources for other frameworks such as eunit and PropEr is a useful feature.
* Universally support apps=/skip_apps=Tuncer Ayaz2011-12-121-14/+1
|
* Fix the 'ct' target to work on Windows with MSYSJan Klötzke2011-10-201-1/+1
|
* Add awareness of 'app' parameter to ct moduleTino Breddin2011-08-041-2/+14
|
* Fix grep portability (Reported-by: Andrew Thompson)Tuncer Ayaz2011-07-141-1/+1
|
* Pass extra params to ct (thanks Mickael Remond)Tim Watson2011-04-061-6/+13
| | | | | This patch adds a `ct_extra_params` option to rebar.config, the value of which is appended to the shell command when executing common test.
* Fix code clarity and formattingTuncer Ayaz2011-03-221-17/+17
|
* Fix ct include option prefixShunichi Shinohara2011-03-221-1/+1
|
* Add -spec support to rebar_ct command lineTim Watson2011-02-211-21/+49
| | | | | | | | | | | | | This change adds support for executing ct test runs based on test specificiations, which was missing previously. The rebar_ct module now looks for any number of files with a name ending in `test.spec` and if it finds one or more, passes these after the `-spec` argument to ct_run instead of explicitly configuring the config, user config and coverage config variables. When no specifications are found, then the module behaves as it did before this change, and both the ct1 and (new) ct2 integration tests appear to show this is a backwards compatible patch.
* Clean up codeTuncer Ayaz2011-02-061-13/+14
|
* Clean up emacs file local variablesTuncer Ayaz2011-01-311-1/+1
|
* Fix indentation in rebar_ctTuncer Ayaz2011-01-131-20/+20
|
* Apply Tidier suggestionsTuncer Ayaz2011-01-131-1/+1
|
* Unify executable invocationJuhani Rankimies2011-01-061-2/+4
| | | | | Add flags to rebar_utils:sh to control output and error handling. Replace calls to os:cmd with calls to rebar_utils:sh.
* Add rebar code path to common test code pathBenjamin Nortier2010-12-091-2/+11
|
* Fix dialyzer warning for rebar_utils:sh/2 callTuncer Ayaz2010-09-291-8/+2
| | | | | rebar_utils:sh/2 terminates on error and does not return an error code as expected.
* Fixing bug 518; original patch by Tim Watson with some minor ↵Dave Smith2010-07-281-1/+29
| | | | cleanups/clarifications
* Initial cleanup pass on rebar_ct; removing other targets in favor of "ct" ↵Dave Smith2010-06-221-59/+50
| | | | (ala how eunit support works)
* Rolled back getopt to restore custom variablesTuncer Ayaz2010-01-011-4/+4
|
* Added vi modeline/emacs local variables to file headersTuncer Ayaz2009-12-311-0/+2
|
* Enhanced option parsing with new getopt and made rebar more user friendlyTuncer Ayaz2009-12-311-4/+4
|
* Deleted trailing whitespaceTuncer Ayaz2009-12-301-6/+6
|
* Fixing number of warnings and bugletsDave Smith2009-12-141-1/+1
|
* Added check for suite compilation failures to rebar_ct.Jon Meredith2009-12-041-4/+12
|
* Added rebar_ct to support common_test targets test, int_test and perf_test.Jon Meredith2009-12-031-0/+196