-
Bug
-
Resolution: Cannot Reproduce
-
Minor
-
None
-
None
-
None
Hi, all
I want to use AGL Test Framework natively.
So I install it with: https://docs.automotivelinux.org/docs/en/master/apis_services/reference/afb-test/0_Installation.html
But "afm-test --help" and "afm-test package package-test/ -m SERVICE" report error:
ubuntu@ubuntu:~/Desktop$ afm-test --help Package afb-test was not found in the pkg-config search path. Perhaps you should add the directory containing `afb-test.pc' to the PKG_CONFIG_PATH environment variable No package 'afb-test' found Error: you did not specify either the binding folder location or test widget folder location. Usage: /opt/AGL/bin/afm-test <binding-wgt-rootdir> <test-wgt-rootdir> [-m|--mode <SOLO|SERVICE>] [-t|--timeout <X>] [-l|--lavaoutput] binding-wgt-rootdir: path to the test wgt file test-wgt-rootdir: path to the test folder file -m|--mode: SOLO (1 binder) or SERVICE (2 binders) (Default: SOLO) -t|--timeout: timeout in second. (Default 3 seconds) -l|--lavaoutput: Flags indicating the binding to add Lava special test markers. Error: Test launch failed. Error: Exit Code: 1 [10:49:03] devel@agl-xds-ubuntu-0-ubuntu:/work/agl-service-network/build(master)$ afm-test package package-test/ -m SERVICE Package afb-test was not found in the pkg-config search path. Perhaps you should add the directory containing `afb-test.pc' to the PKG_CONFIG_PATH environment variable No package 'afb-test' found grep: : No such file or directory Error: you doesn't have the config.xml file. Please call 'make widget' Error: Test launch failed. Error: Exit Code: 2
Then I add afb-test.pc to PATH:
ubuntu@ubuntu:~/Desktop$ locate afb-test.pc /opt/AGL/lib/x86_64-linux-gnu/pkgconfig/afb-test.pc ubuntu@ubuntu:~/Desktop$ export PATH=/opt/AGL/lib/x86_64-linux-gnu/pkgconfig:$PATH
But afm-test still report the same error as above.
By the way, afm-test --help behaves normal in the target board.