Page 1 of 1

piTest: different verions? -> different behaviour

Posted: 28 Oct 2024, 11:05
by AgentSmith
Hello,

i downloaded "PiTest Demo with source code (ID: 1149)" from the download section:
https://revolutionpi.com/en/download/11 ... 1730097308

The i compiled the C-sources and testet "my" piTest by reading the RevPILed, which works:
./piTest -r RevPiLED

But it gaves me an internal error, when i want to read variables, which are not defined, e.g.:
./piTest -r xxx
Could not read variable xxx. Internal Error



The i did the same test with the "piTest"-Tool, which is already there in "/usr/bin/piTest":
piTest -r xxx
Cannot find variable 'xxx'


So, the behavior of /usr/bin/piTest makes more sense.

Where are the actual, correct sources of "piTest"?

I found out, the there are sources in /home/pi/demo/piTest.
These sources are a little bit different than the sources from the download.
Especially piControlIf.c and piControlIf.h

Re: piTest: different verions? -> different behaviour

Posted: 28 Oct 2024, 14:27
by nicolaiB
Hi

The you can find the sources on GitLab / GitHub: https://gitlab.com/revolutionpi/revpi-pitest/

Nicolai

Re: piTest: different verions? -> different behaviour

Posted: 28 Oct 2024, 14:38
by AgentSmith
Thank you!

It's working fine. Now the same behaviour like /usr/bin/piTest

P.S: i had to install cmake first :)