set -e # exit on error
cd `dirname $0`
mkdir -p tmpsrc
-cp ../irmp.[ch] ../irmpconfig.h ../irsnd.[ch] ../irsndconfig.h ../makefile.lnx tmpsrc
+cp ../irmp.[ch] ../irmpconfig.h ../irsnd.[ch] ../irsndconfig.h ../irmpsystem.h ../irmpprotocols.h ../makefile.lnx tmpsrc
cd tmpsrc
sed 's/#define \(IRMP_SUPPORT_[A-Z_0-9]* *\)[01]/#define \1 1/g' <irmpconfig.h >irmpconfig.new
mv irmpconfig.new irmpconfig.h
cd ..
for j in \
+ 3xNEC3xAPPLE.log.txt \
Dbox.txt \
DK_Digital.txt \
Grundig_TP715.txt \
Grundig_TP715_SatTV.txt \
Grundig_TP715_Video.txt \
+ Kathrein-UFS-912-Remote.txt \
Matsushita.txt \
Nokia.txt \
Panasonic-Blue-Ray.txt \
Sony_Bravia_RM-ED0009_new.txt \
Yamaha-RAV388.txt \
apple.txt \
+ apple-unibody-remote.txt \
bo_beolink1000-10kHz.txt \
denon.txt \
elta_radio.txt \
fdc.txt \
+ jvc.txt \
nec-repetition.txt \
nec-skymaster-dt500.txt \
nec.txt \
+ nikon.txt \
nubert-subwoofer.txt \
orion_vcr_07660BM070.txt \
panasonic-scan.txt \
rc5x.txt \
rc6-hold.txt \
rc6.txt \
- sharp-denon.txt \
- sharp-denon2.txt
+ sharp_kurz_10khz.txt \
+ sharp_lang_10khz.txt \
+ xbox360-10kHz.txt
do
- echo "testing $j ..."
- if tmpsrc/irmp -v < $j | grep -q error
+ echo -n "testing $j ... "
+ if tmpsrc/irmp-10kHz -v < $j | grep -q error
then
- tmpsrc/irmp -v < $j | grep error
+ tmpsrc/irmp-10kHz -v < $j | grep error
echo "test failed"
exit 1
+ else
+ if tmpsrc/irmp-10kHz -v < $j | grep -q checked
+ then
+ echo "checked!"
+ else
+ echo "successful"
+ fi
fi
done
+# t-home-mediareceiver-15kHz.txt (RUWIDO) conflicts with Denon
+
for j in \
- Siemens-Gigaset-M740AV-15kHz.txt \
+ a1tvbox-15kHz.txt \
bo_beolink1000-15kHz.txt \
- denon-15kHz.txt
+ bose_wave_system_15khz.txt \
+ denon-15kHz.txt \
+ denon-rc-176-15kHz.txt \
+ denon-rc-176-repeat-15kHz.txt \
+ irc-15kHz.txt \
+ kathrein-15kHz.txt \
+ recs80-15kHz.txt \
+ saa3004-15kHz.txt \
+ samsung32-15kHz.txt \
+ sharp_15khz.txt \
+ Siemens-Gigaset-M740AV-15kHz.txt \
+ thomson-mb100-15kHz.txt \
+ tp400vt-15kHz.txt \
+ universal-15kHz.txt \
+ xbox360-15kHz.txt
do
- echo "testing $j ..."
+ echo -n "testing $j ... "
if tmpsrc/irmp-15kHz -v < $j | grep -q error
then
tmpsrc/irmp-15kHz -v < $j | grep error
echo "test failed"
exit 1
+ else
+ if tmpsrc/irmp-15kHz -v < $j | grep -q checked
+ then
+ echo "checked!"
+ else
+ echo "successful"
+ fi
fi
done
for j in \
+ a1tvbox-20kHz.txt \
rc-car-20kHz.txt \
fdc-20kHz.txt \
- fdc2-20kHz.txt
+ fdc2-20kHz.txt \
+ saa3004-20kHz.txt \
+ telefunken-1560-20kHz.txt
do
- echo "testing $j ..."
+ echo -n "testing $j ... "
if tmpsrc/irmp-20kHz -v < $j | grep -q error
then
tmpsrc/irmp-20kHz -v < $j | grep error
echo "test failed"
exit 1
+ else
+ if tmpsrc/irmp-20kHz -v < $j | grep -q checked
+ then
+ echo "checked!"
+ else
+ echo "successful"
+ fi
fi
done
-rm -rf tmpsrc
+# rm -rf tmpsrc
echo "all tests successful"
exit 0