In the package definition the call to the command 'git' is substituted with the full path to the git executable. This change causes the mix formatting tool to complain that the line is too long. This workaround reformats the file after the substitution is made. --- a/Makefile +++ b/Makefile @@ -213,6 +213,7 @@ TEST_ERLS = $(addprefix $(TEST_EBIN)/, $(addsuffix .beam, $(basename $(notdir $(wildcard $(TEST_ERL)/*.erl))))) test_formatted: compile + bin/elixir bin/mix format lib/mix/lib/mix/scm/git.ex bin/elixir bin/mix format --check-formatted test_erlang: compile $(TEST_ERLS) put type='hidden' name='id' value='123dcaefe921d390a5670b39ef92ff614b99ac11'/> Wojtek's customized Guix
aboutsummaryrefslogtreecommitdiff
path: root/tests/swh.scm
AgeCommit message (Expand)Author
2024-03-09swh: ‘lookup-origin-revision’ handles branches pointing to directories....Fixes <https://issues.guix.gnu.org/69070>. * guix/swh.scm (branch-target): Add clause for 'directory and 'alias. (lookup-origin-revision): Iterate over all the visits of ORIGIN instead of just the first one. Handle the case where ‘branch-target’ returns something other than a release or revision. * tests/swh.scm ("lookup-origin-revision"): New test. Change-Id: I7f636739a719908763bca1d3e7376341dd62e816 Ludovic Courtès
2024-02-12swh: Add bindings for the “ExtID” API....This interface was deployed at archive.softwareheritage.org a few days ago. Our main use case will be looking up directories by “nar-sha256” hashes. * guix/swh.scm (<external-id>): New JSON-mapped record type. (lookup-external-id, lookup-directory-by-nar-hash): New procedures. * tests/swh.scm (%external-id): New variable. ("lookup-directory-by-nar-hash"): New test. Change-Id: Ib671c7798aeb6f8132ac78f2b06b9285da8e7bd5 Ludovic Courtès
2021-01-21swh: Test proper handling of null visit snapshot URL....* tests/swh.scm (%origin): Change "visits_url" to "origin_visits_url". (%visits): New variable. ("origin-visit, no snapshots"): New test. Ludovic Courtès
2020-12-21tests: Fix malformed JSON....Guile-JSON 4.3.2 would parse in spite of these typos, but 4.4.1 is stricter. * tests/swh.scm (%directory-entries): Add missing comma. * tests/cve-sample.json: Likewise. Ludovic Courtès