Skip to content

Commit b70c3b3

Browse files
authored
Update CICD.yml
Add tests for hashsum symlinks
1 parent 221ca41 commit b70c3b3

1 file changed

Lines changed: 47 additions & 1 deletion

File tree

.github/workflows/CICD.yml

Lines changed: 47 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,53 @@ jobs:
341341
! test -f /tmp/usr/local/share/zsh/site-functions/_install
342342
! test -f /tmp/usr/local/share/bash-completion/completions/head
343343
! test -f /tmp/usr/local/share/fish/vendor_completions.d/cat.fish
344-
344+
- name: "`make install MULTICALL=n`"
345+
shell: bash
346+
run: |
347+
set -x
348+
DESTDIR=/tmp/ make PROFILE=release MULTICALL=n install
349+
# Check that the utils are present
350+
test -f /tmp/usr/local/bin/hashsum
351+
# Check that hashsum symlinks are present
352+
test -h /tmp/usr/local/bin/b2sum
353+
test -h /tmp/usr/local/bin/b3sum
354+
test -h /tmp/usr/local/bin/md5sum
355+
test -h /tmp/usr/local/bin/sha1sum
356+
test -h /tmp/usr/local/bin/sha224sum
357+
test -h /tmp/usr/local/bin/sha256sum
358+
test -h /tmp/usr/local/bin/sha3-224sum
359+
test -h /tmp/usr/local/bin/sha3-256sum
360+
test -h /tmp/usr/local/bin/sha3-384sum
361+
test -h /tmp/usr/local/bin/sha3-512sum
362+
test -h /tmp/usr/local/bin/sha384sum
363+
test -h /tmp/usr/local/bin/sha3sum
364+
test -h /tmp/usr/local/bin/sha512sum
365+
test -h /tmp/usr/local/bin/shake128sum
366+
test -h /tmp/usr/local/bin/shake256sum
367+
- name: "`make install MULTICALL=y`"
368+
shell: bash
369+
run: |
370+
set -x
371+
DESTDIR=/tmp/ make PROFILE=release MULTICALL=y install
372+
# Check that the utils are present
373+
test -f /tmp/usr/local/bin/coreutils
374+
# Check that hashsum symlinks are present
375+
test -h /tmp/usr/local/bin/b2sum
376+
test -h /tmp/usr/local/bin/b3sum
377+
test -h /tmp/usr/local/bin/md5sum
378+
test -h /tmp/usr/local/bin/sha1sum
379+
test -h /tmp/usr/local/bin/sha224sum
380+
test -h /tmp/usr/local/bin/sha256sum
381+
test -h /tmp/usr/local/bin/sha3-224sum
382+
test -h /tmp/usr/local/bin/sha3-256sum
383+
test -h /tmp/usr/local/bin/sha3-384sum
384+
test -h /tmp/usr/local/bin/sha3-512sum
385+
test -h /tmp/usr/local/bin/sha384sum
386+
test -h /tmp/usr/local/bin/sha3sum
387+
test -h /tmp/usr/local/bin/sha512sum
388+
test -h /tmp/usr/local/bin/shake128sum
389+
test -h /tmp/usr/local/bin/shake256sum
390+
345391
build_rust_stable:
346392
name: Build/stable
347393
needs: [ min_version, deps ]

0 commit comments

Comments
 (0)