summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* Add release-structured compiling testsFred Hebert2014-12-242-5/+26
|
* Add support for custom templates in subdirectoriesFred Hebert2014-12-239-0/+203
| | | | - Includes tests for templates and their application
* Tests and fixes for namespacesFred Hebert2014-12-211-0/+93
|
* Fix up programmatic interface to rebar3Fred Hebert2014-12-212-2/+2
| | | | Now supports arbitrary commands
* rewrite profilesTristan Sloughter2014-12-161-2/+1
|
* Adding pkg deps tests and refactoringsFred Hebert2014-12-164-28/+241
| | | | | | | | | | | | | | | | | | | - Adding tests for package deps - Adding conflict/override warnings for package deps - Adding cycle detection for packages - Adding cycle detection for mixed packages+source - Fixing internal dependency format of package resources when converted to rebar_app_info - normalizing level-order prioritization to be based on lexicographical sort of app names rather than traversal order (which is undefined for package deps) - Fixing tests for source deps for deep cycle detection - Fixing bugs with source deps - Relaxed version format checks for test utils A lot of fixes are combined in there because I didn't want to commit non-passing code, and many bugs were found when adding the second batch of tests as part of the original effort.
* Print warning when deps are being skipped.Fred Hebert2014-12-071-13/+64
| | | | | The case in mind here is due to conflicts, and tests have been added for this.
* Handle cycle errors in providerFred Hebert2014-12-061-2/+2
|
* Return cycles in deps solverFred Hebert2014-12-061-2/+2
|
* Partial fix to circular deps (#40)Fred Hebert2014-12-064-32/+59
| | | | | | | | | - Adding tests - fixing use of set fetching to find repeated deps and prevent infinite loops On a circular loop rebar3 now fails with `{error, no_sort}`, which is uncaught and should be handled to consider the issue fully fixed.
* Initial tests for dependency resolvingFred Hebert2014-12-044-85/+358
| | | | | | | | | | | | | - Reworked the helpers for existing suites and expanded them - Created a mock git resource module to test for its dependency fetching - Added a test suite for dependency resolving with first checks for common cases (https://gist.github.com/ferd/197cc5c0b85aae370436) Left to do would include: - Verify warnings - Verify failures - Verify dependency updates resolving
* start of breaking out test code for ease of checksTristan Sloughter2014-11-291-9/+12
|
* pass command as arg to run_aux for nowTristan Sloughter2014-10-171-1/+1
|
* fix ct test for new command handlingTristan Sloughter2014-09-171-1/+1
|
* update common testsTristan Sloughter2014-09-171-2/+2
|
* change name of suiteTristan Sloughter2014-09-011-1/+1
|
* only build invalid (not built) source deps and project appsTristan Sloughter2014-09-011-1/+1
|
* add first testTristan Sloughter2014-09-011-0/+113
|
* remove more code that can be brought back later if neededTristan Sloughter2014-08-3017-1788/+0
|
* 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'.
* Clean up emacs file local variablesTuncer Ayaz2011-01-313-3/+3
|