aboutsummaryrefslogtreecommitdiffstats
path: root/test
AgeCommit message (Collapse)Author
2016-04-05Add test for eunit accessing priv_dircrownedgrouse
2016-04-03Use branches for all packagesLoïc Hoguin
This is a first step toward semi-automated version management. Cowboy, Cowlib and Ranch still use tags for the time being. We can make a better update to those when there's a lock feature added.
2016-04-03Add possibility to specify custom ErlyDTL optionsKrzysztof Jurewicz
2016-03-19Merge branch 'erlc-opts-sed' of https://github.com/Gatzy118/erlang.mkLoïc Hoguin
2016-03-19Merge branch 'add_tpl_empty' of https://github.com/ingwinlu/erlang.mkLoïc Hoguin
2016-03-19Merge branch 'multi_app_ct' of https://github.com/ingwinlu/erlang.mkLoïc Hoguin
2016-03-02Properly write hex dependencies in rebar.config for Rebar3Loïc Hoguin
2016-02-17Add 'module' templatederwinlu
Every .erl source file will need at least a -module and a single -export definition. With the 'module' template a file can be quickly created that already populates -module with the right value as well as an empty export field.
2016-02-08Fix ct for multi-app repositoriesderwinlu
* Include $(APPS_DIR)/*/ebin in CT_RUN * test-build before ct-apps * Test that my_lib is accessible from my-app ct
2016-01-22Use "make edoc" in the edoc testLoïc Hoguin
2016-01-09Add AsciiDoc tests and documentationLoïc Hoguin
Also fixes install-docs to allow installing regardless of being root or a normal user. The current user/group will be used for the installed files.
2016-01-09Remove legacy EDoc testsLoïc Hoguin
2016-01-09Test and document EDocLoïc Hoguin
A change was made to the automatic EDoc generation when running 'make docs'. It is now only done if a doc/overview.edoc file exists. This behavior can of course be enabled back by adding it to the Makefile.
2016-01-06Add a second comma/space to test global substitutionsNick Gates
2015-12-29Add Common Test docs and testsLoïc Hoguin
Also fixes issues with multi application repositories, and add support for running a specific group/case in a given test suite.
2015-12-24Simplify cleaning in the test suiteLoïc Hoguin
Not only simpler but also faster, especially on Windows.
2015-12-24Add EUNIT_ERL_OPTS variableLoïc Hoguin
2015-12-24Add EUnit tests and documentationLoïc Hoguin
Also includes a fix for multi-application repositories.
2015-12-18Exclude rabbitmq_codegen from the package checkLoïc Hoguin
This isn't an Erlang application.
2015-12-17Remove the patch for i18n in the test suiteLoïc Hoguin
After careful checking, these values are not set because of an issue in Erlang.mk's autopatch feature. There's no point in cheating in the test suite. We need to know about it.
2015-12-17Add package i18n to the indexLoïc Hoguin
2015-12-15Prevent Dialyzer from running concurrently in test suiteLoïc Hoguin
We use the GNU Parallel program to create a mutex around the Dialyzer calls.
2015-12-15Make some rm -rf commands saferLoïc Hoguin
This way if for some unknown reason $(APP_TO_CLEAN) isn't defined, we don't delete the entire world.
2015-12-14Fix compilation of NIFs on WindowsLoïc Hoguin
Thanks to two users of the ninenines/esdl2 project, a correct way to build NIFs on Windows has been found. At the moment we require a specific compiler (MingW's gcc). Maybe we can change this in the future and allow Visual Studio and others. Some small changes have been made to the documentation, and the meaning of one configuration variable has changed to not include the extension (which is decided automatically by Erlang.mk; and configurable separately). Enjoy!
2015-12-01Test and document DialyzerLoïc Hoguin
One bug was fixed: now Erlang.mk will properly pass relevant ERLC_OPTS values to Dialyzer. One bug still exists when using multi-application repositories: dependencies are not detected automatically. We need list-deps before this can work.
2015-11-22Remove the Rabbit patches from the test suiteLoïc Hoguin
They're not needed on master anymore.
2015-11-21Merge branch 'late-autopatch' of https://github.com/rabbitmq/erlang.mkLoïc Hoguin
2015-11-21deps.mk: In dep_target, call dep_autopatch during the second evalJean-Sébastien Pédron
... not the first. dep_autopatch can be an expensive macro, in particular because it executes Erlang. So if NO_AUTOPATCH is set, it's best to avoid calling dep_autopatch as the result will be unused anyway. While here, add a test for autopatched rebar-based dependencies.
2015-11-20Merge branch 'set-x-on-verbose-2' of https://github.com/rabbitmq/erlang.mkLoïc Hoguin
2015-11-20Add tests and document the SP variableLoïc Hoguin
People who prefer spaces instead of tabs are now covered.
2015-11-17make erlang-mk: Copy build.config after switching to $(ERLANG_MK_COMMIT)Jean-Sébastien Pédron
If the local build.config has changes compared to upstream's master branch, and $(ERLANG_MK_COMMIT) also brings changes to this file, copying the local file to the checkout before switching to $(ERLANG_MK_COMMIT) caused git-checkout(1) to abort with: error: Your local changes to the following files would be overwritten by checkout: build.config Please, commit your changes or stash them before you can switch branches. Aborting While here, fix `core-upgrade-custom-repo` test case: without switching back the alternate erlang.mk repository to its master branch, the clone always got the test-copyright branch by default, making the ERLANG_MK_COMMIT check ineffective.
2015-11-17V=2 causes `set -x` to be set on forked shellsJean-Sébastien Pédron
2015-10-27Fix small issue with c-src testsLoïc Hoguin
Main test Makefile expects "c_src" but for convenience I also allow "c-src" and use that one as the prefix for the tests.
2015-10-26Add new-nif target and related testsLoïc Hoguin
Pushing this now so I can figure out Windows.
2015-10-22Add shell chapter and testsLoïc Hoguin
2015-10-22Add git-submodule fetch methodLoïc Hoguin
Initially submitted by Daniel White.
2015-10-22Merge branch 'fix-test-core-plugins-one' of ↵Loïc Hoguin
https://github.com/rabbitmq/erlang.mk
2015-10-22Use relative path to erlang.mk file in autopatched depsLoïc Hoguin
2015-10-22Replace "if $(MAKE) then false" by "! $(MAKE)"Jean-Sébastien Pédron
2015-10-22Do not try to execute an empty shell script in core-plugins-one testJean-Sébastien Pédron
The previous code did: if `<code that prints nothing on stdout>`; then ... So the test failed but not for the good reason. The forked shell printed: /bin/sh: gmake[2]:: not found Now, both "Run 'make ...'" tests are simplified and do not rely on backticks and test(1) anymore. Either the output is inspected or the exit code is checked.
2015-10-20Rename couch package into opencouchLoïc Hoguin
Per request: https://github.com/ninenines/erlang.mk/issues/300 This commit also fixes issues with packages which have a different name than the application name.
2015-10-19Force rebuilds on Makefile/.app.src changesLoïc Hoguin
Everything will be rebuilt when the Makefile or any included Makefile (like Erlang.mk or plugins) change. Only the .app will be rebuilt when the .app.src file changes.
2015-10-19Fix creating modules from templates when using apps/ onlyLoïc Hoguin
2015-10-12Add test for and fix DTL_FULL_PATHLoïc Hoguin
2015-10-12Cleanup ErlyDTL testLoïc Hoguin
2015-10-12Merge branch 'fix-plugin-erlydtl' of https://github.com/bullno1/erlang.mkLoïc Hoguin
2015-10-12Rework package testingLoïc Hoguin
Better error reporting and can now build everything in parallel. Failed builds are kept; others are deleted. The following command builds everything and then gives a diff of what got fixed/broken since last time ("> " is newly broken, "< " is newly fixed). make packages -j 32 -k; make summary
2015-10-11Ensure that modules generated from erlydtl are listed in .app filebullno1
2015-09-29Use ?= in APPS_DIR test, just like DEPS_DIRLoïc Hoguin
2015-09-29Add a test for SKIP_DEPSLoïc Hoguin
Also don't delete DEPS_DIR if SKIP_DEPS is set.