aboutsummaryrefslogtreecommitdiffstats
path: root/test/core_query.mk
AgeCommit message (Collapse)Author
2023-05-04Update the query duplicate testLoïc Hoguin
2022-04-28Fix core-query-deps-no-duplicates testLoïc Hoguin
2020-11-30Fix core-query-deps-no-duplicates testLoïc Hoguin
2020-07-21Add query-deps test with no depsLoïc Hoguin
2020-04-02test/core_query.mk: Pin `farwest` in `core-query-deps-no-duplicates`Jean-Sébastien Pédron
It was previously "pinned" to its `master` branch. Unforunately, the testcase started to fail after `farwest` changed its own pinning of `cowlib`. By pinning to a specific version (or commit in this case) of `farwest`, we make sure this won't happen again.
2020-03-04Add the query-deps family of targets2020.03.05Loïc Hoguin
The query-deps, query-doc-deps, query-rel-deps, query-test-deps and query-shell-deps targets go through dependencies and print some information about them: $ make query-deps ... cowboy: cowlib git https://github.com/ninenines/cowlib 2.7.3 cowboy: ranch git https://github.com/ninenines/ranch 1.7.1 $ make query-deps QUERY="name repo version absolute_path" ... cowboy: cowlib https://github.com/ninenines/cowlib 2.7.3 /path/to/deps/cowlib cowboy: ranch https://github.com/ninenines/ranch 1.7.1 /path/to/deps/ranch The query-deps target is recursive; the others aren't. This mirrors the behavior when fetching and building dependencies. The full list of options is: QUERY="fetch_method name repo version extra absolute_path" When an option has no corresponding value, "-" will be printed. For example most fetch methods do not have extra information to print. When there is extra information, the value will be prefixed with a descriptive name. For example: package-name=uuid_erl This commit also introduces changes to deps handling: some of the functions for querying will now be used directly. In the future the goal is to remove the old dep_name, dep_commit, etc. functions and replace their usage with the new query functions. Custom fetch methods should implement query functions in order to have information about the relevant dependencies printed properly.