Share via


Modifying the Parallel Port Test (Windows CE 5.0)

Send Feedback

The Parallel Port Test executes the tux –o –d partest command line on default execution. You can modify the test by editing the command line. For information about how to edit the command line for a test, see Editing the Command Line for a Test. The following table shows the modifications you can make to the test.

To modify the Parallel Port Test

To Add this command-line parameter
Specify the device name of the parallel port to be tested.

If you do not specify this option, LPT1 is tested.

-d LPTx

The following table shows the test cases for the Parallel Port Test.

Test case Description
1000: Open/Close Port Verifies that the CreateFile function call succeeds on the specified device attached to the parallel port. This test case fails if the parallel port driver is unable to communicate with the attached printer.
1001: Read/Set Timeouts (IOCTL) Verifies that the IOCTL_PARALLEL_SET_TIMEOUTS and IOCTL_PARALLEL_GET_TIMEOUTS I/O control codes (IOCTLs) successfully set and retrieve timeout values for the parallel port. This test fails if the parallel port driver does not support the tested IOCTLs. The test also fails if the parallel port driver is unable to communicate with the attached printer.
1002: Read/Set Timeouts (Win32) Verifies that the SetCommTimeouts function call and the GetCommTimeouts function call successfully set and retrieve timeout values for the parallel port. This test fails if the parallel port driver does not support timeouts. The test also fails if the parallel port driver is unable to communicate with the attached printer.
1003: Get Device Status Verifies that the IOCTL_PARALLEL_STATUS IOCTL behaves properly. This test fails if the parallel port driver does not support the tested IOCTL. The test also fails if the parallel port driver is unable to communicate with the attached printer.
1004: Write Bytes (IOCTL) Verifies that the IOCTL_PARALLEL_WRITE IOCTL behaves properly. This test fails if the parallel port driver does not support the tested IOCTL. The test also fails if the parallel port driver is unable to communicate with the attached printer.
1005: Write Bytes (Win32) Verifies that the WriteFile function behaves properly on an open parallel port handle. This test fails if the parallel port driver does not export a function for writing. This test also fails if the parallel port driver is unable to communicate with the attached printer.
1006: Get Device ID Verifies that the IOCTL_PARALLEL_GETDEVICEID IOCTL behaves properly. This test fails if the parallel port driver does not support the tested IOCTL. This test also fails if the parallel port driver is unable to communicate with the attached printer.

Remarks

This test library can have one or more optional command-line entries to change the behavior of the test. To specify one or more optional command-line entries to the test library, you must use the –c command-line option. This option forces Tux to pass the specified string into the test library.

See Also

Parallel Port Test

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.