Skip memory heavy tests causing FTBFS on mips and mipsel buildds
authorAlex Mestiashvili <mestia@debian.org>
Wed, 2 May 2018 13:43:16 +0000 (14:43 +0100)
committerAlexandre Mestiashvili <mestia@debian.org>
Wed, 2 May 2018 13:43:16 +0000 (14:43 +0100)
Gbp-Pq: Name 0013-skip-memory-greedy-tests.patch

tests/playTests.sh

index 6ac49d64b26fded51cc3fbea31930990f8e1d29b..c3d50e1ddaa29811bcdc8cd1dd613a15a9d97109 100755 (executable)
@@ -761,9 +761,15 @@ then
     $ECHO "\n===>   zstdmt long round-trip tests "
     roundTripTest -g80000000 -P99 "19 -T2" " "
     roundTripTest -g5000000000 -P99 "1 -T2" " "
-    roundTripTest -g500000000 -P97 "1 -T999" " "
-    fileRoundTripTest -g4103M -P98 " -T0" " "
-    roundTripTest -g400000000 -P97 "1 --long=24 -T2" " "
+       DEBARCH=$(dpkg-architecture -qDEB_HOST_ARCH)
+       if [ "$DEBARCH" != 'mips' -a "$DEBARCH" != 'mipsel' ]
+    then
+        roundTripTest -g500000000 -P97 "1 -T999" " "
+        fileRoundTripTest -g4103M -P98 " -T0" " "
+        roundTripTest -g400000000 -P97 "1 --long=24 -T2" " "
+    else
+        $ECHO "\n**** skip memory greedy tests on $DEBARCH **** "
+    fi
 else
     $ECHO "\n**** no multithreading, skipping zstdmt tests **** "
 fi