File: test-fmscan.at

package info (click to toggle)
fmtools 2.0.8
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 220 kB
  • sloc: sh: 2,196; ansic: 687; makefile: 54
file content (47 lines) | stat: -rw-r--r-- 1,156 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
m4_define([RUN_FMSCAN], [fmscan -q -d m4_if([$1], [], test, ['test $1'])])

AT_BANNER([fmscan])

AT_SETUP([defaults])
AT_CHECK([RUN_FMSCAN], [0], [Setting start to tuner minimum 89.00 MHz
Setting end to tuner maximum 91.00 MHz
Scanning range: 89.00 - 91.00 MHz (0.20 MHz increments)...
89.60: 97.7%
90.40: 76.3%
])
AT_CLEANUP

AT_SETUP([specified range])
AT_CHECK([RUN_FMSCAN -s 89.2 -e 90], [0], 
[Scanning range: 89.20 - 90.00 MHz (0.20 MHz increments)...
89.60: 97.7%
])
AT_CLEANUP

AT_SETUP([specified increment])
AT_CHECK([RUN_FMSCAN -i 0.05], [0], 
[Setting start to tuner minimum 89.00 MHz
Setting end to tuner maximum 91.00 MHz
Scanning range: 89.00 - 91.00 MHz (0.05 MHz increments)...
89.60: 97.7%
89.65: 97.7%
90.35: 76.3%
90.40: 76.3%
90.50: 61.0%
])
AT_CLEANUP

AT_SETUP([specified threshold])
AT_CHECK([RUN_FMSCAN -t 90], [0], [Setting start to tuner minimum 89.00 MHz
Setting end to tuner maximum 91.00 MHz
Scanning range: 89.00 - 91.00 MHz (0.20 MHz increments)...
89.60: 97.7%
])
AT_CLEANUP

AT_SETUP([override range])
AT_CHECK([RUN_FMSCAN -o], [0], 
[Scanning range: 87.90 - 107.90 MHz (0.20 MHz increments)...
90.50: 61.0%
])
AT_CLEANUP