Unit-Test source code location?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Unit-Test source code location?

跳至解决方案
3,344 次查看
davecashin
Contributor II

Hello, I am looking for the unit test source code for mxc_epdc_x11_fb_test.out on the IMX 50

I found code for a similar unit test here: i.MX6SoloLite Evaluation Kit and EPDC testing

After using 'find' in my entire filesystem, I couldn't find a .c file with that name.

If someone could upload it or point towards a repo I would appreciate it.

标签 (4)
1 解答
1,656 次查看
Yuri
NXP Employee
NXP Employee

Hello,

As for Linux tests under LTIB :

All available sources of utilites in /unit_tests directory may be found in

imx-test and mxc-misc packages.

To get them under LTIB :

$ /ltib -c

Select

   Package list -> imx-test

or

$ ./ltib -p imx-test -m prep

$ ./ltib -p mxc-misc -m prep

After that, <ltib>/rpm/BUILD/misc/test/  directory will contain the sources.

Note, test images may be found in <rootfs>/unit_tests directory.


Have a great day,
Yuri

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

6 回复数
1,656 次查看
ckoch
Contributor I

I find this question still relevant three years later, now that LTIB has been replaced by yocto. If I figure out how to find this source code using current software, I'll update this post with details.

0 项奖励
1,657 次查看
Yuri
NXP Employee
NXP Employee

Hello,

As for Linux tests under LTIB :

All available sources of utilites in /unit_tests directory may be found in

imx-test and mxc-misc packages.

To get them under LTIB :

$ /ltib -c

Select

   Package list -> imx-test

or

$ ./ltib -p imx-test -m prep

$ ./ltib -p mxc-misc -m prep

After that, <ltib>/rpm/BUILD/misc/test/  directory will contain the sources.

Note, test images may be found in <rootfs>/unit_tests directory.


Have a great day,
Yuri

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

1,656 次查看
davecashin
Contributor II

Thanks Yuri, this is exactly what I'm after.

0 项奖励
1,656 次查看
TomE
Specialist II

Google has a pretty good idea of "mxc_epdc_fb_test".

Tom

0 项奖励
1,656 次查看
davecashin
Contributor II

Tom, look a bit closer at the patch updates on github that I'm assuming you're referring to, you'll see there are various versions and for various platforms. I tried several and none would compile on my particular system (IMX 50). If your google-fu is better than mine, I would be interested in getting my hands on your results.

Seeing as the .out files are created with the linux build, it is reasonable to assume they exist somewhere in plain c.

0 项奖励
1,656 次查看
TomE
Specialist II

Sorry, I assumed you hadn't chased down all those other ones as you didn't say.

My "Google-foo" tells me to get more specific in this instance, and to search for "mxc_fb_test/mxc_epdc_fb_test.c":

Google finds this reference, I assume you're running an LTIB package:

How to verify EPD panel functionality

l. Fortunately, the source is included in the BSP distribution so you can extract, customize, and rebuild it as needed. The magic of LTIB is beyond the scope of this article, but here are some hints:

# Extract the unit test source from the imx-test package:

$ ./ltib -m prep -p imx-test

# Source is now in rpm/BUILD/imx-test-12.08.00/test/mxc_fb_test/mxc_epdc_fb_test.c (your package version number my be different).

Tom

0 项奖励