Modify C vs SIMD test script
authorAnupam Pandey <anupam.pandey@ittiam.com>
Thu, 5 Oct 2023 05:49:19 +0000 (11:19 +0530)
committerAnupam Pandey <anupam.pandey@ittiam.com>
Fri, 3 Nov 2023 12:56:33 +0000 (18:26 +0530)
- Enable C vs SIMD test for x86 32-bit platform
- Correct a print message in run_tests()

BUG=webm:1800

Change-Id: Ib1ccd3a87a64b5ec6cde524a14d5d1b7e200abfb

test/tools_common.sh
test/vp9_c_vs_simd_encode.sh

index 0e4a0a5..d0dd24d 100755 (executable)
@@ -280,7 +280,12 @@ run_tests() {
     test_end "${test}"
   done
 
-  local tested_config="$(test_configuration_target) @ $(current_hash)"
+  # C vs SIMD tests are run for x86 32-bit, 64-bit and ARM platform
+  if [ "${test_name}" = "vp9_c_vs_simd_encode" ]; then
+    local tested_config="$(current_hash)"
+  else
+    local tested_config="$(test_configuration_target) @ $(current_hash)"
+  fi
   echo "${test_name}: Done, all tests pass for ${tested_config}."
 }
 
index 42e5f3b..7cd6054 100755 (executable)
@@ -378,16 +378,14 @@ vp9_c_vs_simd_enc_test() {
   # Test Generic
   vp9_test_generic
 
-  # TODO(webm:1816): Enable x86 test once issue 1816 is fixed.
-  # Details: https://bugs.chromium.org/p/webm/issues/detail?id=1816
   # Test x86 (32 bit)
-  echo "vp9 test for x86 (32 bit): Started."
-  if ! vp9_test_x86 "x86"; then
-    echo "vp9 test for x86 (32 bit): Done, test failed."
-    return 1
-  else
-    echo "vp9 test for x86 (32 bit): Done, all tests passed."
-  fi
+  echo "vp9 test for x86 (32 bit): Started."
+  if ! vp9_test_x86 "x86"; then
+    echo "vp9 test for x86 (32 bit): Done, test failed."
+    return 1
+  else
+    echo "vp9 test for x86 (32 bit): Done, all tests passed."
+  fi
 
   # Test x86_64 (64 bit)
   if [ "$(eval uname -m)" = "x86_64" ]; then