From da141a008eac5a8dfe9b7b8998b1d51a91aa8853 Mon Sep 17 00:00:00 2001 From: Kamal Mostafa Date: Fri, 8 Jul 2011 09:26:52 -0700 Subject: [PATCH] tests: make case 02 shorter --- src/testcases/self-test-ascii.txt | 112 ++++++++++++++++++++++++++++ src/testcases/test.02-self-test-300 | 3 +- 2 files changed, 113 insertions(+), 2 deletions(-) create mode 100644 src/testcases/self-test-ascii.txt diff --git a/src/testcases/self-test-ascii.txt b/src/testcases/self-test-ascii.txt new file mode 100644 index 0000000..1943a92 --- /dev/null +++ b/src/testcases/self-test-ascii.txt @@ -0,0 +1,112 @@ +.\" Hey, EMACS: -*- nroff -*- +.\" First parameter, NAME, should be all caps +.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection +.\" other parameters are allowed: see man(7), man(1) +.TH MINIMODEM 1 "June 22, 2011" +.\" Please adjust this date whenever revising the manpage. +.\" +.\" Some roff macros, for reference: +.\" .nh disable hyphenation +.\" .hy enable hyphenation +.\" .ad l left justify +.\" .ad b justify to both left and right margins +.\" .nf disable filling +.\" .fi enable filling +.\" .br insert line break +.\" .sp insert n+1 empty lines +.\" for manpage-specific macros, see man(7) +.SH NAME +minimodem \- software audio Bell-type or RTTY FSK modem +.SH SYNOPSIS +.B minimodem --tx +.RI [ options ] +.I {baudmode} +.br +.B minimodem --rx +.RI [ options ] +.I {baudmode} +.SH DESCRIPTION +.B minimodem +is a command-line program which generates (or decodes) audio modem tones, +emulating an old Bell-type or radio-teletype FSK modem. +The tones can be played to (or recorded from) the PulseAudio system +or to an audio file. +.PP +.B minimodem +can be used to transfer data between nearby computers using an audio +cable (or just via sound waves), or between remote computers using radio, +telephone, or another audio communications medium. +.SH "TX/RX MODE" +.TP +.B \-t, \-\-tx, \-\-transmit, \-\-write +transmit mode: generate audio tones +.TP +.B \-r, \-\-rx, \-\-receive, \-\-read +receive mode: decode audio tones +.SH OPTIONS +.TP +.B \-8, \-\-ascii +ASCII 8\-N\-1 +.TP +.B \-5, \-\-baudot +Baudot 5\-N\-1.5 +.TP +.B \-f, \-\-file filename.wav +encode or decode an audio file (extension sets audio format) +.TP +.B \-b, \-\-bandwidth {rx_bandwidth} +.TP +.B \-M, \-\-mark {mark_freq} +.TP +.B \-S, \-\-space {space_freq} +.TP +.B \-T, \-\-txstopbits {m.n} +.TP +.B \-V, \-\-version +print program version +.SH {baudmode} +The required \fI{baudmode}\fR parameter may be any floating-point value to +specify a baud rate, or the string "rtty". +The \fI{baudmode}\fR also implies certain other parameter defaults +depending on the rate. +.TP +.B 1200 + : Bell202 1200 bps \-\-ascii +.TP +.B 300 + : Bell103 300 bps \-\-ascii (auto-rx-carrier) +.TP +.B N>=100 + : Bellxxx N bps \-\-ascii +.TP +.B N<100 + : RTTY N bps \-\-baudot +.TP +.B rtty + : RTTY 45.45 bps \-\-baudot +.SH EXAMPLES +.TP +.B minimodem --tx 100 +Transmit 100 baud tones from one computer ... +.TP +.B minimodem --rx 100 +and receive 100 baud tones on another nearby computer. +.TP +.B minimodem --rx rtty +Decode amateur radio RTTY signals (listen near 14.085 MHz). +.SH NOTES +.B minimodem +does not decode AX.25 framed packets. +.PP +.B minimodem +does not support modem control ("AT") commands, nor does it produce +DTMF telephone dialing tones. +.SH AUTHOR +.B minimodem +was written by Kamal Mostafa . +.SH COPYRIGHT +Copyright \(co 2011 by Kamal Mostafa . +License GPLv3+: GNU GPL version 3 or later . +.br +This is free software: you are free to change and redistribute it. +There is NO WARRANTY, to the extent permitted by law. diff --git a/src/testcases/test.02-self-test-300 b/src/testcases/test.02-self-test-300 index 96ad090..618b0b9 100755 --- a/src/testcases/test.02-self-test-300 +++ b/src/testcases/test.02-self-test-300 @@ -1,2 +1 @@ -# use fsk.c as the sample text file -exec ./self-test 300 fsk.c +exec ./self-test 300 testcases/self-test-ascii.txt