summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* Fix Erlang 20 export_all warningsTuncer Ayaz2017-08-187-67/+32
| | | | Fix other warnings and whitespace errors as well.
* Update regexp to account for newer OTP versionsLuis Rascão2016-02-151-11/+26
| | | | | | | | Add support for patch numbers, also expose version_tuple/1 for easier internal access. Normalize version_tuple/1 return value, now always {Major, Minor, Patch}. Update regression tests accordingly.
* Add tests for dia compilerYury Gargay2016-02-131-0/+116
| | | | Test will be runed only on OTP >= 15
* Fix windows eunit testsLuis Rascão2015-10-254-12/+16
| | | | | | | | | | | File tests: windows file operations should abort on error the same as unix operations invoked through sh. Also windows does not support the '?' character in filenames. Eunit tests: the 'All' prefix is missing on the 'x tests passed' message. Eunit only prints the 'All' prefix if there are more than 2 passed tests, dropping the prefix on the match works for all cases.
* Merge pull request #545 from ccrusius/masterFred Hebert2015-09-271-4/+1
|\ | | | | Fix #544
| * Fix #544Cesar Crusius2015-09-171-4/+1
| | | | | | | | | | | | | | | | | | 'whoami' is not POSIX-compliant, but 'id -un' is. This is true at least since the 1003.1-2001 standard, I don't have a copy of the previous 1003.2-1992 to verify it is true there too. This causes problems in recent operating systems where 'whoami' is not even shipped anymore.
* | Add test for eunit_first_filesAndrey Teplyashin2015-09-211-1/+37
|/
* Fix eunit test on OTP18Luis Rascao2015-08-241-1/+1
| | | | | OTP18 changed the output failed assertion string from assertEqual_failed to assertEqual
* add tests for 'compiler keep_going'Vlad Dumitrescu2015-04-021-0/+192
|
* Change env var delimiter to match non-wordMark Anderson2015-02-231-0/+50
| | | | | | | | | | | | | | | | | | If I pass an expression like: "$PWD/deps/local/lib" in the port env string, it expands to "/deps/local/lib", (variable is expanded to the empty string) but if I pass "${PWD}/deps/local/lib" it expands properly. I found that confusing. This was because we require environment vars to end with whitespace, while I think requiring a non-word character would be sufficient, since the variables can only contain word characters. This changes the expansion system to recognize variables that are terminated by non word characters. This includes some fixes as per some comments by tuncer. Fixes rebar/rebar#457
* Exit with proper status code if 'eval' failsRoberto Aloi2015-01-231-0/+4
|
* Fixed #133. Release upgrade handle long and short names properly.Сергей Прохоров2015-01-201-4/+1
| | | | | | Implemented, by moving upgrade functionality from install_upgrade.escript to nodetool, which already supports both short and long names. Make install_upgrade.escript as wrapper for nodetool for backward compatibility.
* add Emacs/vi header to non-dummy test modulesVlad Dumitrescu2014-12-022-0/+4
|
* Treat vsn mismatch as warning if -k/--keep-goingTuncer Ayaz2014-11-251-13/+16
| | | | Fixes #319.
* Additional fixes and modificationFred Hebert2014-11-211-3/+8
| | | | | | - Updating documentation to be more accurate - Style fixes - More precise error messages
* Merge branch 'fix_upgrade_error' of https://github.com/terrencehan/rebar ↵Fred Hebert2014-11-211-0/+5
|\ | | | | | | into terrencehan-fix_upgrade_error
| * Fix upgrade errorterrencehan2014-06-201-0/+5
| |
* | Implement eval command via nodetoolRoberto Aloi2014-10-212-2/+34
| |
* | Escape more characters in path (fix #367)Adam Lindberg2014-10-141-51/+55
| |
* | Manually clean up pathsEvan Vigil-McClanahan2014-08-181-0/+56
| | | | | | | | | | | | | | Using code:set_path/1 with very large paths is very slow on larger projects. On my mid-sized project, it seems to take around .4s per call. Emulating the call with direct path removal (using code:del_path/1) seems to be quite a lot faster.
* | Follow-up typo fixes for #327Tuncer Ayaz2014-07-171-1/+1
| |
* | rebar_utils:otp_release/0: handle vsn like x.y.z**Tuncer Ayaz2014-07-171-6/+10
| | | | | | | | | | | | | | | | | | As mentioned in the OTP documentation, licensed customers may use patched OTP installations where the otp_patch_apply tool adds a '**' suffix as a flag saying the system consists of application versions from multiple OTP versions. When we get such a version string, we drop the suffix, as we cannot obtain relevant information from it as far as tooling is concerned.
* | Adapt arch string to versioning scheme changes (>= 17.x)Tuncer Ayaz2014-07-171-0/+43
|/
* Add qualified name tests specification (see #118)Sergey Savenko2014-05-291-0/+40
| | | | | | | | | Augment 'tests' option of 'rebar eunit' command with ability to specify tests to run using module-qualified names. This change also forced me to change the way modules for coverage and for testing itself are selected - module-qualified tests specifications are now taken into consideration. Extend tests to cover new functionality. Update dialyzer_reference accordingly.
* file_utils: properly report errors (fix #95)Tuncer Ayaz2014-04-111-2/+2
| | | | While at it, improve the error message printed by rebar_utils:sh/2.
* Add partial support for Erlang/OTP 17Joseph Wayne Norton2014-03-291-0/+23
| | | | | | | Allow rebar to compile applications using Erlang/OTP 17 and older versions. This patch only provides partial support since the rebar tool itself must be compiled using an Erlang/OTP version that is older than 17.
* Merge branch 'xref_20130130' of git://github.com/spilgames/rebar into spg-xrefDave Smith2013-06-171-0/+203
|\ | | | | | | | | Conflicts: src/rebar_xref.erl
| * Add standard xref checks and improved suppressionDennis Docter2013-01-301-0/+203
| | | | | | | | | | | | | | | | | | | | | | | | * Allow the following predefined analyses : undefined_function_calls, undefined_functions, locals_not_used, exports_not_used, deprecated_function_calls, deprecated_functions * Trap some possible errors in case module information is not available * ignore_xref works on all checks and can take {M,F,A} tuples. (Automatic behaviour export suppression still only works on exports_not_used)
* | Merge pull request #53 from oferrigni/unit_test_file_handling_fixDave Smith2013-06-161-3/+11
|\ \ | | | | | | Fix file handling on windows for tests
| * | Fix file handling on windows for testsOliver Ferrigni2013-01-141-3/+11
| |/ | | | | | | | | | | | | Running tests on windows creates false positive due to setup failures not executing all tests. Checking for tmp_dir was failing on subsequent runs. Added cases to tmp_dir creation to delete preexisting tmp_dirs in .eunit directory.
* | Sync test/upgrade_project/rel/files with priv/templatesTuncer Ayaz2013-06-125-66/+210
| |
* | Use "pwd -P" to get the current physical path.olgeni2013-06-102-2/+2
|/ | | | | | | | | | | | | | It is a portable version of the realpath(1) utility that you can find on Mac OS X and FreeBSD (see also The Open Group Base Specifications Issue 6, IEEE Std 1003.1). Without the -P flag, pwd(1) might return different values when the current path contains one or more symlinks, depending on how you got into the current directory. In simplenode.runner, this may cause PIPE_DIR to have different values on each use, which will make it impossible to connect to the running node unless you guess the correct path yourself.
* eunit: analyze coverage only for cover compiled modulesShunichi Shinohara2012-09-131-17/+27
| | | | This change fixes #310.
* Cleanup and commentTuncer Ayaz2012-08-201-1/+1
|
* Fix tests= option not running generator testsRoberto Ostinelli2012-08-201-1/+27
|
* Add experimental tests= filter without eunit suitesRoberto Ostinelli2012-08-201-1/+19
|
* Add experimental tests= filter for eunit suitesRoberto Ostinelli2012-08-111-0/+118
|
* Use separate dirs for eunit and qcTuncer Ayaz2012-08-091-13/+13
|
* Add 'qc' cmd and rename eunit-compile to test-compileTuncer Ayaz2012-07-231-13/+13
|
* Fix test/rebar_eunit_tests.erlSlava Yurin2012-06-291-6/+8
|
* Add support for using -remsh via runner scriptjoewilliams2012-04-232-7/+81
|
* add more info to readmejoewilliams2012-03-311-0/+1
|
* Handle vm.args properly while building upgradesjoewilliams2011-10-051-24/+23
| | | | | | | This patch corrects the vm.args behavior while building upgrade tarballs by copying the file from the release into the upgrade. Additionally it patches the dummy runner script in the upgrade test project to work properly.
* Get rid of app.configjoewilliams2011-09-203-4/+17
| | | | | | | | | | | | | | | | | | | | app.config has been a long standing erroneous file in rebar. Erlang/OTP documentation suggests a sys.config file instead. This file is stored in the releases/VSN directory. This does a few things but most importantly it ensures your config (contained in the application environment) survives a hot upgrade. It also has the advantage of allowing the configuration of the application to be versioned along side the application code. This patch flips rebar to use sys.config rather than app.config. Additionally it makes this flip to vm.args as well, making them versioned just like sys.config. This patch also includes runner script changes to support the old etc/app.config config file location and support for Windows. Thanks to mokele for the initial work and kick in the pants to make this finially happen.
* rebar_eunit_tests: avoid repetitionTuncer Ayaz2011-08-071-2/+3
|
* rebar_eunit_tests: check return valuesTuncer Ayaz2011-08-071-21/+15
|
* Fix whitespace errors in unit testsTuncer Ayaz2011-08-052-17/+19
|
* Sync rel/files in dummy project with templatesTuncer Ayaz2011-07-184-11/+29
|
* Update runner script in test projectTuncer Ayaz2011-03-041-3/+3
|
* Add 'generate-appups' commandjoewilliams2011-02-152-8/+1
| | | | | | | | | | | | | | | To further support OTP releases I have added support for generating application appup files. These include instructions that systools uses to generate a relup file which contains the low level instructions needed to perform a hot code upgrade. My goal with this module is to produce "good enough" appup files or at least a skeleton to help one get started with something more complex. If an appup file already exists for an application this command will not attempt to create a new one. Usage: $ rebar generate-appups previous_release=/path/to/old/version Generally this command will be run just before 'generate-upgrade'.