Compare commits
2 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a2b93f39c8 | ||
|
|
a9a9883a60 |
2 changed files with 11 additions and 4 deletions
|
|
@ -12,3 +12,10 @@ repos:
|
|||
rev: 1.32.2
|
||||
hooks:
|
||||
- id: tmt-lint
|
||||
|
||||
- repo: https://github.com/koalaman/shellcheck-precommit
|
||||
rev: v0.10.0
|
||||
hooks:
|
||||
- id: shellcheck
|
||||
require_serial: true # Podman has trouble running concurrently
|
||||
args: ["--exclude=SC1091"] # Ignore "Not following" sourced scripts
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
#!/bin/sh -eux
|
||||
#!/bin/bash -eux
|
||||
|
||||
# This test assumes lld is already installed.
|
||||
|
||||
function verify_ld_bfd {
|
||||
verify_ld_bfd (){
|
||||
|
||||
# Verify that /usr/bin/ld points to ld.bfd.
|
||||
ls -l /etc/alternatives/ld | grep ld.bfd
|
||||
[[ $(readlink -f /etc/alternatives/ld) == *"ld.bfd" ]]
|
||||
|
||||
# Run ld and verify it invokes ld.bfd
|
||||
/usr/bin/ld --version | grep 'GNU ld'
|
||||
|
|
@ -19,7 +19,7 @@ verify_ld_bfd
|
|||
update-alternatives --set ld /usr/bin/ld.lld
|
||||
|
||||
# Verify that /usr/bin/ld points to lld
|
||||
ls -l /etc/alternatives/ld | grep ld.lld
|
||||
[[ $(readlink -f /etc/alternatives/ld) == *"lld" ]]
|
||||
|
||||
# Run ld and verify it invokes lld
|
||||
/usr/bin/ld --version | grep 'LLD'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue