]> sigrok.org Git - libsigrokdecode.git/commitdiff
pdtests: Check for SamplerateError in all PDs that emit it.
authorUwe Hermann <redacted>
Mon, 11 Aug 2014 20:53:02 +0000 (22:53 +0200)
committerUwe Hermann <redacted>
Thu, 14 Aug 2014 15:44:20 +0000 (17:44 +0200)
decoders/can/test/test.conf [new file with mode: 0644]
decoders/dcf77/test/test.conf [new file with mode: 0644]
decoders/guess_bitrate/test/test.conf [new file with mode: 0644]
decoders/i2c/test/test.conf
decoders/i2s/test/test.conf [new file with mode: 0644]
decoders/ir_nec/test/test.conf [new file with mode: 0644]
decoders/ir_rc5/test/test.conf [new file with mode: 0644]
decoders/onewire_link/test/test.conf [new file with mode: 0644]
decoders/uart/test/test.conf
decoders/usb_signalling/test/test.conf [new file with mode: 0644]

diff --git a/decoders/can/test/test.conf b/decoders/can/test/test.conf
new file mode 100644 (file)
index 0000000..cebcb17
--- /dev/null
@@ -0,0 +1,5 @@
+test exception_samplerate
+       protocol-decoder can
+       input misc/no-samplerate.sr
+       output can exception match SamplerateError
+
diff --git a/decoders/dcf77/test/test.conf b/decoders/dcf77/test/test.conf
new file mode 100644 (file)
index 0000000..95c2c81
--- /dev/null
@@ -0,0 +1,5 @@
+test exception_samplerate
+       protocol-decoder dcf77
+       input misc/no-samplerate.sr
+       output dcf77 exception match SamplerateError
+
diff --git a/decoders/guess_bitrate/test/test.conf b/decoders/guess_bitrate/test/test.conf
new file mode 100644 (file)
index 0000000..2f7e2d6
--- /dev/null
@@ -0,0 +1,5 @@
+test exception_samplerate
+       protocol-decoder guess_bitrate
+       input misc/no-samplerate.sr
+       output guess_bitrate exception match SamplerateError
+
index 5c08e1d517b70b9317b5a37d2fde0a06781ac887..e383f5fc91fe0cca122c451c0aed41096dbf4752 100644 (file)
@@ -20,7 +20,7 @@ test xfp
        output i2c binary class address-read match xfp_address_read.binary
        output i2c binary class address-write match xfp_address_write.binary
 
-test exceptions
+test exception_samplerate
        protocol-decoder i2c
        input misc/no-samplerate.sr
        output i2c exception match SamplerateError
diff --git a/decoders/i2s/test/test.conf b/decoders/i2s/test/test.conf
new file mode 100644 (file)
index 0000000..a913d61
--- /dev/null
@@ -0,0 +1,5 @@
+test exception_samplerate
+       protocol-decoder i2s
+       input misc/no-samplerate.sr
+       output i2s exception match SamplerateError
+
diff --git a/decoders/ir_nec/test/test.conf b/decoders/ir_nec/test/test.conf
new file mode 100644 (file)
index 0000000..eee3d87
--- /dev/null
@@ -0,0 +1,5 @@
+test exception_samplerate
+       protocol-decoder ir_nec
+       input misc/no-samplerate.sr
+       output ir_nec exception match SamplerateError
+
diff --git a/decoders/ir_rc5/test/test.conf b/decoders/ir_rc5/test/test.conf
new file mode 100644 (file)
index 0000000..5d5dfa0
--- /dev/null
@@ -0,0 +1,5 @@
+test exception_samplerate
+       protocol-decoder ir_rc5
+       input misc/no-samplerate.sr
+       output ir_rc5 exception match SamplerateError
+
diff --git a/decoders/onewire_link/test/test.conf b/decoders/onewire_link/test/test.conf
new file mode 100644 (file)
index 0000000..75349c2
--- /dev/null
@@ -0,0 +1,5 @@
+test exception_samplerate
+       protocol-decoder onewire_link
+       input misc/no-samplerate.sr
+       output onewire_link exception match SamplerateError
+
index f15b04b321e4bf3986049e9b784998cb7811491d..a071c627a21a41956edf7e98995eefa2dda5adb0 100644 (file)
@@ -8,3 +8,8 @@ test trekstor_ebr30_a
        output uart binary class tx match trekstor_bin_tx.output
        output uart binary class rxtx match trekstor_bin_rx.output
 
+test exception_samplerate
+       protocol-decoder uart
+       input misc/no-samplerate.sr
+       output uart exception match SamplerateError
+
diff --git a/decoders/usb_signalling/test/test.conf b/decoders/usb_signalling/test/test.conf
new file mode 100644 (file)
index 0000000..0ae9f5e
--- /dev/null
@@ -0,0 +1,5 @@
+test exception_samplerate
+       protocol-decoder usb_signalling
+       input misc/no-samplerate.sr
+       output usb_signalling exception match SamplerateError
+