afm-test /usr/AGL/apps/testwgt/*test.wgt failed
Description
Environment
Activity
Jan-Simon Moeller March 30, 2021 at 12:19 PMEdited
My steps:
gIt clone https://git.automotivelinux.org/apps/agl-service-weather
source /opt/sdk/environment-setup-aarch64-agl-linux
cd agl-service-weather; ./autobuild/agl/autobuild
scp agl-service-weather-test.wgt to target; (scp agl-service-weather-test.wgt root@192.168.11.126:/var/backup)
ssh to target;
(login -f agl-driver)
afm-test agl-service-weather-test.wgt
Recommendation: use pyagl
fnstzl March 30, 2021 at 7:41 AM
Board: Pi4
AGL: koi 11.0.0
Hellow, I test all the test.wgt inside /usr/AGL/apps/test, and all of them can work as expected.
takeagl-service-weather-test.wgt as example, log:
Then, I download the script from gerrit and build the test widget, run the afm-test agl-service-weather-test.wgt I built on boad, but test failed!
Error log:
I doubt there is something wrong with my command?
My steps:
gIt clone https://git.automotivelinux.org/apps/agl-service-weather
source /opt/sdk/environment-setup-aarch64-agl-linux
cd agl-service-weather; mkdir build; cd build; cmake ..; make; make test_widget;
scp agl-service-weather-test.wgt to target; (scp agl-service-weather-test.wgt root@192.168.11.126:/var/backup)
ssh to target;
login -f agl-driver
afm-test agl-service-weather-test.wgt
Li Xiaoming June 28, 2020 at 9:28 AM
My test env:
Board: Pi3 & Pi4
AGL: Icefish 9.0.2
Li Xiaoming June 28, 2020 at 9:27 AMEdited
Today, I test all the test.wgt inside /usr/AGL/apps/testwgt, but only part of them can work as expected.
The failed ones still reports the error, that sth like "/bin/mkdir: cannot create directory '/home/1001': Permission denied ".
: do you know this issue ?
test.wgt which can work:
can not work: the rest ones
take agl-service-audiomixer-test.wgt as example, error log:
Clément Bénier February 26, 2020 at 8:50 AM
: Hi, you are right, it will be fixed in the next version of halibut not in 8.0.5.
Regards,
Hi, all
I follow the instructions on https://docs.automotivelinux.org/docs/en/guppy/apis_services/reference/afb-test/3_Launch_the_tests.html to launch test on target board, but I can not successfully test any *test.wgt.
test process(on target board,use agl-service-telephony-test.wgt as example ):
log of journalctl -f:
I noticed this line "/bin/mkdir: cannot create directory '/home/0/app-data/agl-service-telephony-test': Permission denied".
Is there something wrong with appfw's permission policy? Or with my process method and enviroment configuration?
If it is a common applicaion, I can add the “require-permission: scope-platform or display" in config file to avoid the error. So I unpack the test wgt, modify the config.xml and wgtpkg-pack a new wgt. But afm-test new test wgt still failed.
log of the modified wgt(use agl-service-radio-test as example):
Anyone can figure out? Thanks.
Best Regards