I encountered an error while executing run-test.
This System runs wp76-legato_19.11.2-202005290654
Host System Ubuntu 20.04
At the beginning of building i get following output
WARNING: Failed to receive sysroot path from compiler '/usr/bin//gcc --print-sysroot'
How can i disable -Werror or fix it generally?
2. Following
recipe for target 'system' failed
Where can i see and/or modify configuration regarding to this failure?
jyijyi
July 21, 2021, 1:09pm
2
What is run-test?
Is it legato application?
The shell script run-test is inside Legato AF.
jyijyi
July 26, 2021, 8:04am
4
where is it?
I cannot find it…
owner@CNHKG-EX-001367:~/Yocto/WP76/R16$ find /home/owner/LEAF/swi-wp76_4.6.0/leaf-data/wp76dev/wp76-legato/ -name “run-test”
owner@CNHKG-EX-001367:~/Yocto/WP76/R16$
under wp76-legato_19.11.2-202005290654/run-tests
jyijyi
July 26, 2021, 8:51am
6
I am trying to reproduce your issue, what command do you run on this run-test script
i used following command ./run-tests host-ut
jyijyi
July 26, 2021, 9:30am
8
this is for localhost, target is not for WP76 or WP77
yes everything for localhost because of evaluation reasons, later it will be wp76
jyijyi
July 26, 2021, 9:39am
10
can you try the target directly on wp76?
i will test it running on wp76, coming back later with some results
PS.: It is mandatory to run it on host first
running test on host still results in
recipe for target ‘framework’ failed
./run-tests host-ut
== Task: 'host-ut' ==
[wp76xx] Toolchain dir = /home/ubuntu/ws/leaf-data/dev/wp76-toolchain/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi
prefix = arm-poky-linux-gnueabi-
sysroot = /home/ubuntu/ws/leaf-data/dev/wp76-toolchain/sysroots/armv7a-neon-poky-linux-gnueabi
kernelroot = /home/ubuntu/ws/leaf-data/dev/wp76-toolchain/sysroots/armv7a-neon-poky-linux-gnueabi/usr/src/kernel
modules/WiFi/moduleDefs:12: Legato WiFi version is undefined...
Cleaning...
CLEAN
Building localhost with code coverage report set to 1
Building Legato for target 'localhost'
Makefile:127: build/localhost/.config.mk: No such file or directory
modules/WiFi/moduleDefs:12: Legato WiFi version is undefined...
GEN build/localhost/.config.mk
Building Legato for target 'localhost'
modules/WiFi/moduleDefs:12: Legato WiFi version is undefined...
GEN version
GEN build/localhost/framework/include/le_config.h
MAKE tools
make[1]: Entering directory '/home/ubuntu/.leaf/wp76-legato_19.11.2-202005290654'
Using ninja installed at: /usr/bin/ninja
GEN /home/ubuntu/.leaf/wp76-legato_19.11.2-202005290654/build/tools/build.ninja
Tools arch: x86_64
MAKE mkPatch
make[2]: Entering directory '/home/ubuntu/.leaf/wp76-legato_19.11.2-202005290654/framework/tools/mkPatch'
CCLD /home/ubuntu/.leaf/wp76-legato_19.11.2-202005290654/bin/mkPatch
make[2]: Leaving directory '/home/ubuntu/.leaf/wp76-legato_19.11.2-202005290654/framework/tools/mkPatch'
NINJA /home/ubuntu/.leaf/wp76-legato_19.11.2-202005290654/build/tools/build.ninja
[87/87] Linking tool
make[1]: Leaving directory '/home/ubuntu/.leaf/wp76-legato_19.11.2-202005290654'
GEN sources.md5
GEN package.properties
GEN build/localhost/config.sh
MAKE framework
make[1]: Entering directory '/home/ubuntu/.leaf/wp76-legato_19.11.2-202005290654'
GEN /home/ubuntu/.leaf/wp76-legato_19.11.2-202005290654/build/localhost/framework/build.ninja
NINJA /home/ubuntu/.leaf/wp76-legato_19.11.2-202005290654/build/localhost/framework/build.ninja
[70/70] Dynamic linking liblegato
make[1]: *** No rule to make target '/home/ubuntu/.leaf/wp76-legato_19.11.2-202005290654/platformAdaptor/qmi/bin/localhost/components/le_pa_start/libComponent_le_pa_start.so', needed by '/home/ubuntu/.leaf/wp76-legato_19.11.2-202005290654/build/localhost/framework/lib/libComponent_le_pa_start.so'. Stop.
make[1]: Leaving directory '/home/ubuntu/.leaf/wp76-legato_19.11.2-202005290654'
Makefile:535: recipe for target 'framework' failed
make: *** [framework] Error 2
Exit Code 2
Stopping Log Control Daemon... DONE
Stopping Service Directory... DONE
Stopping Configuration Tree... DONE.
ruuning on wp76 results in multiple error:
py.test command not found
[wp76xx] Toolchain dir = /home/ubuntu/ws/leaf-data/dev/wp76-toolchain/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi
prefix = arm-poky-linux-gnueabi-
sysroot = /home/ubuntu/ws/leaf-data/dev/wp76-toolchain/sysroots/armv7a-neon-poky-linux-gnueabi
kernelroot = /home/ubuntu/ws/leaf-data/dev/wp76-toolchain/sysroots/armv7a-neon-poky-linux-gnueabi/usr/src/kernel
Updating Legato with system 'build/wp76xx/testFramework.wp76xx.update'
Applying update from file 'build/wp76xx/testFramework.wp76xx.update' to device at address '192.168.2.2'.
Unpacking package: 100% ++++++++++++++++++++++++++++++++++++++++++++++++++
Unpacking package: 100% ++++++++++++++++++++++++++++++++++++++++++++++++++
Unpacking package: 100% ++++++++++++++++++++++++++++++++++++++++++++++++++
Unpacking package: 100% ++++++++++++++++++++++++++++++++++++++++++++++++++
Unpacking package: 100% ++++++++++++++++++++++++++++++++++++++++++++++++++
Unpacking package: 100% ++++++++++++++++++++++++++++++++++++++++++++++++++
Unpacking package: 100% ++++++++++++++++++++++++++++++++++++++++++++++++++
Unpacking package: 100% ++++++++++++++++++++++++++++++++++++++++++++++++++
Unpacking package: 100% ++++++++++++++++++++++++++++++++++++++++++++++++++
Unpacking package: 100% ++++++++++++++++++++++++++++++++++++++++++++++++++
Unpacking package: 100% ++++++++++++++++++++++++++++++++++++++++++++++++++
Unpacking package: 100% ++++++++++++++++++++++++++++++++++++++++++++++++++
Unpacking package: 100% ++++++++++++++++++++++++++++++++++++++++++++++++++
Unpacking package: 100% ++++++++++++++++++++++++++++++++++++++++++++++++++
Unpacking package: 100% ++++++++++++++++++++++++++++++++++++++++++++++++++
Unpacking package: 100% ++++++++++++++++++++++++++++++++++++++++++++++++++
Unpacking package: 100% ++++++++++++++++++++++++++++++++++++++++++++++++++
Unpacking package: 100% ++++++++++++++++++++++++++++++++++++++++++++++++++
Unpacking package: 100% ++++++++++++++++++++++++++++++++++++++++++++++++++
Unpacking package: 100% ++++++++++++++++++++++++++++++++++++++++++++++++++
Unpacking package: 100% ++++++++++++++++++++++++++++++++++++++++++++++++++
Unpacking package: 100% ++++++++++++++++++++++++++++++++++++++++++++++++++
Unpacking package: 100% ++++++++++++++++++++++++++++++++++++++++++++++++++
Unpacking package: 100% ++++++++++++++++++++++++++++++++++++++++++++++++++
Unpacking package: 100% ++++++++++++++++++++++++++++++++++++++++++++++++++
Unpacking package: 100% ++++++++++++++++++++++++++++++++++++++++++++++++++
Unpacking package: 100% ++++++++++++++++++++++++++++++++++++++++++++++++++
Unpacking package: 100% ++++++++++++++++++++++++++++++++++++++++++++++++++
Applying update: 100% ++++++++++++++++++++++++++++++++++++++++++++++++++
SUCCESS
Done
-> marking good
waiting ...
-> checking status
waiting ...
41 [good] <-- current
./run-tests: line 559: py.test: command not found
'framework' tests failed
Updating Legato with system 'build/wp76xx/testComponents.wp76xx.update'
Applying update from file 'build/wp76xx/testComponents.wp76xx.update' to device at address '192.168.2.2'.
Unpacking package: 100% ++++++++++++++++++++++++++++++++++++++++++++++++++
Unpacking package: 100% ++++++++++++++++++++++++++++++++++++++++++++++++++
Unpacking package: 100% ++++++++++++++++++++++++++++++++++++++++++++++++++
Applying update: 100% ++++++++++++++++++++++++++++++++++++++++++++++++++
SUCCESS
Done
-> marking good
waiting ...
-> checking status
waiting ...
42 [good] <-- current
./run-tests: line 559: py.test: command not found
'components' tests failed
Updating Legato with system 'build/wp76xx/testApps.wp76xx.update'
Applying update from file 'build/wp76xx/testApps.wp76xx.update' to device at address '192.168.2.2'.
Unpacking package: 100% ++++++++++++++++++++++++++++++++++++++++++++++++++
Unpacking package: 100% ++++++++++++++++++++++++++++++++++++++++++++++++++
Unpacking package: 100% ++++++++++++++++++++++++++++++++++++++++++++++++++
Unpacking package: 100% ++++++++++++++++++++++++++++++++++++++++++++++++++
Unpacking package: 100% ++++++++++++++++++++++++++++++++++++++++++++++++++
Unpacking package: 100% ++++++++++++++++++++++++++++++++++++++++++++++++++
Unpacking package: 100% ++++++++++++++++++++++++++++++++++++++++++++++++++
Applying update: 100% ++++++++++++++++++++++++++++++++++++++++++++++++++
SUCCESS
Done
-> marking good
waiting ...
-> checking status
waiting ...
43 [good] <-- current
./run-tests: line 559: py.test: command not found
'apps/test' tests failed
Updating Legato with system 'build/wp76xx/system.wp76xx.update'
Applying update from file 'build/wp76xx/system.wp76xx.update' to device at address '192.168.2.2'.
Unpacking package: 100% ++++++++++++++++++++++++++++++++++++++++++++++++++
Unpacking package: 100% ++++++++++++++++++++++++++++++++++++++++++++++++++
Unpacking package: 100% ++++++++++++++++++++++++++++++++++++++++++++++++++
Unpacking package: 100% ++++++++++++++++++++++++++++++++++++++++++++++++++
Unpacking package: 100% ++++++++++++++++++++++++++++++++++++++++++++++++++
Unpacking package: 100% ++++++++++++++++++++++++++++++++++++++++++++++++++
Unpacking package: 100% ++++++++++++++++++++++++++++++++++++++++++++++++++
Unpacking package: 100% ++++++++++++++++++++++++++++++++++++++++++++++++++
Unpacking package: 100% ++++++++++++++++++++++++++++++++++++++++++++++++++
Unpacking package: 100% ++++++++++++++++++++++++++++++++++++++++++++++++++
Unpacking package: 100% ++++++++++++++++++++++++++++++++++++++++++++++++++
Unpacking package: 100% ++++++++++++++++++++++++++++++++++++++++++++++++++
Unpacking package: 100% ++++++++++++++++++++++++++++++++++++++++++++++++++
Unpacking package: 100% ++++++++++++++++++++++++++++++++++++++++++++++++++
Unpacking package: 100% ++++++++++++++++++++++++++++++++++++++++++++++++++
Unpacking package: 100% ++++++++++++++++++++++++++++++++++++++++++++++++++
Unpacking package: 100% ++++++++++++++++++++++++++++++++++++++++++++++++++
Unpacking package: 100% ++++++++++++++++++++++++++++++++++++++++++++++++++
Unpacking package: 100% ++++++++++++++++++++++++++++++++++++++++++++++++++
Unpacking package: 100% ++++++++++++++++++++++++++++++++++++++++++++++++++
Unpacking package: 100% ++++++++++++++++++++++++++++++++++++++++++++++++++
Unpacking package: 100% ++++++++++++++++++++++++++++++++++++++++++++++++++
Unpacking package: 100% ++++++++++++++++++++++++++++++++++++++++++++++++++
Unpacking package: 100% ++++++++++++++++++++++++++++++++++++++++++++++++++
Unpacking package: 100% ++++++++++++++++++++++++++++++++++++++++++++++++++
Applying update: 100% ++++++++++++++++++++++++++++++++++++++++++++++++++
SUCCESS
Done
-> marking good
waiting ...
-> checking status
waiting ...
44 [good] <-- current
Getting code coverage from target 192.168.2.2 results in following problemes
Getting code coverage from target 192.168.2.2
Restarting Legato...
tar: Ignoring unknown extended header keyword 'SCHILY.fflags'
tar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.security.SMACK64'
jyijyi
August 5, 2021, 3:53pm
13
I don’t see py.test here:
Probably this is for internal test only.
How do i run our test on target device by using legato framework? So you state that unit test are reserved to be run internally?
jyijyi
August 6, 2021, 1:58am
15
Do you mean you want to run all the unit test?
Or you just want to run particular unit test?
I don’t see there is py.test file, you might delete that line and see what happens.
fixed it by installing and modifying run-test and conftest.py