|
From: Wolfgang D. <wol...@da...> - 2024-10-22 21:05:05
|
Am 22.10.24 um 20:16 schrieb Robert Dodier:
> On Tue, Oct 22, 2024 at 10:59 AM Leo Butler <Leo...@um...> wrote:
>
>> The command-line option --batch-string binds `batch_answers_from_file'
>> to `true'. That is how the test script, tests/test.sh.in, calls
>> `run_testsuite':
>
> Oh, okay, it's already covered then. Sounds good.
Well, thanks, that it works without interaction when called with
--batch-string - but how is the interactive run_testsuite() command
supposed to work?
(%i1) run_testsuite();
Testsuite run for SBCL 2.0.1.debian:
Running tests in rtest_ask1: Is s positive, negative or zero?
I have no idea, what 's' is, what expression is tested, and what the
test expects, so that it will not fail.
Shouldn't there the expected (tested) value be declared using assume()?
And run without user interaction?
IF - really - for example the function "asksign()" should be tested
(does it really return the input), something like
print("Please answer 'p;' here")$ answer:asksign(a);
might make sense (and check afterwards, that answer is really 'pos').
But in my opinon user interaction should be avoided if possible.
But several questions - without any background - when running the
testsuite? Does that make sense?
In several 'INSTALL'-files we have the recommendation, that one should
run 'run_testsuite();' and verify that it succeeds. That - in my opinion
- suggests, that it should run non-interactively without answering many
strange questions...
Best regards, Wolfgang
|