arduino package testing

classic Classic list List threaded Threaded
18 messages Options
Reply | Threaded
Open this post in threaded view
|

arduino package testing

John Donoghue-3
Does anyone have some spare time and a arduino uno floating around that
is able to verify the to be released version of the arduino package ?

It requires installing the arduino package from the release tracker:

https://sourceforge.net/p/octave/package-releases/_discuss/thread/64f6371d91/3ca9/attachment/arduino-0.4.0.tar.gz


In addition you will need have installed a version of the instrument
control package, and the arduino ide


Prior to testing you will need install the octave/arduino firmware on
the arduino board:

in octave:

 > pkg load arduino

 > arduinosetup(listArduinoLibraries('core'))

(press upload to compile and load the code)

Then run the tests:

 > __run_test_suite__({'thefullpath/tothearduinopackage/arduino-0.4.0'}, {})


JohnD





Reply | Threaded
Open this post in threaded view
|

Re: arduino package testing

Doug Stewart-4


On Thu, Apr 25, 2019 at 7:09 PM John Donoghue <[hidden email]> wrote:
Does anyone have some spare time and a arduino uno floating around that
is able to verify the to be released version of the arduino package ?

It requires installing the arduino package from the release tracker:

https://sourceforge.net/p/octave/package-releases/_discuss/thread/64f6371d91/3ca9/attachment/arduino-0.4.0.tar.gz


In addition you will need have installed a version of the instrument
control package, and the arduino ide


Prior to testing you will need install the octave/arduino firmware on
the arduino board:

in octave:

 > pkg load arduino

 > arduinosetup(listArduinoLibraries('core'))

(press upload to compile and load the code)

Then run the tests:

 > __run_test_suite__({'thefullpath/tothearduinopackage/arduino-0.4.0'}, {})


JohnD





I have a uno and I will try and test it tomorrow.

--
DASCertificate for 206392

Reply | Threaded
Open this post in threaded view
|

Re: arduino package testing

John Donoghue-3
On 4/25/19 7:13 PM, Doug Stewart wrote:


On Thu, Apr 25, 2019 at 7:09 PM John Donoghue <[hidden email]> wrote:
Does anyone have some spare time and a arduino uno floating around that
is able to verify the to be released version of the arduino package ?

It requires installing the arduino package from the release tracker:

https://sourceforge.net/p/octave/package-releases/_discuss/thread/64f6371d91/3ca9/attachment/arduino-0.4.0.tar.gz


In addition you will need have installed a version of the instrument
control package, and the arduino ide


Prior to testing you will need install the octave/arduino firmware on
the arduino board:

in octave:

 > pkg load arduino

 > arduinosetup(listArduinoLibraries('core'))

(press upload to compile and load the code)

Then run the tests:

 > __run_test_suite__({'thefullpath/tothearduinopackage/arduino-0.4.0'}, {})


JohnD





I have a uno and I will try and test it tomorrow.

--
DASCertificate for 206392

Thanks! let me know if there are any questions or issues.

Reply | Threaded
Open this post in threaded view
|

Re: arduino package testing

Andreas Weber-6
In reply to this post by John Donoghue-3
Am 26.04.19 um 00:51 schrieb John Donoghue:
> Does anyone have some spare time and a arduino uno floating around that
> is able to verify the to be released version of the arduino package ?
> ...
> Then run the tests:

Does this run some hardware-in-the-loop tests? For example does it need
some brifges between digout and digins?

-- Andy

Reply | Threaded
Open this post in threaded view
|

Re: arduino package testing

Doug Stewart-4
In reply to this post by John Donoghue-3


On Thu, Apr 25, 2019 at 7:09 PM John Donoghue <[hidden email]> wrote:
Does anyone have some spare time and a arduino uno floating around that
is able to verify the to be released version of the arduino package ?

It requires installing the arduino package from the release tracker:

https://sourceforge.net/p/octave/package-releases/_discuss/thread/64f6371d91/3ca9/attachment/arduino-0.4.0.tar.gz


In addition you will need have installed a version of the instrument
control package, and the arduino ide


Prior to testing you will need install the octave/arduino firmware on
the arduino board:

in octave:

 > pkg load arduino

 > arduinosetup(listArduinoLibraries('core'))

