unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Addition to gnu-build-system: make test.
@ 2016-08-26 16:14 ng0
  2016-08-28  9:05 ` Efraim Flashner
  0 siblings, 1 reply; 6+ messages in thread
From: ng0 @ 2016-08-26 16:14 UTC (permalink / raw)
  To: guix-devel


2016-08-26 15:16 <ng0> recently when I pointed out to someone and they
added a make check which just calls the original make test, I was
wondering if our gnu build system should try for make test and make
check.. this seems to be very common test instead of check
2016-08-26 15:19 <kyamashita> ng0: Or maybe try one if the other fails?
2016-08-26 15:19 <ng0> yes.. very often I had to replace check with just
test
2016-08-26 15:21 <kyamashita> It might be worth bringing up on the
guix-devel mailing list to see what others think.
2016-08-26 15:21 <ng0> yes.. I will do so later

What do others think? How can we extend gnu-build-system so that make
test can be used but make check is not ignored?
-- 
ng0
For non-prism friendly talk find me on http://www.psyced.org

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Addition to gnu-build-system: make test.
  2016-08-26 16:14 Addition to gnu-build-system: make test ng0
@ 2016-08-28  9:05 ` Efraim Flashner
  2016-08-28  9:41   ` John Darrington
  0 siblings, 1 reply; 6+ messages in thread
From: Efraim Flashner @ 2016-08-28  9:05 UTC (permalink / raw)
  To: ng0; +Cc: guix-devel

[-- Attachment #1: Type: text/plain, Size: 1542 bytes --]

On Fri, Aug 26, 2016 at 04:14:25PM +0000, ng0 wrote:
> 
> 2016-08-26 15:16 <ng0> recently when I pointed out to someone and they
> added a make check which just calls the original make test, I was
> wondering if our gnu build system should try for make test and make
> check.. this seems to be very common test instead of check
> 2016-08-26 15:19 <kyamashita> ng0: Or maybe try one if the other fails?
> 2016-08-26 15:19 <ng0> yes.. very often I had to replace check with just
> test
> 2016-08-26 15:21 <kyamashita> It might be worth bringing up on the
> guix-devel mailing list to see what others think.
> 2016-08-26 15:21 <ng0> yes.. I will do so later
> 
> What do others think? How can we extend gnu-build-system so that make
> test can be used but make check is not ignored?
> -- 
> ng0
> For non-prism friendly talk find me on http://www.psyced.org
> 

I was curious how many times we use test-target:

$ grep test-target gnu/packages/*scm | wc -l
87
$ grep test-target gnu/packages/*scm | grep \"test\" | wc -l
52
$ grep test-target gnu/packages/*scm | grep \"tests\" | wc -l
8

I guess the real question is, will running an extra `make test' after
`make check' break anything? Also, I'm sure some of the makefiles have
one as an alias of the other, we don't want to run the tests twice.


-- 
Efraim Flashner   <efraim@flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Addition to gnu-build-system: make test.
  2016-08-28  9:05 ` Efraim Flashner
@ 2016-08-28  9:41   ` John Darrington
  2016-08-28 10:46     ` ng0
  0 siblings, 1 reply; 6+ messages in thread
From: John Darrington @ 2016-08-28  9:41 UTC (permalink / raw)
  To: Efraim Flashner; +Cc: guix-devel, ng0

