]>
Commit | Line | Data |
---|---|---|
881dbf79 | 1 | #! /bin/sh |
2 | #---------------------------------------------------------------------------- | |
3 | # test suite for IRMP | |
4 | # | |
5 | # usage: | |
6 | # | |
7 | # ./test-suite.sh | |
8 | # | |
9 | # Copyright (c) 2010 Frank Meyer - frank(at)fli4l.de | |
10 | # | |
11 | # $Id: test-suite.sh,v 1.10 2010/06/09 12:04:04 fm Exp $ | |
12 | #---------------------------------------------------------------------------- | |
13 | ||
6f750020 | 14 | set -e # exit on error |
881dbf79 | 15 | cd `dirname $0` |
6f750020 | 16 | mkdir -p tmpsrc |
17 | cp ../irmp.[ch] ../irmpconfig.h ../irsnd.[ch] ../irsndconfig.h ../makefile.lnx tmpsrc | |
18 | cd tmpsrc | |
19 | sed 's/#define \(IRMP_SUPPORT_[A-Z_0-9]* *\)[01]/#define \1 1/g' <irmpconfig.h >irmpconfig.new | |
20 | mv irmpconfig.new irmpconfig.h | |
21 | make -f makefile.lnx clean | |
22 | make -f makefile.lnx all | |
23 | cd .. | |
881dbf79 | 24 | |
25 | for j in \ | |
26 | Dbox.txt \ | |
27 | DK_Digital.txt \ | |
28 | Grundig_TP715.txt \ | |
29 | Grundig_TP715_SatTV.txt \ | |
30 | Grundig_TP715_Video.txt \ | |
c7a47e89 | 31 | Kathrein-UFS-912-Remote.txt \ |
881dbf79 | 32 | Matsushita.txt \ |
33 | Nokia.txt \ | |
34 | Panasonic-Blue-Ray.txt \ | |
35 | RC5-Taste.txt \ | |
36 | Samsung_DVD_Rec_00062C.txt \ | |
37 | Samsung_TV.txt \ | |
38 | Sony-RM-S-310.txt \ | |
39 | sony-rm-s311.txt \ | |
40 | Sony-RM-U305C.txt \ | |
41 | Sony-RMT-D142P-DVD.txt \ | |
42 | Sony-RMT-V406.txt \ | |
43 | Sony_RM-S315_lange.txt \ | |
44 | Sony_Bravia_RM-ED0009_new.txt \ | |
45 | Yamaha-RAV388.txt \ | |
46 | apple.txt \ | |
770a1a9d | 47 | apple-unibody-remote.txt \ |
881dbf79 | 48 | bo_beolink1000-10kHz.txt \ |
49 | denon.txt \ | |
50 | elta_radio.txt \ | |
6f750020 | 51 | fdc.txt \ |
770a1a9d | 52 | jvc.txt \ |
881dbf79 | 53 | nec-repetition.txt \ |
54 | nec-skymaster-dt500.txt \ | |
55 | nec.txt \ | |
9405f84a | 56 | nikon.txt \ |
881dbf79 | 57 | nubert-subwoofer.txt \ |
58 | orion_vcr_07660BM070.txt \ | |
59 | panasonic-scan.txt \ | |
6f750020 | 60 | rc-car.txt \ |
881dbf79 | 61 | rc5.txt \ |
62 | rc5x-79.txt \ | |
63 | rc5x.txt \ | |
64 | rc6-hold.txt \ | |
65 | rc6.txt \ | |
66 | sharp-denon.txt \ | |
c7a47e89 | 67 | sharp-denon2.txt \ |
68 | xbox360-10kHz.txt | |
881dbf79 | 69 | do |
70 | echo "testing $j ..." | |
6f750020 | 71 | if tmpsrc/irmp -v < $j | grep -q error |
881dbf79 | 72 | then |
9405f84a | 73 | tmpsrc/irmp -v < $j | grep error |
74 | echo "test failed" | |
75 | exit 1 | |
881dbf79 | 76 | fi |
77 | done | |
78 | ||
79 | for j in \ | |
80 | Siemens-Gigaset-M740AV-15kHz.txt \ | |
81 | bo_beolink1000-15kHz.txt \ | |
c7a47e89 | 82 | denon-15kHz.txt \ |
83 | xbox360-15kHz.txt | |
881dbf79 | 84 | do |
85 | echo "testing $j ..." | |
6f750020 | 86 | if tmpsrc/irmp-15kHz -v < $j | grep -q error |
881dbf79 | 87 | then |
9405f84a | 88 | tmpsrc/irmp-15kHz -v < $j | grep error |
89 | echo "test failed" | |
90 | exit 1 | |
881dbf79 | 91 | fi |
92 | done | |
93 | ||
6f750020 | 94 | for j in \ |
95 | rc-car-20kHz.txt \ | |
96 | fdc-20kHz.txt \ | |
97 | fdc2-20kHz.txt | |
98 | do | |
99 | echo "testing $j ..." | |
100 | if tmpsrc/irmp-20kHz -v < $j | grep -q error | |
101 | then | |
9405f84a | 102 | tmpsrc/irmp-20kHz -v < $j | grep error |
103 | echo "test failed" | |
104 | exit 1 | |
6f750020 | 105 | fi |
106 | done | |
881dbf79 | 107 | |
6f750020 | 108 | rm -rf tmpsrc |
881dbf79 | 109 | |
110 | echo "all tests successful" | |
111 | exit 0 |