I got this:
>> arduinosetup(listArduinoLibraries('core'))
error: arduinosetup: expected property name, value pairs
error: called from
    arduinosetup at line 51 column 5
>>

 

(press upload to compile and load the code)

Then run the tests:

 > __run_test_suite__({'thefullpath/tothearduinopackage/arduino-0.4.0'}, {})


JohnD







--
DASCertificate for 206392

Reply | Threaded
Open this post in threaded view
|

RE: arduino package testing

John Donoghue-3

Whoops – should be

 

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

 

 

Reply | Threaded
Open this post in threaded view
|

RE: Re: arduino package testing

John Donoghue-3
In reply to this post by John Donoghue-3
>
> Message: 5
> Date: Fri, 26 Apr 2019 07:57:06 +0200
> From: Andreas Weber <[hidden email]>
> To: [hidden email]
> Subject: Re: arduino package testing
> Message-ID: <[hidden email]>
> Content-Type: text/plain; charset=utf-8; format=flowed
>
> Am 26.04.19 um 00:51 schrieb John Donoghue:
> > Does anyone have some spare time and a arduino uno floating around that
> > is able to verify the to be released version of the arduino package ?
> > ...
> > Then run the tests:
>
> Does this run some hardware-in-the-loop tests? For example does it need
> some brifges between digout and digins?
>
> -- Andy
>
>
>
> ------------------------------

No - really just verifies it can call the commands without erroring

There is another test file that attempts to use specific spi and i2c devices
and I/O pins and their responses, but it doesn't run as part of the normal
testsuite


Reply | Threaded
Open this post in threaded view
|

Re: Re: arduino package testing

Doug Stewart-4


On Fri, Apr 26, 2019 at 12:55 PM JohnD <[hidden email]> wrote:
>
> Message: 5
> Date: Fri, 26 Apr 2019 07:57:06 +0200
> From: Andreas Weber <[hidden email]>
> To: [hidden email]
> Subject: Re: arduino package testing
> Message-ID: <[hidden email]>
> Content-Type: text/plain; charset=utf-8; format=flowed
>
> Am 26.04.19 um 00:51 schrieb John Donoghue:
> > Does anyone have some spare time and a arduino uno floating around that
> > is able to verify the to be released version of the arduino package ?
> > ...
> > Then run the tests:
>

here is what i get:

 /home/doug/octave/arduino-0.4.0/@arduino/arduino.m ............. PASS    4/5
                                                                   FAIL    1
  /home/doug/octave/arduino-0.4.0/@arduino/checkI2CAddress.m ..... PASS    1/1
  /home/doug/octave/arduino-0.4.0/@rotaryEncoder/readCount.m ..... PASS    1/2
                                                                   FAIL    1
  /home/doug/octave/arduino-0.4.0/@rotaryEncoder/readSpeed.m ..... PASS    0/1
                                                                   FAIL    1
  /home/doug/octave/arduino-0.4.0/@rotaryEncoder/resetCount.m .... PASS    0/1
                                                                   FAIL    1
  /home/doug/octave/arduino-0.4.0/@rotaryEncoder/rotaryEncoder.m . PASS    2/5
                                                                   FAIL    3
  /home/doug/octave/arduino-0.4.0/@rotaryEncoder/subsref.m ....... PASS    0/1
                                                                   FAIL    1
Summary:

  PASS                              135
  FAIL                                8 


--
DASCertificate for 206392

Reply | Threaded
Open this post in threaded view
|

Re: arduino package testing

Doug Stewart-4
In reply to this post by John Donoghue-3


On Fri, Apr 26, 2019 at 12:51 PM JohnD <[hidden email]> 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


--
DASCertificate for 206392

Reply | Threaded
Open this post in threaded view
|

RE: arduino package testing

John Donoghue-3


From: Doug Stewart [mailto:[hidden email]]
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 <[hidden email]> 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




Reply | Threaded
Open this post in threaded view
|

Re: arduino package testing

Doug Stewart-4


On Fri, Apr 26, 2019 at 3:00 PM JohnD <[hidden email]> wrote:


From: Doug Stewart [mailto:[hidden email]]
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 <[hidden email]> 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 | Threaded
Open this post in threaded view
|

RE: arduino package testing

John Donoghue-3


From: Doug Stewart [mailto:[hidden email]]
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 <[hidden email]> wrote:


From: Doug Stewart [mailto:[hidden email]]
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 <[hidden email]> 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




