aboutsummaryrefslogtreecommitdiffstats
path: root/test/plugin_bootstrap.mk
AgeCommit message (Collapse)Author
2024-11-22Move templates outside the source .mk filesLoïc Hoguin
Templates now no longer use Make variables for substitution but instead replace strings with their equivalent: template_name: Corresponds to n=template_name project_name: Corresponds to $(PROJECT) or in=project_name This allows defining templates outside of Makefiles. For example an external plugin could define their templates in templates/my_template.erl and then have the following in the included Makefile: tpl_my_template = $(file < $(THIS)/templates/my_template.erl) By default the created file will be in src/template_name.erl. This can be overriden with the tplp_* variable: tplp_my_template = src/model/my_template.erl Substitution is applied both to the template contents and to its path. In addition, attempting to overwrite an existing file when creating a template will result in failure.
2024-11-13Greatly speed up test speed with -jLoïc Hoguin
The tests were waiting for the test group to finish before they could continue with the next test group. Now "core" and "all" targets directly depend on individual test cases, allowing parallel Make to get to the next tests quicker and removing 1/3rd of the total run time. make check -j8 -k 5790,16s user 1207,08s system 627% cpu 18:35,49 total make check -j8 -k 6250,13s user 1326,77s system 972% cpu 12:59,16 total
2022-05-23Fix bootstrap-rel testLoïc Hoguin
2022-04-28fixup! Upgrade to Relx 4 which is now used as a libraryLoïc Hoguin
2019-06-26Don't try to start/stop releases in bootstrap-rel testLoïc Hoguin
We already have relx-start-stop for that.
2018-12-07Autopatch: allow configuring REBAR_GIT and REBAR_COMMITLoïc Hoguin
And use this in the tests to fetch Rebar only once and then clone from the local repository. This should speed up tests a little.
2018-11-28Rename the rel/ directory to config/ by defaultLoïc Hoguin
2018-11-26Fix propagation of SP in sub-appsLoïc Hoguin
And some refactor and additional testing for overriding. Turns out we can override some variables even if ?= is not used, so nothing had to be done to support overriding.
2018-11-24Disallow uppercase characters in application namesLoïc Hoguin
2018-11-24Error out on dash characters during bootstrapLoïc Hoguin
2018-05-14Don't list test cases manually anymoreLoïc Hoguin
2018-05-14list templates on seperate linesMads Flensted-Urech
2018-04-25Add gen_statem templatejuhlig
[skip ci]
2016-10-28add tests for relx pluginderwinlu
* relx-rel + check that relx gets downloaded when relx.config exists, + check structure of built release + check that _rel directory does not get delete by 'make clean' * relx-run + build a simple release, check if it starts and stops normally * relx-rel-tar + check if RELX_OPTS are respected via supplying the 'tar' target * relx-distclean-relx + check that relx executable gets deleted * relx-distclean-relx-rel + check that _rel directory gets deleted * relx-relup + check if relup generation is possible and generated relup is working add sleeps after calls to async actions of the relx boot script
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.
2015-12-24Simplify cleaning in the test suiteLoïc Hoguin
Not only simpler but also faster, especially on Windows.
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-11-20Add tests and document the SP variableLoïc Hoguin
People who prefer spaces instead of tabs are now covered.
2015-09-18Test "no .app.src" by default, test legacy with LEGACY=1Loïc Hoguin
Also fixes two bugs with the new "no .app.src" method. All tests now pass with both methods. We can now test specific cases with make check c=$CASE.
2015-09-14Make relx work on Windows/MSYS2Loïc Hoguin
2015-09-10Reorganize the test suiteLoïc Hoguin
Use one file per topic, except for "uncategorizable" tests.