]> cloudbase.mooo.com Git - irmp.git/blob - IR-Data/test-suite.sh
Version 1.7.3: added support of Kaseikyo
[irmp.git] / IR-Data / test-suite.sh
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
14 set -e # exit on error
15 cd `dirname $0`
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 ..
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 \
31 Matsushita.txt \
32 Nokia.txt \
33 Panasonic-Blue-Ray.txt \
34 RC5-Taste.txt \
35 Samsung_DVD_Rec_00062C.txt \
36 Samsung_TV.txt \
37 Sony-RM-S-310.txt \
38 sony-rm-s311.txt \
39 Sony-RM-U305C.txt \
40 Sony-RMT-D142P-DVD.txt \
41 Sony-RMT-V406.txt \
42 Sony_RM-S315_lange.txt \
43 Sony_Bravia_RM-ED0009_new.txt \
44 Yamaha-RAV388.txt \
45 apple.txt \
46 apple-unibody-remote.txt \
47 bo_beolink1000-10kHz.txt \
48 denon.txt \
49 elta_radio.txt \
50 fdc.txt \
51 jvc.txt \
52 nec-repetition.txt \
53 nec-skymaster-dt500.txt \
54 nec.txt \
55 nubert-subwoofer.txt \
56 orion_vcr_07660BM070.txt \
57 panasonic-scan.txt \
58 rc-car.txt \
59 rc5.txt \
60 rc5x-79.txt \
61 rc5x.txt \
62 rc6-hold.txt \
63 rc6.txt \
64 sharp-denon.txt \
65 sharp-denon2.txt
66 do
67 echo "testing $j ..."
68 if tmpsrc/irmp -v < $j | grep -q error
69 then
70 tmpsrc/irmp -v < $j | grep error
71 echo "test failed"
72 exit 1
73 fi
74 done
75
76 for j in \
77 Siemens-Gigaset-M740AV-15kHz.txt \
78 bo_beolink1000-15kHz.txt \
79 denon-15kHz.txt
80 do
81 echo "testing $j ..."
82 if tmpsrc/irmp-15kHz -v < $j | grep -q error
83 then
84 tmpsrc/irmp-15kHz -v < $j | grep error
85 echo "test failed"
86 exit 1
87 fi
88 done
89
90 for j in \
91 rc-car-20kHz.txt \
92 fdc-20kHz.txt \
93 fdc2-20kHz.txt
94 do
95 echo "testing $j ..."
96 if tmpsrc/irmp-20kHz -v < $j | grep -q error
97 then
98 tmpsrc/irmp-20kHz -v < $j | grep error
99 echo "test failed"
100 exit 1
101 fi
102 done
103
104 rm -rf tmpsrc
105
106 echo "all tests successful"
107 exit 0