Reply | Threaded
Open this post in threaded view
|

Re: arduino package testing

John Donoghue-3
In reply to this post by John Donoghue-3
On 4/26/19 3:00 PM, JohnD wrote:

>
> From: Doug Stewart [mailto:[hidden email]]
> 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 <[hidden email]> 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
>
>
Running on my setup, I can get it programmed without the rotary encoder
if I use default libraries, but if I run as:

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


.. It programs the rotary endcoder as well.

Note that currently, if the propertyname isnt a known one (ie: was spelt
wrong) it will silently ignore it, which would then mean it would
program the default libraries (ie: no rotary encoder)

When the arduino IDE is open, it you look at the sources settings.h
file, there should be an uncommented #define USE_ROTARYENCODER




Reply | Threaded
Open this post in threaded view
|

Re: arduino package testing

Doug Stewart-4


On Fri, Apr 26, 2019 at 6:36 PM John Donoghue <[hidden email]> wrote:
On 4/26/19 3:00 PM, JohnD wrote:
>
> From: Doug Stewart [mailto:[hidden email]]
> 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 <[hidden email]> 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
>
>
Running on my setup, I can get it programmed without the rotary encoder
if I use default libraries, but if I run as:

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


.. It programs the rotary endcoder as well.

Note that currently, if the propertyname isnt a known one (ie: was spelt
wrong) it will silently ignore it, which would then mean it would
program the default libraries (ie: no rotary encoder)

When the arduino IDE is open, it you look at the sources settings.h
file, there should be an uncommented #define USE_ROTARYENCODER




Here is a little scope prog that I wrote  
https://paste.ubuntu.com/p/7n2rMYctVF/

I will see what I can find about the rotaryencoder and report here.


--
DASCertificate for 206392

Reply | Threaded
Open this post in threaded view
|

Re: arduino package testing

Doug Stewart-4


On Sat, Apr 27, 2019 at 7:37 PM Doug Stewart <[hidden email]> wrote:


On Fri, Apr 26, 2019 at 6:36 PM John Donoghue <[hidden email]> wrote:
On 4/26/19 3:00 PM, JohnD wrote:
>
> From: Doug Stewart [mailto:[hidden email]]
> 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 <[hidden email]> 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
>
>
Running on my setup, I can get it programmed without the rotary encoder
if I use default libraries, but if I run as:

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


.. It programs the rotary endcoder as well.

Note that currently, if the propertyname isnt a known one (ie: was spelt
wrong) it will silently ignore it, which would then mean it would
program the default libraries (ie: no rotary encoder)

When the arduino IDE is open, it you look at the sources settings.h
file, there should be an uncommented #define USE_ROTARYENCODER




Here is a little scope prog that I wrote  
https://paste.ubuntu.com/p/7n2rMYctVF/

I will see what I can find about the rotaryencoder and report here.


I found this in the file called octave:

#ifdef USE_ROTARYENCODER
#include "OctaveRotaryEncoderLibrary.h"
OctaveRotaryEncoderLibrary lib5(octavearduino);
#endif

so it should work.

I did not find a file called: settings.h 

Reply | Threaded
Open this post in threaded view
|

RE: arduino package testing

John Donoghue-3


From: Doug Stewart [mailto:[hidden email]]
Sent: Tuesday, April 30, 2019 10:45 AM
To: John Donoghue
Cc: Octave Maintainers List
Subject: Re: arduino package testing



On Sat, Apr 27, 2019 at 7:37 PM Doug Stewart <[hidden email]> wrote:


On Fri, Apr 26, 2019 at 6:36 PM John Donoghue <[hidden email]> wrote:
On 4/26/19 3:00 PM, JohnD wrote:

>
> From: Doug Stewart [mailto:[hidden email]]
> 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 <[hidden email]> 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
>
>
Running on my setup, I can get it programmed without the rotary encoder
if I use default libraries, but if I run as:

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


.. It programs the rotary endcoder as well.

Note that currently, if the propertyname isnt a known one (ie: was spelt
wrong) it will silently ignore it, which would then mean it would
program the default libraries (ie: no rotary encoder)

When the arduino IDE is open, it you look at the sources settings.h
file, there should be an uncommented #define USE_ROTARYENCODER



Here is a little scope prog that I wrote  
https://paste.ubuntu.com/p/7n2rMYctVF/


