Changeset 78da8ac3 in rtems for testsuites/libtests


Ignore:
Timestamp:
Jul 19, 2010, 1:54:47 PM (9 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
59211c6
Parents:
efdc6987
Message:

2010-07-19 Joel Sherrill <joel.sherrill@…>

  • Makefile.am, configure.ac, termios06/init.c: Add initial tests for XON/XOFF and VMIN/VMAX cases.
  • termios07/.cvsignore, termios07/Makefile.am, termios07/init.c, termios07/termios07.doc, termios07/termios07.scn, termios08/.cvsignore, termios08/Makefile.am, termios08/init.c, termios08/termios08.doc, termios08/termios08.scn: New files.
Location:
testsuites/libtests
Files:
10 added
4 edited

Legend:

Unmodified
Added
Removed
  • testsuites/libtests/ChangeLog

    refdc6987 r78da8ac3  
     12010-07-19      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * Makefile.am, configure.ac, termios06/init.c: Add initial tests for
     4        XON/XOFF and VMIN/VMAX cases.
     5        * termios07/.cvsignore, termios07/Makefile.am, termios07/init.c,
     6        termios07/termios07.doc, termios07/termios07.scn,
     7        termios08/.cvsignore, termios08/Makefile.am, termios08/init.c,
     8        termios08/termios08.doc, termios08/termios08.scn: New files.
     9
    1102010-07-19      Joel Sherrill <joel.sherrill@oarcorp.com>
    211
  • testsuites/libtests/Makefile.am

    refdc6987 r78da8ac3  
    1010    malloctest malloc02 malloc03 malloc04 malloc05 heapwalk \
    1111    putenvtest monitor monitor02 rtmonuse stackchk stackchk01 \
    12     termios termios01 termios02 termios03 termios04 termios05 termios06 \
     12    termios termios01 termios02 termios03 termios04 termios05 \
     13    termios06 termios07 termios08 \
    1314    rtems++ tztest block01 block02 block03 block04 block05 block06 block07 \
    14     block08 block09 block10 stringto01 tar03
     15    block08 block09 block10 stringto01 \
     16    tar03
    1517
    1618include $(top_srcdir)/../automake/subdirs.am
  • testsuites/libtests/configure.ac

    refdc6987 r78da8ac3  
    7070termios05/Makefile
    7171termios06/Makefile
     72termios07/Makefile
     73termios08/Makefile
    7274tztest/Makefile
    7375POSIX/Makefile
  • testsuites/libtests/termios06/init.c

    refdc6987 r78da8ac3  
    2020#include <sys/ioctl.h>
    2121#include <rtems/dumpbuf.h>
     22#include <rtems/termiostypes.h>
    2223
    2324void pppasyncattach(void);
     
    3334  Test_fd = open( TERMIOS_TEST_DRIVER_DEVICE_NAME, O_RDWR );
    3435  rtems_test_assert( Test_fd != -1 );
     36}
     37
     38void Rx_Wake(
     39  struct termios *tty,
     40  void           *arg
     41)
     42{
     43  printk( "Rx_Wake - invoked\n" );
     44}
     45
     46void Tx_Wake(
     47  struct termios *tty,
     48  void           *arg
     49)
     50{
     51  printk( "Tx_Wake - invoked\n" );
     52}
     53
     54struct ttywakeup RxWake = { Rx_Wake, NULL };
     55struct ttywakeup TxWake = { Tx_Wake, NULL };
     56
     57void set_wakeups(void)
     58{
     59  int sc;
     60
     61  puts( "ioctl - RTEMS_IO_SNDWAKEUP - OK" );
     62  sc = ioctl( Test_fd, RTEMS_IO_SNDWAKEUP, &TxWake );
     63  rtems_test_assert( sc == 0 );
     64
     65  puts( "ioctl - RTEMS_IO_RCVWAKEUP - OK" );
     66  sc = ioctl( Test_fd, RTEMS_IO_RCVWAKEUP, &RxWake );
     67  rtems_test_assert( sc == 0 );
     68
    3569}
    3670
     
    117151  pppasyncattach();
    118152  open_it();
     153  set_wakeups();
    119154  set_discipline();
    120155  write_it();
Note: See TracChangeset for help on using the changeset viewer.