aboutsummaryrefslogtreecommitdiff
path: root/unit_test/convert_test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'unit_test/convert_test.cc')
-rw-r--r--unit_test/convert_test.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/unit_test/convert_test.cc b/unit_test/convert_test.cc
index 3c75c2d6..12c3398c 100644
--- a/unit_test/convert_test.cc
+++ b/unit_test/convert_test.cc
@@ -31,6 +31,13 @@
#include "libyuv/row.h" /* For ARGBToAR30Row_AVX2 */
#endif
+#if defined(__riscv) && !defined(__clang__)
+#define DISABLE_SLOW_TESTS
+#undef ENABLE_FULL_TESTS
+#undef ENABLE_ROW_TESTS
+#define LEAN_TESTS
+#endif
+
// Some functions fail on big endian. Enable these tests on all cpus except
// PowerPC, but they are not optimized so disabled by default.
#if !defined(DISABLE_SLOW_TESTS) && !defined(__powerpc__)
@@ -784,6 +791,8 @@ TESTATOBP(UYVY, 2, 4, NV12, 2, 2)
TESTATOBP(AYUV, 1, 4, NV12, 2, 2)
TESTATOBP(AYUV, 1, 4, NV21, 2, 2)
+#if !defined(LEAN_TESTS)
+
#ifdef HAVE_JPEG
TEST_F(LibYUVConvertTest, ValidateJpeg) {
const int kOff = 10;
@@ -2057,4 +2066,6 @@ TEST_F(LibYUVConvertTest, TestRGB24ToI420) {
}
#endif
+#endif // !defined(LEAN_TESTS)
+
} // namespace libyuv