[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: arduino package testing
From: |
JohnD |
Subject: |
RE: arduino package testing |
Date: |
Fri, 26 Apr 2019 16:19:26 -0400 |
From: Doug Stewart [mailto:address@hidden
Sent: Friday, April 26, 2019 3:13 PM
To: JohnD
Cc: Octave Maintainers List
Subject: Re: arduino package testing
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
--
DAS
--------------------
Ok that makes sense in terms of failing, however, it 'should' have installed it
listArduinoLibraries('core') should list rotary encoder as one of the core
libraries, which should then have been programmed with the arduinosetup command
and pressing the upload button
- arduino package testing, John Donoghue, 2019/04/25
- Re: arduino package testing, Doug Stewart, 2019/04/25
- Re: arduino package testing, Andreas Weber, 2019/04/26
- Re: arduino package testing, Doug Stewart, 2019/04/26
- RE: arduino package testing, JohnD, 2019/04/26
- Re: arduino package testing, John Donoghue, 2019/04/26
- Re: arduino package testing, Doug Stewart, 2019/04/27
- Re: arduino package testing, Doug Stewart, 2019/04/30
- RE: arduino package testing, JohnD, 2019/04/30