示例#1
0
def run(conn):
    results = []
    test_name = splitext(basename(__file__))[0]
    test_runner = TestRunner(conn, test_name)

    results.append(test_runner.run('i2cdetect -F 1', 'yes'))
    results.append(test_runner.run('i2cdetect -F 3', 'yes'))

    return results
示例#2
0
def run(conn, count=100):
    results = []
    test_name = splitext(basename(__file__))[0]
    test_runner = TestRunner(conn, test_name)
    memory_test = MemoryTest(conn)

    results.append(test_runner.run('dd if=/dev/zero of=/home/root/MemoryTest count=1024 bs=1024', '1048576 bytes', 100))
    results.append(memory_test.md5sumer(count))

    return results
示例#3
0
def run(conn):
    results = []
    test_name = splitext(basename(__file__))[0]
    test_runner = TestRunner(conn, test_name)

    results.append(test_runner.run('ifconfig', 'wlan[0-9]'))
    results.append(test_runner.run('hciconfig', 'hci0'))
    results.append(test_runner.run('dmesg', 'libertas'))

    return results
示例#4
0
def run(conn):
    results = []
    test_name = splitext(basename(__file__))[0]
    test_runner = TestRunner(conn, test_name)

    results.append(
        test_runner.run('[ -e /dev/dsp ] && echo "pass" || echo "fail"',
                        'pass'))

    return results
示例#5
0
def run(conn):
    results = []
    test_name = splitext(basename(__file__))[0]
    test_runner = TestRunner(conn, test_name)

    results.append(test_runner.run('ifconfig', 'eth[0-9]+'))
    results.append(test_runner.run('ping -c 4 8.8.8.8', '[0-9]+ received'))
    results.append(
        test_runner.run('nslookup cumulus.gumstix.org', '74.3.164.55', 10))
    results.append(test_runner.run('wget www.google.com', '200 OK', 20))
    results.append(test_runner.run('dmesg', 'irq 336'))

    return results
示例#6
0
def run(conn):
    results = []
    test_name = splitext(basename(__file__))[0]
    test_runner = TestRunner(conn, test_name)

    results.append(test_runner.run('lsusb', 'Bus 001 Device 00[2-9]'))
    results.append(test_runner.run('lsusb', 'Bus 002 Device 00[2-9]'))
    results.append(test_runner.run('lsusb', 'Future'))
    #NOTE: requires evtest to be installed
    # USB keyboard
    #results.append(usb_test.test_runner('evtest /dev/input/event2', 'Future'))
    # USB mouse
    #results.append(usb_test.test_runner('evtest /dev/input/event4', 'Future'))

    return results