From 156bc0193bd47d3f4b3adaa93be0e206e12686ab Mon Sep 17 00:00:00 2001
From: Mark Thompson <sw@jkqxz.net>
Date: Fri, 17 Feb 2017 23:13:14 +0000
Subject: [PATCH] fate: Add webp alpha test

---
 tests/fate/image.mak                  | 11 +++++++++--
 tests/ref/fate/{webp => webp-yuv420p} |  0
 tests/ref/fate/webp-yuva420p          |  2 ++
 3 files changed, 11 insertions(+), 2 deletions(-)
 rename tests/ref/fate/{webp => webp-yuv420p} (100%)
 create mode 100644 tests/ref/fate/webp-yuva420p

diff --git a/tests/fate/image.mak b/tests/fate/image.mak
index 83fa71a199f..7d970312d4d 100644
--- a/tests/fate/image.mak
+++ b/tests/fate/image.mak
@@ -223,8 +223,15 @@ FATE_TIFF-$(call DEMDEC, IMAGE2, TIFF) += $(FATE_TIFF)
 FATE_SAMPLES_AVCONV += $(FATE_TIFF-yes)
 fate-tiff: $(FATE_TIFF-yes)
 
-FATE_SAMPLES_AVCONV-$(call DEMDEC, IMAGE2, WEBP) += fate-webp
-fate-webp: CMD = framecrc -i $(TARGET_SAMPLES)/webp/image_small.webp
+FATE_WEBP += fate-webp-yuv420p
+fate-webp-yuv420p: CMD = framecrc -i $(TARGET_SAMPLES)/webp/image_small.webp
+
+FATE_WEBP += fate-webp-yuva420p
+fate-webp-yuva420p: CMD = framecrc -i $(TARGET_SAMPLES)/webp/1_webp_a.webp
+
+FATE_WEBP-$(call DEMDEC, IMAGE2, WEBP) += $(FATE_WEBP)
+FATE_SAMPLES_AVCONV += $(FATE_WEBP-yes)
+fate-webp: $(FATE_WEBP-yes)
 
 FATE_XBM += fate-xbm10
 fate-xbm10: CMD = framecrc -i $(TARGET_SAMPLES)/xbm/xl.xbm
diff --git a/tests/ref/fate/webp b/tests/ref/fate/webp-yuv420p
similarity index 100%
rename from tests/ref/fate/webp
rename to tests/ref/fate/webp-yuv420p
diff --git a/tests/ref/fate/webp-yuva420p b/tests/ref/fate/webp-yuva420p
new file mode 100644
index 00000000000..3350edf2d74
--- /dev/null
+++ b/tests/ref/fate/webp-yuva420p
@@ -0,0 +1,2 @@
+#tb 0: 1/25
+0,          0,          0,        1,   301200, 0x12b071a0
-- 
GitLab