How to reproduce bugs?

2 views
Skip to first unread message

Juan Jose Garcia-Ripoll

unread,
May 25, 2013, 12:15:38 PM5/25/13
to cl-tes...@googlegroups.com
I have noticed that sometimes regressions depend on the order in which things are loaded. For instance, one feature in my compiler was leaving the global variables in a wrong status, causing errors in cl-ppcre. However now I am not entirely able to reproduce a bug that shows up when running the cl-test-grid suite.

How can I run a single test from the command line following the same sequence of steps that cl-test-grid does? Woudln't it make sense to export those steps to the log?

Juanjo

--
Instituto de Física Fundamental, CSIC
c/ Serrano, 113b, Madrid 28006 (Spain) 
http://juanjose.garciaripoll.googlepages.com

Anton Vodonosov

unread,
May 25, 2013, 12:25:18 PM5/25/13
to cl-tes...@googlegroups.com, Juan Jose Garcia-Ripoll

25.05.2013, 20:16, "Juan Jose Garcia-Ripoll" <juanjose.g...@gmail.com>:
> I have noticed that sometimes regressions depend on the order in which things are loaded. For instance, one feature in my compiler was leaving the global variables in a wrong status, causing errors in cl-ppcre. However now I am not entirely able to reproduce a bug that shows up when running the cl-test-grid suite.
> How can I run a single test from the command line following the same sequence of steps that cl-test-grid does?

Hello.

When testing load of the libraries, test-grid does (ql:quickload <libname> :verbose t).
When running a testsuite it does (tg-testsuites:libtest <libname>)
Here <libname> is a keyword, like :alexandria, :cl-ppcre.

> Woudln't it make sense to export those steps to the log?

Yes, it will improve usability. I will do so.

Let me know if you able to reproduce the issue now.

Juan Jose Garcia-Ripoll

unread,
May 25, 2013, 12:35:09 PM5/25/13
to Anton Vodonosov, cl-tes...@googlegroups.com

On Sat, May 25, 2013 at 6:25 PM, Anton Vodonosov <avodo...@yandex.ru> wrote:
When testing load of the libraries, test-grid does (ql:quickload <libname> :verbose t).
When running a testsuite it does (tg-testsuites:libtest <libname>)

What component do I need to load to have the tg-testsuite? If I load test-grid-tests, all of quicklisp seems to be compiled one way or another :-/

Anton Vodonosov

unread,
May 25, 2013, 12:38:47 PM5/25/13
to Juan Jose Garcia-Ripoll, cl-tes...@googlegroups.com

25.05.2013, 20:35, "Juan Jose Garcia-Ripoll" <juanjose.g...@gmail.com>:
> On Sat, May 25, 2013 at 6:25 PM, Anton Vodonosov <avodo...@yandex.ru> wrote:
>> When testing load of the libraries, test-grid does (ql:quickload <libname> :verbose t).
>> When running a testsuite it does (tg-testsuites:libtest <libname>)
>
> What component do I need to load to have the tg-testsuite? If I load test-grid-tests, all of quicklisp seems to be compiled one way or another :-/

Sorry I not explained that, the asdf system is test-grid-testsuites. It defines package test-grid-testsuites with nickname tg-testsuites

Juan Jose Garcia-Ripoll

unread,
May 25, 2013, 12:44:14 PM5/25/13
to Anton Vodonosov, cl-tes...@googlegroups.com

On Sat, May 25, 2013 at 6:38 PM, Anton Vodonosov <avodo...@yandex.ru> wrote:
Sorry I not explained that, the asdf system is test-grid-testsuites. It defines package test-grid-testsuites with nickname tg-testsuites

Thanks! Works like a charm now!
Reply all
Reply to author
Forward
0 new messages