Add a test script for the rotate element
authorAntonio Ospite <ao2@ao2.it>
Thu, 9 Oct 2014 08:58:38 +0000 (10:58 +0200)
committerAntonio Ospite <ao2@ao2.it>
Thu, 9 Oct 2014 08:58:38 +0000 (10:58 +0200)
This was used to verify that the black background behind the rotated
image was actually black.

shell/gst-test-rotate.sh [new file with mode: 0755]

diff --git a/shell/gst-test-rotate.sh b/shell/gst-test-rotate.sh
new file mode 100755 (executable)
index 0000000..482655c
--- /dev/null
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+set -e
+
+FORMATS="ARGB BGR BGRA BGRx RGB RGBA RGBx AYUV xBGR xRGB GRAY8 GRAY16_BE GRAY16_LE"
+for format in $FORMATS;
+do
+  echo "Testing format: $format"
+  GST_PLUGIN_PATH=$(pwd) \
+  gst-launch-1.0 videotestsrc ! video/x-raw,format="$format",width=640,height=480 ! rotate angle="0.79" ! autovideoconvert ! autovideosink > /dev/null 2>&1
+done