summaryrefslogtreecommitdiff
path: root/src/rebar_ct.erl
Commit message (Collapse)AuthorAgeFilesLines
* refactoring and remove unused providers for nowTristan Sloughter2014-08-231-60/+81
|
* Merge branch 'erl-args-to-end' of https://github.com/NineFX/rebar into ↵Fred Hebert2014-07-151-10/+12
|\ | | | | | | | | | | | | NineFX-erl-args-to-end Conflicts: THANKS
| * Fix bug 271varnerac-ubnt2014-06-271-10/+12
| | | | | | | | | | | | | | | | | | | | Moves ct_extra_params to the end of the generated ct_run command. This allows users to pass commands to the underlying emulator using -erl_args. The included rt test demonstrates that it is possible to pass an addtional option to ct_run and -erl_args at the same time. Finally, the test executes in regular and verbose modes because rebar constructs the ct_run command differently in verbose mode.
* | use the effective deps dir instead of hardcoding "deps"YAMAMOTO Takashi2014-05-301-6/+7
| | | | | | | | suggested by @tuncer
* | fix double "the" in a commentYAMAMOTO Takashi2014-05-301-1/+1
| | | | | | | | noted by @tuncer
* | Fix spec file look upYAMAMOTO Takashi2014-05-301-12/+18
| | | | | | | | | | | | | | | | When trying to skip spec files under deps/ directory, ignore "deps" component which is also included in Cwd. For example, "/home/deps/src/myapp/test/cover.spec" contains "deps" component but should not be skipped if Cwd is "/home/deps/src/myapp/".
* | Fix a format of a debug outputYAMAMOTO Takashi2014-05-301-1/+1
|/
* 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
|