octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: arduino package testing


From: Doug Stewart
Subject: Re: arduino package testing
Date: Fri, 26 Apr 2019 15:12:57 -0400



On Fri, Apr 26, 2019 at 3:00 PM JohnD <address@hidden> wrote:


From: Doug Stewart [mailto:address@hidden]
Sent: Friday, April 26, 2019 1:30 PM
To: JohnD
Cc: Octave Maintainers List
Subject: Re: arduino package testing



On Fri, Apr 26, 2019 at 12:51 PM JohnD <address@hidden> wrote:
Whoops – should be

arduinosetup(‘libraries’, listArduinoLibraries('core'))




the single quotes were still wrong.
arduinosetup('libraries', listArduinoLibraries('core'))
this worked.


I got
Summary:

  PASS                              135
  FAIL                                8


--
DAS


--------------------

Can you post the log for which ones failed ?
I usually only see failures when using a board other than the uno, as some of the tests verify modes set on specific pins such as the i2c and SPI




I don't seem to have a rotaryEncoder !
 

 assert(!isempty(find(cellfun(@(x) strcmpi(x, "rotaryencoder"), ar.libraries()), 1)))
!!!!! test failed
assert (!isempty (find (cellfun (@(x) strcmpi (x, "rotaryencoder"), ar.libraries ()), 1))) failed
shared variables   scalar structure containing the fields:

    arduinos =
    {
      [1,1] =

        scalar structure containing the fields:

          port = /dev/ttyACM0
          board = uno

    }

>>>>> processing /home/doug/octave/arduino-0.4.0/@rotaryEncoder/readCount.m
***** test
 ar = arduino ();
 e = rotaryEncoder(ar, "d2","d3");
 readCount(e);
 readCount(e, "reset", 0);
 readCount(e, "reset", 1);
 readCount(e, "reset", true);
!!!!! test failed
sendCommand: unknown or unprogrammed libray 'rotaryencoder'.
>>>>> processing /home/doug/octave/arduino-0.4.0/@rotaryEncoder/readSpeed.m
***** test
 ar = arduino ();
 e = rotaryEncoder(ar, "d2","d3");
 readSpeed(e);
!!!!! test failed
sendCommand: unknown or unprogrammed libray 'rotaryencoder'.
>>>>> processing /home/doug/octave/arduino-0.4.0/@rotaryEncoder/resetCount.m
***** test
 ar = arduino ();
 e = rotaryEncoder(ar, "d2","d3");
 resetCount(e);
 resetCount(e, 10);
!!!!! test failed
sendCommand: unknown or unprogrammed libray 'rotaryencoder'.
>>>>> processing /home/doug/octave/arduino-0.4.0/@rotaryEncoder/rotaryEncoder.m
***** test
 assert(configurePin(ar, "d2"), "unset")
 assert(configurePin(ar, "d3"), "unset")
 enc = rotaryEncoder(ar, "d2", "d3");
 assert (isa (enc, "rotaryEncoder"))
 assert(!strcmpi(configurePin(ar, "d2"), "unset"))
 assert(!strcmpi(configurePin(ar, "d3"), "unset"))
 clear enc
 assert(configurePin(ar, "d2"), "unset")
 assert(configurePin(ar, "d3"), "unset")
!!!!! test failed
sendCommand: unknown or unprogrammed libray 'rotaryencoder'.
shared variables   scalar structure containing the fields:

    ar =

    <object arduino>

***** test
 enc = rotaryEncoder(ar, "d2", "d3", 100);
 assert (isa (enc, "rotaryEncoder"))
!!!!! test failed
sendCommand: unknown or unprogrammed libray 'rotaryencoder'.
shared variables   scalar structure containing the fields:

    ar =

    <object arduino>

***** test
 enc = rotaryEncoder(ar, "d2", "d3");
 fail ('rotaryEncoder(ar, "d2", "d3");', "already in use");
!!!!! test failed
sendCommand: unknown or unprogrammed libray 'rotaryencoder'.
shared variables   scalar structure containing the fields:

    ar =

    <object arduino>

>>>>> processing /home/doug/octave/arduino-0.4.0/@rotaryEncoder/subsref.m
***** test
 ar = arduino();
 r = rotaryEncoder (ar, "d2", "d3", 100);
 assert (isarduino(r.parent))
 assert (ar.port, r.parent.port)
 assert (r.ppr, 100)
 assert (numel(r.pins) == 2)
 fail ("r.invalid") 
!!!!! test failed
--
DASCertificate for 206392


reply via email to

[Prev in Thread] Current Thread [Next in Thread]