[-- Attachment #1: Type: text/plain, Size: 2237 bytes --]

"make check" is what the Gnu Coding Standards specify:
http://www.gnu.org/prep/standards/standards.html#Standard-Targets

So I think it should stay as it is - at least for the gnu-build-system

J'

On Sun, Aug 28, 2016 at 12:05:47PM +0300, Efraim Flashner wrote:
     On Fri, Aug 26, 2016 at 04:14:25PM +0000, ng0 wrote:
     > 
     > 2016-08-26 15:16 <ng0> recently when I pointed out to someone and they
     > added a make check which just calls the original make test, I was
     > wondering if our gnu build system should try for make test and make
     > check.. this seems to be very common test instead of check
     > 2016-08-26 15:19 <kyamashita> ng0: Or maybe try one if the other fails?
     > 2016-08-26 15:19 <ng0> yes.. very often I had to replace check with just
     > test
     > 2016-08-26 15:21 <kyamashita> It might be worth bringing up on the
     > guix-devel mailing list to see what others think.
     > 2016-08-26 15:21 <ng0> yes.. I will do so later
     > 
     > What do others think? How can we extend gnu-build-system so that make
     > test can be used but make check is not ignored?
     > -- 
     > ng0
     > For non-prism friendly talk find me on http://www.psyced.org
     > 
     
     I was curious how many times we use test-target:
     
     $ grep test-target gnu/packages/*scm | wc -l
     87
     $ grep test-target gnu/packages/*scm | grep \"test\" | wc -l
     52
     $ grep test-target gnu/packages/*scm | grep \"tests\" | wc -l
     8
     
     I guess the real question is, will running an extra `make test' after
     `make check' break anything? Also, I'm sure some of the makefiles have
     one as an alias of the other, we don't want to run the tests twice.
     
     
     -- 
     Efraim Flashner   <efraim@flashner.co.il>   ?????????? ??????????
     GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
     Confidentiality cannot be guaranteed on emails sent or received unencrypted



-- 
Avoid eavesdropping.  Send strong encryted email.
PGP Public key ID: 1024D/2DE827B3 
fingerprint = 8797 A26D 0854 2EAB 0285  A290 8A67 719C 2DE8 27B3
See http://sks-keyservers.net or any PGP keyserver for public key.


[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Addition to gnu-build-system: make test.
  2016-08-28  9:41   ` John Darrington
@ 2016-08-28 10:46     ` ng0
  2016-08-28 12:23       ` John Darrington
  0 siblings, 1 reply; 6+ messages in thread
From: ng0 @ 2016-08-28 10:46 UTC (permalink / raw)
  To: John Darrington, Efraim Flashner; +Cc: guix-devel

Can we ease it up in a different way for applications which do not have
aliases?
Maybe using something like
#:check-is-tests? #t in the arguments, which fails when check and test
exist?

John Darrington <john@darrington.wattle.id.au> writes:

> [ Unknown signature status ]
> "make check" is what the Gnu Coding Standards specify:
> http://www.gnu.org/prep/standards/standards.html#Standard-Targets
>
> So I think it should stay as it is - at least for the gnu-build-system
>
> J'
>
> On Sun, Aug 28, 2016 at 12:05:47PM +0300, Efraim Flashner wrote:
>      On Fri, Aug 26, 2016 at 04:14:25PM +0000, ng0 wrote:
>      > 
>      > 2016-08-26 15:16 <ng0> recently when I pointed out to someone and they
>      > added a make check which just calls the original make test, I was
>      > wondering if our gnu build system should try for make test and make
>      > check.. this seems to be very common test instead of check
>      > 2016-08-26 15:19 <kyamashita> ng0: Or maybe try one if the other fails?
>      > 2016-08-26 15:19 <ng0> yes.. very often I had to replace check with just
>      > test
>      > 2016-08-26 15:21 <kyamashita> It might be worth bringing up on the
>      > guix-devel mailing list to see what others think.
>      > 2016-08-26 15:21 <ng0> yes.. I will do so later
>      > 
>      > What do others think? How can we extend gnu-build-system so that make
>      > test can be used but make check is not ignored?
>      > -- 
>      > ng0
>      > For non-prism friendly talk find me on http://www.psyced.org
>      > 
>      
>      I was curious how many times we use test-target:
>      
>      $ grep test-target gnu/packages/*scm | wc -l
>      87
>      $ grep test-target gnu/packages/*scm | grep \"test\" | wc -l
>      52
>      $ grep test-target gnu/packages/*scm | grep \"tests\" | wc -l
>      8
>      
>      I guess the real question is, will running an extra `make test' after
>      `make check' break anything? Also, I'm sure some of the makefiles have
>      one as an alias of the other, we don't want to run the tests twice.
>      
>      
>      -- 
>      Efraim Flashner   <efraim@flashner.co.il>   ?????????? ??????????
>      GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
>      Confidentiality cannot be guaranteed on emails sent or received unencrypted
>
>
>
> -- 
> Avoid eavesdropping.  Send strong encryted email.
> PGP Public key ID: 1024D/2DE827B3 
> fingerprint = 8797 A26D 0854 2EAB 0285  A290 8A67 719C 2DE8 27B3
> See http://sks-keyservers.net or any PGP keyserver for public key.
>

-- 
ng0
For non-prism friendly talk find me on http://www.psyced.org

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Addition to gnu-build-system: make test.
  2016-08-28 10:46     ` ng0
@ 2016-08-28 12:23       ` John Darrington
  2016-08-28 12:37         ` Tobias Geerinckx-Rice
  0 siblings, 1 reply; 6+ messages in thread
From: John Darrington @ 2016-08-28 12:23 UTC (permalink / raw)
  To: ng0; +Cc: guix-devel

[-- Attachment #1: Type: text/plain, Size: 3425 bytes --]

Why not generalise that:

check-alias "test" which defaults to check.  Or something similar.

J'

On Sun, Aug 28, 2016 at 10:46:19AM +0000, ng0 wrote:
     Can we ease it up in a different way for applications which do not have
     aliases?
     Maybe using something like
     #:check-is-tests? #t in the arguments, which fails when check and test
     exist?
     
     John Darrington <john@darrington.wattle.id.au> writes:
     
     > [ Unknown signature status ]
     > "make check" is what the Gnu Coding Standards specify:
     > http://www.gnu.org/prep/standards/standards.html#Standard-Targets
     >
     > So I think it should stay as it is - at least for the gnu-build-system
     >
     > J'
     >
     > On Sun, Aug 28, 2016 at 12:05:47PM +0300, Efraim Flashner wrote:
     >      On Fri, Aug 26, 2016 at 04:14:25PM +0000, ng0 wrote:
     >      > 
     >      > 2016-08-26 15:16 <ng0> recently when I pointed out to someone and they
     >      > added a make check which just calls the original make test, I was
     >      > wondering if our gnu build system should try for make test and make
     >      > check.. this seems to be very common test instead of check
     >      > 2016-08-26 15:19 <kyamashita> ng0: Or maybe try one if the other fails?
     >      > 2016-08-26 15:19 <ng0> yes.. very often I had to replace check with just
     >      > test
     >      > 2016-08-26 15:21 <kyamashita> It might be worth bringing up on the
     >      > guix-devel mailing list to see what others think.
     >      > 2016-08-26 15:21 <ng0> yes.. I will do so later
     >      > 
     >      > What do others think? How can we extend gnu-build-system so that make
     >      > test can be used but make check is not ignored?
     >      > -- 
     >      > ng0
     >      > For non-prism friendly talk find me on http://www.psyced.org
     >      > 
     >      
     >      I was curious how many times we use test-target:
     >      
     >      $ grep test-target gnu/packages/*scm | wc -l
     >      87
     >      $ grep test-target gnu/packages/*scm | grep \"test\" | wc -l
     >      52
     >      $ grep test-target gnu/packages/*scm | grep \"tests\" | wc -l
     >      8
     >      
     >      I guess the real question is, will running an extra `make test' after
     >      `make check' break anything? Also, I'm sure some of the makefiles have
     >      one as an alias of the other, we don't want to run the tests twice.
     >      
     >      
     >      -- 
     >      Efraim Flashner   <efraim@flashner.co.il>   ?????????? ??????????
     >      GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
     >      Confidentiality cannot be guaranteed on emails sent or received unencrypted
     >
     >
     >
     > -- 
     > Avoid eavesdropping.  Send strong encryted email.
     > PGP Public key ID: 1024D/2DE827B3 
     > fingerprint = 8797 A26D 0854 2EAB 0285  A290 8A67 719C 2DE8 27B3
     > See http://sks-keyservers.net or any PGP keyserver for public key.
     >
     
     -- 
     ng0
     For non-prism friendly talk find me on http://www.psyced.org

-- 
Avoid eavesdropping.  Send strong encryted email.
PGP Public key ID: 1024D/2DE827B3 
fingerprint = 8797 A26D 0854 2EAB 0285  A290 8A67 719C 2DE8 27B3
See http://sks-keyservers.net or any PGP keyserver for public key.


[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Addition to gnu-build-system: make test.
  2016-08-28 12:23       ` John Darrington
@ 2016-08-28 12:37         ` Tobias Geerinckx-Rice
  0 siblings, 0 replies; 6+ messages in thread
From: Tobias Geerinckx-Rice @ 2016-08-28 12:37 UTC (permalink / raw)
  To: john, ng0; +Cc: guix-devel


[-- Attachment #1.1: Type: text/plain, Size: 792 bytes --]

Hullo,

On 28/08/16 14:23, John Darrington wrote:
> Why not generalise that:
> check-alias "test" which defaults to check.  Or something similar.

Sure. How about #:test-target? :-)

(Not that calling it test-target instead of check-target isn't
needlessly confusing already. Trips me up every time.)

> "make check" is what the Gnu Coding Standards specify:
> http://www.gnu.org/prep/standards/standards.html#Standard-Targets
>
> So I think it should stay as it is - at least for the gnu-build-system

I agree.

I don't see how adding dark magic here will save packagers' time. We'll
still have to check the logs to make sure tests actually run, and any
new failure modes are just that little bit harder to debug.

Kind regards,

T G-R (back from an IMAP holiday)


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 473 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-08-28 12:37 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-26 16:14 Addition to gnu-build-system: make test ng0
2016-08-28  9:05 ` Efraim Flashner
2016-08-28  9:41   ` John Darrington
2016-08-28 10:46     ` ng0
2016-08-28 12:23       ` John Darrington
2016-08-28 12:37         ` Tobias Geerinckx-Rice

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).