aboutsummaryrefslogtreecommitdiff
# GNU Guix --- Functional package management for GNU
# Copyright © 2020, 2022, 2024 Ludovic Courtès <ludo@gnu.org>
#
# This file is part of GNU Guix.
#
# GNU Guix is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or (at
# your option) any later version.
#
# GNU Guix is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.

#
# Test the 'guix git authenticate' command-line utility.
#

# Skip if we're not in a Git checkout.
[ -d "$abs_top_srcdir/.git" ] || exit 77

# Skip if there's no 'keyring' branch.
guile -c '(use-modules (git))
  (member "refs/heads/keyring" (branch-list (repository-open ".")))' || \
    exit 77

# Keep in sync with '%default-channels' in (guix channels)!
intro_commit="9edb3f66fd807b096b48283debdcddccfea34bad"
intro_signer="BBB0 2DDF 2CEA F6A8 0D1D  E643 A2A0 6DF2 A33A 54FA"

cache_key="test-$$"

# This must fail because the end commit is not a descendant of $intro_commit.
guix git authenticate "$intro_commit" "$intro_signer"	\
     --cache-key="$cache_key" --stats			\
     --end=9549f0283a78fe36f2d4ff2a04ef8ad6b0c02604 && false

# The v1.2.0 commit is a descendant of $intro_commit and it satisfies the
# authorization invariant.
v1_2_0_commit="a099685659b4bfa6b3218f84953cbb7ff9e88063"
guix git authenticate "$intro_commit" "$intro_signer"	\
     --cache-key="$cache_key" --stats			\
     --end="$v1_2_0_commit"

# Check a commit that came soon after v1.2.0.  No need to repeat $intro_commit
# and $intro_signer because it should have been recorded in '.git/config'.
after_v1_2_0="be4d9527b55b6829e33a6e0727496af25927a786"
guix git authenticate				\
     --cache-key="$cache_key" --stats		\
     --end="$v1_2_0_commit"

rm "$XDG_CACHE_HOME/guix/authentication/$cache_key"

# Commit and signer of the 'v1.0.0' tag.
v1_0_0_commit="6298c3ffd9654d3231a6f25390b056483e8f407c"
v1_0_0_signer="3CE4 6455 8A84 FDC6 9DB4  0CFB 090B 1199 3D9A EBB5" # civodul
v1_0_1_commit="d68de958b60426798ed62797ff7c96c327a672ac"

# This should succeed because v1.0.0 is an ancestor of $intro_commit.
guix git authenticate "$intro_commit" "$intro_signer"	\
     --cache-key="$cache_key" --stats			\
     --end="$v1_0_0_commit"

# This should fail because these commits lack '.guix-authorizations'.
guix git authenticate "$v1_0_0_commit" "$v1_0_0_signer" \
       --cache-key="$cache_key" --end="$v1_0_1_commit" && false

# This should work thanks to '--historical-authorizations'.
guix git authenticate "$v1_0_0_commit" "$v1_0_0_signer" 	\
     --cache-key="$cache_key" --end="$v1_0_1_commit" --stats	\
     --historical-authorizations="$abs_top_srcdir/etc/historical-authorizations"
