unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* dev env again
@ 2017-09-28 19:35 Catonano
  2017-10-02 20:08 ` Ludovic Courtès
  0 siblings, 1 reply; 2+ messages in thread
From: Catonano @ 2017-09-28 19:35 UTC (permalink / raw)
  To: help-guix

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

How do I learn about how to write new system tests ?

What I'd like to do is not that complicated

I'm taking a look at the file tests/elpa.scm in order to understand how
system tests are supposed to be written

There's this excerpt

(define (eval-test-with-elpa pkg)
  (mock
   ;; replace the two fetching functions
   ((guix import elpa) fetch-elpa-package


what's this mock thing that gets called ?

I git pull, make clean, clean-go, remove suroius .go files manally, build

then guile --listen (I don't remember that trick to use a socket file),
connect emacs, looking for my old thread in which Alex Kost indicated C-c .
u

and then I do C-c .u on "mock"

no code for module (test-elpa)

I tried with "i" in the info manual but "mock" couldn't be found

where can I learn anything about that "mock" thing (is it a function or a
macro ) ?

More generally, how do I learn about how to write new system tests ?

Thanks in advance

[-- Attachment #2: Type: text/html, Size: 1285 bytes --]

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

* Re: dev env again
  2017-09-28 19:35 dev env again Catonano
@ 2017-10-02 20:08 ` Ludovic Courtès
  0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2017-10-02 20:08 UTC (permalink / raw)
  To: Catonano; +Cc: help-guix

Hello Catonano,

Catonano <catonano@gmail.com> skribis:

> How do I learn about how to write new system tests ?

Documentation on this is sparse, to say, the least, but these pages may
help:

  https://www.gnu.org/software/guix/news/guixsd-system-tests.html
  https://www.gnu.org/software/guix/manual/html_node/Running-the-Test-Suite.html (bottom)
  
Then I suggest that you take a look at some of the tests in:

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

> What I'd like to do is not that complicated
>
> I'm taking a look at the file tests/elpa.scm in order to understand how
> system tests are supposed to be written

Under tests/ you’ll find unit tests, not system tests.

HTH!

Ludo’.

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

end of thread, other threads:[~2017-10-02 20:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-28 19:35 dev env again Catonano
2017-10-02 20:08 ` Ludovic Courtès

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).