]> sigrok.org Git - sigrok-test.git/blobdiff - decoder/test/rgb_led_ws281x/test.conf
rgb_led_ws281x: Add a few test-cases.
[sigrok-test.git] / decoder / test / rgb_led_ws281x / test.conf
diff --git a/decoder/test/rgb_led_ws281x/test.conf b/decoder/test/rgb_led_ws281x/test.conf
new file mode 100644 (file)
index 0000000..82fbebb
--- /dev/null
@@ -0,0 +1,24 @@
+test exception_samplerate
+       protocol-decoder rgb_led_ws281x
+       input misc/no-samplerate.sr
+       output rgb_led_ws281x exception match SamplerateError
+
+test ws281x_4ch_5mhz_snippet_ch0
+       protocol-decoder rgb_led_ws281x channel din=0
+       input led/ws281x/ws281x_4ch_5mhz_snippet.sr
+       output rgb_led_ws281x annotation match ws281x_4ch_5mhz_snippet_ch0.output
+
+test ws281x_4ch_5mhz_snippet_ch1
+       protocol-decoder rgb_led_ws281x channel din=1
+       input led/ws281x/ws281x_4ch_5mhz_snippet.sr
+       output rgb_led_ws281x annotation match ws281x_4ch_5mhz_snippet_ch1.output
+
+test ws281x_4ch_5mhz_snippet_ch2
+       protocol-decoder rgb_led_ws281x channel din=2
+       input led/ws281x/ws281x_4ch_5mhz_snippet.sr
+       output rgb_led_ws281x annotation match ws281x_4ch_5mhz_snippet_ch2.output
+
+test ws281x_4ch_5mhz_snippet_ch3
+       protocol-decoder rgb_led_ws281x channel din=3
+       input led/ws281x/ws281x_4ch_5mhz_snippet.sr
+       output rgb_led_ws281x annotation match ws281x_4ch_5mhz_snippet_ch3.output