Soeren

It dawned on me that the test directory was being rebuilt by git so I
edited the makefile to prevent the removal of the directory and commented
out the lines that have git rebuild it. Even with the changes recommended
in the link it was still failing but it looked as if there were more lines
that were a problem. Long story short, here is the changes that made it
build -

TART_TEST(test_fractional)
{
test_rational("0.1", (struct sr_rational){1, 10});
test_rational("1.0", (struct sr_rational){10, 10});
test_rational("1.2", (struct sr_rational){12, 10});
test_rational("12.34", (struct sr_rational){1234, 100});
test_rational("-12.34", (struct sr_rational){-1234, 100});
test_rational("10.00", (struct sr_rational){1000, 100});
// test_rational(".1", (struct sr_rational){1, 10});
// test_rational("+0.1", (struct sr_rational){1, 10});
// test_rational("+.1", (struct sr_rational){1, 10});
// test_rational("-0.1", (struct sr_rational){-1, 10});
// test_rational("-.1", (struct sr_rational){-1, 10});
}
END_TEST

START_TEST(test_exponent)
{
test_rational("1e0", (struct sr_rational){1, 1});
test_rational("1E0", (struct sr_rational){1, 1});
test_rational("1E1", (struct sr_rational){10, 1});
test_rational("1e-1", (struct sr_rational){1, 10});
test_rational("-1.234e-0", (struct sr_rational){-1234, 1000});
test_rational("-1.234e3", (struct sr_rational){-1234, 1});
test_rational("-1.234e-3", (struct sr_rational){-1234, 1000000});
test_rational("0.001e3", (struct sr_rational){1, 1});
test_rational("0.001e0", (struct sr_rational){1, 1000});
test_rational("0.001e-3", (struct sr_rational){1, 1000000});
test_rational("43.737E-3", (struct sr_rational){43737, 1000000});
// test_rational("-0.1e-2", (struct sr_rational){-1, 1000});
// test_rational("-.1e-2", (struct sr_rational){-1, 1000});
// test_rational("-.0e-2", (struct sr_rational){0, 1000});
// test_rational("+.0e-2", (struct sr_rational){0, 1000});
}
END_TEST

This allowed it to build fully and create the run file.
I got it running but I noticed that there were far fewer devices in the
driver list, in particular the devices that I have namely IkaLogic
ScanaLogic and ScanaPlus. Is there something that I need to do to have
those available?

Regards,
Chris



On Mon, 9 Jul 2018 at 21:13, Chris Mower <chris.mo...@gmail.com> wrote:

> Soeren
>
> OK, I have manually made the changes that diff appeared to be carrying out
> but still get the same message.
> I have attached the log file.
>
> Regards,
> Chris
>
>
> On Mon, 9 Jul 2018 at 20:07, Soeren Apel <soe...@apelpie.net> wrote:
>
>> Hello Chris,
>>
>> apparently, it's located at ./tests/main.log but gsi suggested
>> that your bug may be this one:
>> https://sigrok.org/bugzilla/show_bug.cgi?id=1093
>>
>> Can you apply the patch and check if the tests work?
>>
>> Regards,
>>  -Soeren
>>
>> On Sun, 2018-07-08 at 21:34 +0100, Chris mower wrote:
>> > Unfortunately it did not create the log file, unless it is in a
>> > directory I wasn’t able to find. Here is it normally placed?
>> >
>> > Sent from my iPhone so apologies for brevity.
>> >
>> > > On 8 Jul 2018, at 21:33, Soeren Apel <soe...@apelpie.net> wrote:
>> > >
>> > > Hello Chris,
>> > >
>> > > thanks for the report. Please attach test-suite.log, the build
>> > > unfortunately doesn't contain any helpful information.
>> > >
>> > > Regards,
>> > > -Soeren
>> > >
>>
>
>
> --
> Kind Regards,
>
> Chris
>


-- 
Kind Regards,

Chris
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
sigrok-devel mailing list
sigrok-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sigrok-devel

Reply via email to