guix/tests
Maxime Devos 96eda590e1
lint: Check that (cc-for-target) and friends are used.
"CC=gcc" is almost always incorrect; people often just don't
notice the incorrectness because they are compiling natively.
For an exception, see tzdata.

"guix style" partially made things worse, so I partially ignored it.

* guix/lint.scm (check-compiler-for-target): New linter.
* tests/lint.scm
("compiler-for-target: unconditional CC=gcc is unacceptable")
("compiler-for-target: looks through G-expressions")
("compiler-for-target: (cc-for-target) is acceptable")
("compiler-for-target: CC=gcc is acceptable when target=#false"):
Test it.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2023-09-08 19:12:15 +02:00
..
keys
services
accounts.scm
base16.scm
base32.scm
base64.scm
boot-parameters.scm
bournish.scm
build-emacs-utils.scm
build-utils.scm
builders.scm
cache.scm
challenge.scm
channels.scm
combinators.scm
containers.scm
cpan.scm
cpio.scm
cran.scm
crate.scm
cve-sample.json
cve.scm
debug-link.scm
derivations.scm
discovery.scm
egg.scm
elm.scm
elpa.scm
file-systems.scm
gem.scm
gexp.scm
git-authenticate.scm
git.scm
glob.scm
gnu-maintenance.scm gnu-maintenance: Consider Qt source tarballs as "release files". 2023-08-26 11:38:56 -04:00
go.scm
grafts.scm
graph.scm
gremlin.scm
guix-archive.sh
guix-authenticate.sh
guix-build-branch.sh
guix-build.sh
guix-daemon.sh
guix-describe.sh
guix-download.sh
guix-environment-container.sh
guix-environment.sh
guix-gc.sh
guix-git-authenticate.sh
guix-graph.sh
guix-hash.sh
guix-home.sh
guix-lint.sh
guix-locate.sh
guix-pack-localstatedir.sh
guix-pack-relocatable.sh
guix-pack.sh
guix-package-aliases.sh
guix-package-net.sh
guix-package.sh
guix-refresh.sh
guix-repl.sh
guix-shell-export-manifest.sh
guix-shell.sh
guix-style.sh
guix-system.sh
guix-time-machine.sh
hackage.scm
hexpm.scm
home-import.scm
home-services.scm
http-client.scm
import-git.scm
import-github.scm
import-utils.scm import-utils: Do not include punctuation when wrapping in @code{}. 2023-08-28 19:08:38 +02:00
inferior.scm
ipfs.scm
lint.scm lint: Check that (cc-for-target) and friends are used. 2023-09-08 19:12:15 +02:00
minetest.scm
modules.scm
monads.scm
nar.scm
networking.scm
offload.scm
opam.scm
openpgp.scm
pack.scm
packages.scm
pki.scm
print.scm
processes.scm
profiles.scm
publish.scm
pypi.scm
read-print.scm
records.scm
rpm.scm
scripts.scm
search-paths.scm
services.scm gnu: services: Revert to deleting and updating all matching services 2023-08-31 23:31:50 -04:00
sets.scm
size.scm
status.scm
store-database.scm
store-deduplication.scm
store-roots.scm
store.scm
style.scm
substitute.scm
swh.scm
syscalls.scm
system.scm
test.drv
texlive.scm
transformations.scm
ui.scm
union.scm
upstream.scm
utils.scm
uuid.scm
workers.scm