File: test_xfer_basic_stdio.py

package info (click to toggle)
ser2net 4.6.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,284 kB
  • sloc: ansic: 10,349; sh: 4,865; python: 2,386; makefile: 57
file content (17 lines) | stat: -rwxr-xr-x 623 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/python3

from dataxfer import test_transfer, test_write_drain

test_transfer("basic stdio", "This is a test!",
              ("connection: &con",
               "  accepter: stdio",
               "  connector: serialdev,/dev/ttyPipeA0,9600N81"),
              None,
              "serialdev,/dev/ttyPipeB0,9600N81")

test_write_drain("basic stdio", "This is a write drain test!",
                 ("connection: &con",
                  "  accepter: stdio",
                  "  connector: serialdev,/dev/ttyPipeA0,300N81,local"),
                 None,
                 "serialdev,/dev/ttyPipeB0,300N81,local")