X-Git-Url: http://cloudbase.mooo.com/gitweb/irmp.git/blobdiff_plain/111d61910d35ec1e5538b267ce450bea45159e72..775fabfac758cbdc33aa81431380ed0b6377143b:/IR-Data/test-suite.sh diff --git a/IR-Data/test-suite.sh b/IR-Data/test-suite.sh index 5a59c0d..eb16f74 100644 --- a/IR-Data/test-suite.sh +++ b/IR-Data/test-suite.sh @@ -14,7 +14,7 @@ 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.new mv irmpconfig.new irmpconfig.h @@ -23,6 +23,7 @@ make -f makefile.lnx all cd .. for j in \ + 3xNEC3xAPPLE.log.txt \ Dbox.txt \ DK_Digital.txt \ Grundig_TP715.txt \ @@ -63,34 +64,55 @@ for j in \ rc5x.txt \ rc6-hold.txt \ rc6.txt \ - sharp-denon.txt \ - sharp-denon2.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 \ bo_beolink1000-15kHz.txt \ + bose_wave_system_15khz.txt \ denon-15kHz.txt \ - irc-15kHz.txt \ - kathrein-15kHz.txt \ - t-home-mediareceiver-15kHz.txt \ + denon-rc-176-15kHz.txt \ + denon-rc-176-repeat-15kHz.txt \ + irc-15kHz.txt \ + kathrein-15kHz.txt \ + recs80-15kHz.txt \ + samsung32-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 @@ -99,16 +121,23 @@ for j in \ fdc-20kHz.txt \ fdc2-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