Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/cosimo/perl5-test-device-serialport

A mock object to test virtual serial port-based devices
https://github.com/cosimo/perl5-test-device-serialport

Last synced: 10 days ago
JSON representation

A mock object to test virtual serial port-based devices

Awesome Lists containing this project

README

        

Test-Device-SerialPort
======================

Test class to pretend we are working with a real device attached to serial port.
The fake object that gets created only has some methods implemented and it hasn't
the complexity of a real serial line.

For now, it does what I need...
It should be interesting to subclass it to something like
Test::Device::SerialPort::Modem or T::D::S::Gsm or something like that.
Who knows?

Lots of additional methods and some test cases added by Bill Birthisel.
It now runs under Windows in place of Win32::SerialPort as well as
under the OS's supported by Device::SerialPort (March 2010). Most of
the commonly used functions emulate as advertised.

June, 2010: Added example that syncronizes with a free-running data stream

September, 2010: Add tied filehandle support and additional examples

INSTALLATION

To install this module type the following:

perl Makefile.PL
make
make test
make install

If you don't have make, Makefile.PL also creates pure perl scripts
to test and install (mostly for Win32 users).

SOURCE CODE REPOSITORY

http://github.com/cosimo/perl5-test-device-serialport/

COPYRIGHT AND LICENCE

Copyright (C) 2007-2010 by Streppone Cosimo

This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself, either Perl version 5.8.6 or,
at your option, any later version of Perl 5 you may have available.