66bdd59333cb671682af70fdcc'>gnu: hwloc: Skip 'linux-libnuma' test....That test would fail on some machines, for instance build machines behind berlin.guixsd.org. * gnu/packages/mpi.scm (hwloc)[arguments]: Add 'skip-linux-libnuma-test' phase. (hwloc-2.0)[arguments]: Replace it. Ludovic Courtès 2018-03-26gnu: hwloc@1: Update to 1.11.10....* gnu/packages/mpi.scm (hwloc): Update to 1.11.10. Ludovic Courtès 2018-03-26gnu: hwloc@2: Update to 2.0.1....* gnu/packages/mpi.scm (hwloc-2.0): Update to 2.0.1. [source]: Remove 'patches'. * gnu/packages/patches/hwloc-tests-without-sysfs.patch: Remove. * gnu/local.mk (dist_patch_DATA): Adjust accordingly. Ludovic Courtès 2018-03-26gnu: hwloc@1: Update to 1.11.9....* gnu/packages/mpi.scm (hwloc): Update to 1.11.9. Ludovic Courtès 2018-02-06gnu: hwloc: Add 2.0.0....* gnu/packages/mpi.scm (hwloc-2.0): New variable. * gnu/packages/patches/hwloc-tests-without-sysfs.patch: New file. * gnu/local.mk (dist_patch_DATA): Add it. Ludovic Courtès 2017-11-07gnu: psm: Only use as an input on supported-systems....Syntax help supplied by bavier@member.fsf.org * gnu/packages/linux.scm (libfabric)[inputs]: Only use psm as an input on systems where psm is supported. * gnu/packages/mpi.scm (openmpi)[inputs]: Same. Efraim Flashner 2017-11-07gnu: openmpi: Add dependency on PSM....* gnu/packages/mpi.scm (openmpi)[inputs]: Add PSM. Dave Love 2017-10-03gnu: openmpi: Add "debug" output....This is necessary for one mechanism for attaching parallel debuggers and is also relevant for the runtime backtrace facility. * gnu/packages/mpi.scm (openmpi)[outputs]: New field. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Dave Love 2017-09-12gnu: openmpi: Configure without builtin atomics....See https://www.mail-archive.com/users@lists.open-mpi.org//msg31400.html * gnu/packages/mpi.scm (openmpi)[arguments]: Don't configure with --enable-builtin-atomics. Signed-off-by: Ludovic Courtès <ludovic.courtes@inria.fr> Dave Love 2017-09-12gnu: openmpi: Remove Valgrind from closure....* gnu/packages/mpi.scm (openmpi)[arguments]: Elide romio config info to avoid reference to valgrind. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Dave Love 2017-09-08gnu: hwloc: Update to 1.11.8....* gnu/packages/mpi.scm (hwloc): Update to 1.11.8. Ludovic Courtès 2017-08-21gnu: openmpi: Configure without vampirtrace....VT is obsoleted by scorep (not currently packaged) and disabling it reduces the closure considerably. * mpi.scm (openmpi)[arguments]: Configure without vampirtrace. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Dave Love 2017-08-21gnu: openmpi: Modify configuration to reduce closure....devel-headers are only for building MCA components, produce a large closure and aren't normally packaged. Only the affinity component of mpi-ext is useful. * gnu/packages/mpi.scm (openmpi)[arguments]: Don't configure --with-devel-headers and --enable-mpi-ext=all. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Dave Love 2017-08-21gnu: openmpi: Remove references to compiler pathnames in "_info" programs....This reduces the closure greatly, but note that the Fortran .mod files are gfortran version-specific, so there should probably be development packages for each incompatible version. (The runtime is supposed to be more-or-less version-independent unless the libgfortran soname changes.) There may still be a case for a separate runtime output. * gnu/packages/mpi.scm (openmpi)[arguments]: Add "remove-absolute" phase. Co-authored-by: Ludovic Courtès <ludo@gnu.org> Dave Love 2017-08-21gnu: openmpi: Remove "static" output....--enable-static removes dynamically-loaded MCA components. * gnu/packages/mpi.scm (openmpi)[outputs]: Remove field. [arguments]: Don't configure with --enable-static; remove 'move-static-libraries' phase. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Dave Love 2017-08-21gnu: openmpi: Add separate variant with thread-multiple support....* gnu/packages/mpi.scm (openmpi)[arguments]: Remove "--enable-mpi-thread-multiple". (openmpi-thread-multiple): New variable. Signed-off-by: Ludovic Courtès <ludovic.courtes@inria.fr> Dave Love 2017-08-18gnu: openmpi: Add RDMA and libfabric support....* gnu/packages/mpi.scm (openmpi)[inputs]: Add rdma-core, libfabric. Signed-off-by: Marius Bakke <mbakke@fastmail.com> Dave Love 2017-07-27gnu: openmpi: Add "static" output....* gnu/packages/mpi.scm (openmpi)[outputs]: New field. [arguments]: Add 'move-static-libraries' phase. Ludovic Courtès 2017-07-26gnu: openmpi: Enable SGE support....* gnu/packages/mpi.scm (openmpi)[arguments]: Pass "--with-sge" in #:configure-flags. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Dave Love 2017-07-25gnu: openmpi: Description mentions MPI 3.0....* gnu/packages/mpi.scm (openmpi): It's MPI 3, not MPI 2. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Dave Love 2017-07-25gnu: openmpi: Update to 1.10.7....* gnu/packages/mpi.scm (openmpi): Update to 1.10.7. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Dave Love 2017-06-30gnu: hwloc: Add "lib" and "debug" outputs....* gnu/packages/mpi.scm (hwloc)[outputs]: New field. [arguments]: Add 'avoid-circular-references' phase. (openmpi)[inputs]: Use the "lib" output of HWLOC. * gnu/packages/parallel.scm (slurm)[inputs]: Likewise. Ludovic Courtès 2017-06-30gnu: hwloc: Use /var as the localstatedir....* gnu/packages/mpi.scm (hwloc)[arguments]: Add #:configure-flags. Ludovic Courtès