aboutsummaryrefslogtreecommitdiffstats
path: root/test
AgeCommit message (Collapse)Author
14 hoursDon't fail Mix autopatch if Elixir is disabled but it has a MakefileLoïc Hoguin
2 daysNative Elixir supportTyler Hughes
This commit also includes a way to completely disable Eunit as that is generally desirable for Elixir-only projects.
2025-02-11Add support for specifying Hex requirements for dependenciesLoïc Hoguin
This allows overriding the default which is to use the same explicit version as the dep_* line, and instead specify ranges of versions.
2024-11-26CI: Test the Hex pluginLoïc Hoguin
2024-11-26Make $(ERL) fasterLoïc Hoguin
While using "-mode minimal" removes too much that we need (such as inet_db), we can safely disable the distribution by default and limit the number of processes and sockets to a maximum of 1024.
2024-11-25Add test case for rebar git_subdir autopatchci-for-pr-1005Loïc Hoguin
2024-11-25Update hexpm_packages.txtLoïc Hoguin
The scrape file was updated to only seek "rebar3" tagged packages. There are too many Elixir-only packages tagged as "make".
2024-11-25Check templates independently from testsLoïc Hoguin
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-19Remove legacy fetch methodLoïc Hoguin
This method dates back from the beginnings of Erlang.mk and should not have been used for around a decade by now. Adding "git" to the offending dep lines is enough to upgrade.
2024-11-19Use hex_core to fetch Hex packagesLoïc Hoguin
This should both be more solid and more secure.
2024-11-19CI: Also test with CACHE_DEPS=1Loïc Hoguin
2024-11-15CI: Run Dialyzer tests in parallel jobsLoïc Hoguin
2024-11-14Update Cowlib/Ranch versions in the index to masterLoïc Hoguin
2024-11-14Remove most packagesLoïc Hoguin
Erlang.mk will no longer feature packages out of the box, except for the applications that we implement plugins for (such as erlydtl, proper or relx) and the projects I work on that are also used to test Erlang.mk (cowboy and friends). This is a breaking change. In most cases the fix is to add a full dep_* line for the dependencies that were used as packages before.
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
2024-11-13Improve rebar.config generationimprove-rebar-configLoïc Hoguin
We now provide the version as a tagged tuple indicating whether this is a branch, tag or ref. This should help rebar automatically upgrade dependencies, and remove an annoying warning when rebar is used. In order to detect the type of version the dependencies must be available, therefore the rebar.config target now depends on the deps target. To test this the Cowboy package version had to be changed from 1.0.4 to master. This is a breaking change, but I do not expect too many people to still use 1.0.4.
2024-06-21Don't use the shell in core_findLoïc Hoguin
Instead of calling `find` we use $(wildcard ...) and some logic on top to find all the files we are looking for. This is more efficient and greatly helps reduce re-build times when there's little to be done, particularly when many dependencies are involved.
2024-06-21Comment-out core-deps-fetch-svn testLoïc Hoguin
It's become hard to find a host that provides Subversion.
2023-05-23Add a test for ESCRIPT_ZIP_FILE and abspath the valueLoïc Hoguin
This way we can just configure it to a local folder without having to use $(CURDIR).
2023-05-16Don't run core-deps-optional test when LEGACY=1Loïc Hoguin
2023-05-16Fix RELX_OUTPUT_DIRLoïc Hoguin
Was broken in the move to Relx v4.
2023-05-15Use $(CACHE_DIR)/git instead of $(CACHE_DIR)/gitsLoïc Hoguin
2023-05-15Cleaned up dep cache tests, added hex test and fixed a bugLoïc Hoguin
2023-05-15Allow git + hex deps to be cached to XDG_CACHE_HOMETyler Hughes
2023-05-15Add test for static NIF compilationLoïc Hoguin
2023-05-15test(edoc): add checks for source subdirectoriespinicarus
2023-05-15Added test for protobuf files with importsLars Kroll
2023-05-15Add test for EUNIT_TEST_SPECLoïc Hoguin
2023-05-15Add COVER_EXCL_MODS variableJoseph Dunne
2023-05-12Ignore files with '#' in their names, e.g. emacs lock filesMartin Björklund
Also remove usage of grep for ignoring files since find can do this directly.
2023-05-12Add support for relx.config.script backTyler Hughes
It was removed accidentally when switching to Relx v4.
2023-05-12Add tests for Relx' {git, short} && {git, long}Loïc Hoguin
2023-05-12Support optional applicationsjdamanalo
Loïc: Added more info to guide.
2023-05-12Fix typosKian-Meng Ang
2023-05-12Add testing of building packages from hex.pmLoïc Hoguin
2023-05-09Autopatch: better handle COMPILE_FIRST/erl_first_filesLoïc Hoguin
This is still a bit hackish but it appears that some projects have wrong erl_first_files entries (module exists but not at the location configured) and so we have to do a bit of manipulation before we can find the module. We also need to be cautious about .yrl/.xrl because their corresponding .erl files may not exist in the repository before compilation yet can be listed in erl_first_files.
2023-05-05Add ELIXIR_PATCH=1 when testing building packagesLoïc Hoguin
2023-05-05Tests: exclude pmod_transform from .app/load checksLoïc Hoguin
This is not a proper OTP application.
2023-05-05Deps: Add a project-specific patch for hutLoïc Hoguin
Hut has both a Makefile and erlang.mk but the default target does not build the project. To fix a few packages we have a special patch HUT_PATCH that will call the appropriate target.
2023-05-05Autopatch: Move to Rebar3Loïc Hoguin
2023-05-05Ignore plugins from package checksLoïc Hoguin
2023-05-04Remove rabbit/amqp_client packages and patchesLoïc Hoguin
We expect users to fetch these projects from hex.pm now and the packages no longer worked.
2023-05-04Update the query duplicate testLoïc Hoguin
2023-04-03Fix core-app-yrl-header test for OTP-26Loïc Hoguin
2023-04-03Fix core-deps-fetch-git-submodule testLoïc Hoguin
Test broke when git did a security fix related to file:// that we are using for the submodule in this test.
2022-11-10Fix code coverage for ct-* targetsLoïc Hoguin
Thanks to David Ansari for the report.
2022-05-31xref: Also ignore targets where applicableLoïc Hoguin
2022-05-30Fix yecc test case failing with OTP-25.02022.05.31Loïc Hoguin
2022-05-30Revamp and document Xref supportLoïc Hoguin