Unit-Test source code location?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Unit-Test source code location?

ソリューションへジャンプ
4,397件の閲覧回数
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 解決策
2,709件の閲覧回数
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 返答(返信)
2,709件の閲覧回数
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 件の賞賛
返信
2,710件の閲覧回数
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!
-----------------------------------------------------------------------------------------------------------------------

2,709件の閲覧回数
davecashin
Contributor II

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

0 件の賞賛
返信
2,709件の閲覧回数
TomE
Specialist II

Google has a pretty good idea of "mxc_epdc_fb_test".

Tom

0 件の賞賛
返信
2,709件の閲覧回数
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 件の賞賛
返信
2,709件の閲覧回数
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 件の賞賛
返信