I will see what I can find about the rotaryencoder and report here.


I found this in the file called octave:

#ifdef USE_ROTARYENCODER
#include "OctaveRotaryEncoderLibrary.h"
OctaveRotaryEncoderLibrary lib5(octavearduino);
#endif

so it should work.

I did not find a file called: settings.h


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


The file is generated and only exists  whilst the Arduino IDE is open - with the IDE open, I usually just select the file from the list of files of the currently open project.




Reply | Threaded
Open this post in threaded view
|

RE: arduino package testing

John Donoghue-3
In reply to this post by Doug Stewart-4


From: Doug Stewart [mailto:[hidden email]]
Sent: Tuesday, April 30, 2019 10:45 AM
To: John Donoghue
Cc: Octave Maintainers List
Subject: Re: arduino package testing



On Sat, Apr 27, 2019 at 7:37 PM Doug Stewart <[hidden email]> wrote:


On Fri, Apr 26, 2019 at 6:36 PM John Donoghue <[hidden email]> wrote:
On 4/26/19 3:00 PM, JohnD wrote:

>
> From: Doug Stewart [mailto:[hidden email]]
> 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 <[hidden email]> 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
>
>
Running on my setup, I can get it programmed without the rotary encoder
if I use default libraries, but if I run as:

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


.. It programs the rotary endcoder as well.

Note that currently, if the propertyname isnt a known one (ie: was spelt
wrong) it will silently ignore it, which would then mean it would
program the default libraries (ie: no rotary encoder)

When the arduino IDE is open, it you look at the sources settings.h
file, there should be an uncommented #define USE_ROTARYENCODER



Here is a little scope prog that I wrote  
https://paste.ubuntu.com/p/7n2rMYctVF/


I will see what I can find about the rotaryencoder and report here.


I found this in the file called octave:

#ifdef USE_ROTARYENCODER
#include "OctaveRotaryEncoderLibrary.h"
OctaveRotaryEncoderLibrary lib5(octavearduino);
#endif

so it should work.

I did not find a file called: settings.h


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

Can you verify that:

> listArduinoLibraries('core')

returns with rotaryencoder in it

and then retry running:

> arduinosetup ('libraries', listArduinoLibraries('core'))

reprogram it, and verify that

> a = arduino()

Then lists rotaryencoder as one of its libraries



Reply | Threaded
Open this post in threaded view
|

Re: arduino package testing

Doug Stewart-4


On Fri, May 3, 2019 at 12:40 PM JohnD <[hidden email]> wrote:


From: Doug Stewart [mailto:[hidden email]]
Sent: Tuesday, April 30, 2019 10:45 AM
To: John Donoghue
Cc: Octave Maintainers List
Subject: Re: arduino package testing



On Sat, Apr 27, 2019 at 7:37 PM Doug Stewart <[hidden email]> wrote:


On Fri, Apr 26, 2019 at 6:36 PM John Donoghue <[hidden email]> wrote:
On 4/26/19 3:00 PM, JohnD wrote:
>
> From: Doug Stewart [mailto:[hidden email]]
> 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 <[hidden email]> 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
>
>
Running on my setup, I can get it programmed without the rotary encoder
if I use default libraries, but if I run as:

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


.. It programs the rotary endcoder as well.

Note that currently, if the propertyname isnt a known one (ie: was spelt
wrong) it will silently ignore it, which would then mean it would
program the default libraries (ie: no rotary encoder)

When the arduino IDE is open, it you look at the sources settings.h
file, there should be an uncommented #define USE_ROTARYENCODER



Here is a little scope prog that I wrote 
https://paste.ubuntu.com/p/7n2rMYctVF/


I will see what I can find about the rotaryencoder and report here.


I found this in the file called octave:

#ifdef USE_ROTARYENCODER
#include "OctaveRotaryEncoderLibrary.h"
OctaveRotaryEncoderLibrary lib5(octavearduino);
#endif

so it should work.

I did not find a file called: settings.h


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

Can you verify that:

> listArduinoLibraries('core')

returns with rotaryencoder in it

and then retry running:

> arduinosetup ('libraries', listArduinoLibraries('core'))

reprogram it, and verify that

> a = arduino()

Then lists rotaryencoder as one of its libraries



I did get it to work and all tests pass.
--
DASCertificate for 206392