!zghijEASpYQWYFzriI:nixos.org

Hydra

396 Members
113 Servers

Load older messages


SenderMessageTime
18 Aug 2021
@esac:matrix.orgp10r left the room.00:38:03
@grahamc:nixos.org@grahamc:nixos.orghttps://github.com/NixOS/hydra/pull/100119:46:17
@grahamc:nixos.org@grahamc:nixos.orgRFR as always ... :P19:51:53
19 Aug 2021
@hexagonk:halogen.cityhexagonk joined the room.02:38:55
@grahamc:nixos.org@grahamc:nixos.orgugh I peppered "use warnings" around and it is a lot20:59:00
@grahamc:nixos.org@grahamc:nixos.org

Anyone know automake? I made this change:

https://github.com/NixOS/hydra/pull/1002/files#diff-0462e381b2fb3286568215681c8983490a37ac9ae0f0c5ee304df7fa6426d4af

and after it runs perlcritic . it errors with:

/nix/store/kxj6cblcsd1qcbbxlmbswwrn89zcmgd6-bash-4.4-p23/bin/bash: line 9: ./perlcritic: No such file or directory
FAIL: perlcritic
==================
1 of 1 test failed
==================

note I don't know automake, so this was totally a shot in the dark.

21:07:18
@tomberek:matrix.orgtomberek grahamc (he/him): the syntax/style-checker isn't in scope? perlPackages.PerlCritic 21:13:53
@grahamc:nixos.org@grahamc:nixos.org it is in scope, that error message is immediately after successfully running perlcritic, but it isn't available at ./perlcritic of course 21:15:16
@andi:kack.itandi-Perhaps since it is in the TESTS list? I haven't looked into the details but I could imagine the test scripts being "built" and then execute them21:16:42
@andi:kack.itandi-keep in mind that make targets usually are there for producing said target21:17:01
@grahamc:nixos.org@grahamc:nixos.orgright21:17:22
@grahamc:nixos.org@grahamc:nixos.orgyeah, I don't really know how automake expects to be used to make this thing get called21:17:36
@grahamc:nixos.org@grahamc:nixos.orgdoes automake automatically call all the targets?21:17:44
@tomberek:matrix.orgtombereki believe TESTS will be turned into targets that are called. https://www.gnu.org/software/automake/manual/html_node/Tests.html21:19:18
@tomberek:matrix.orgtomberekoh, i see what you mean21:21:45
@tomberek:matrix.orgtomberekPL_LOG_COMPILER21:24:48
@tomberek:matrix.orgtomberek you need to set the test runner to be make 21:25:50
@grahamc:nixos.org@grahamc:nixos.orgeh?21:26:04
@grahamc:nixos.org@grahamc:nixos.orgwhat test runner?21:26:14
@tomberek:matrix.orgtomberek
For all tests without a registered extension, the variables LOG_COMPILER, AM_LOG_FLAGS, and LOG_FLAGS may be used.
21:27:06
@tomberek:matrix.orgtombereki think default behavior is for TESTS to be a list of local files, not a list of make targets21:28:45
@grahamc:nixos.org@grahamc:nixos.orghrm21:29:58
@grahamc:nixos.org@grahamc:nixos.orgI have to assume there is a better solution here, I only added it to TESTS because it was right there21:31:11
@tomberek:matrix.orgtombereki'll look after dinner21:34:19
@sternenseemann:systemli.orgsterniI suppose you just can have a #!/usr/bin/env perl script somewhere which is added to TESTS21:34:32
@sternenseemann:systemli.orgsterniand that invokes PerlCritic in the right way21:34:39
@tomberek:matrix.orgtomberek

grahamc (he/him):

diff --git a/Makefile.am b/Makefile.am
index 3a59d6e8..33a0817f 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -2,11 +2,8 @@ SUBDIRS = src t doc
 BOOTCLEAN_SUBDIRS = $(SUBDIRS)
 DIST_SUBDIRS      = $(SUBDIRS)
 EXTRA_DIST        = hydra-module.nix
-TESTS             = perlcritic
-
-.PHONY: perlcritic
-perlcritic:
-	perlcritic .
+TESTS             = src t
+TESTS_ENVIRONMENT = perlcritic
 
 install-data-local: hydra-module.nix
 	$(INSTALL) -d $(DESTDIR)$(datadir)/nix

23:02:09
20 Aug 2021
@grahamc:nixos.org@grahamc:nixos.orgI ended up just, indeed, making a TESTS .pl script to avoid interrupting hairy automake goop: https://github.com/NixOS/hydra/pull/1002/files#diff-a2c2431dcaeb95008ab4c5578c34b5f37f334783f8033f3b7616cf0b4ac3e4b114:45:57
21 Aug 2021
@sternenseemann:systemli.orgsterni changed their display name from sterni (he/him) to sterni[m].22:21:30
@sternenseemann:systemli.orgsterni changed their display name from sterni[m] to sterni.22:21:49

Show newer messages


Back to Room ListRoom Version: 6