- Main Page
- Related Pages
- Data Structures
- Files

- File List
- Globals

# test/usb-tester/usbtest/__init__.py

    00001 import unittest
    00002
    00003 # Import all test submodules
    00004 import testctrl
    00005 import testbulk
    00006
    00007 # usbtest vendor-specific requests
    00008 REQ_INIT_DESC   = 0x00
    00009 REQ_GET_DESC    = 0x01
    00010 REQ_INVALID     = 0xff
    00011
    00012 # usbtest vendor-specific descriptor types
    00013 DT_SIZE2        = 0x01
    00014 DT_SIZE63       = 0x02
    00015 DT_SIZE64       = 0x03
    00016 DT_SIZE65       = 0x04
    00017 DT_SIZE127      = 0x05
    00018 DT_SIZE128      = 0x06
    00019 DT_SIZE129      = 0x07
    00020
    00021 def suite(usbdev):
    00022         global dev
    00023
    00024         dev = usbdev
    00025         suite = unittest.TestSuite()
    00026         suite.addTest(testctrl.suite())
    00027         suite.addTest(testbulk.suite())
    00028
    00029         return suite