O'Reilly logo

Professional Windows® Embedded Compact 7 by Thierry Joubert, David Jones, Samuel Phung

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

WINDOWS EMBEDDED TEST KIT (CTK)

Windows Embedded Compact Test Kit (CTK) (formerly called CETK) is a tool for testing the functionality and performance of drivers in a formal manner. It facilitates much deeper testing of a driver and is a must for any driver that is to be shipped. CTK can help you build and manage large test suites for regression and stress testing. Instead of adding a console application to your OS design and running that application on the target device, you add a test DLL to your OS design that is called by the CTK.

Creating Your Test DLL for the CTK

Creating a test DLL for the CTK is similar to creating a console application; both are subprojects of your OS design.

To create a CTK test DLL, follow these steps:

1. Open your previously created OS design in Visual Studio.

2. In the Solution Explorer window, right-click the Subprojects folder, and then click Add New Subproject from the shortcut menu.

3. In the Subproject Wizard window, select WCE TUX Dynamic-Link Library from the available templates list.

4. In the Subproject name field, type MyDriverTUXTest for your test application, and then click Next.

5. Click Finish.

Your new subproject MyDriverTUXTest appears under the Subprojects folder in Solution Explorer.

If you expand the subproject node, you find the Source files folder. The folder contains three files: MyDriverTUXTest.cpp, Globals.cpp, and Test.cpp. Your test must be added to Test.cpp, which contains the following code.

#include "main.h" #include ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required