shithub: opus

Download patch

ref: 2654707e86cc94413998976d179b2ab4a2aa3114
parent: f3377959820511fa012edc57a697b9dca427ef87
author: Jean-Marc Valin <jmvalin@jmvalin.ca>
date: Fri Apr 1 10:32:38 EDT 2022

Cleanup testing directories to save space

--- a/tests/opus_build_test.sh
+++ b/tests/opus_build_test.sh
@@ -18,7 +18,7 @@
 mkdir build_tests
 
 configure_dir=`pwd`
-seq -w $nb_tests | parallel -j +2 "../random_config.sh build_tests/run_{} $configure_dir $oldvectors $newvectors"
+seq -w $nb_tests | parallel --halt now,fail=10 -j +2 "../random_config.sh build_tests/run_{} $configure_dir $oldvectors $newvectors"
 
 if [ $? -ne 0 ]
 then
--- a/tests/random_config.sh
+++ b/tests/random_config.sh
@@ -78,7 +78,7 @@
 
 if [ $? -ne 0 ]
 then
-	echo configure error >> $config
+	echo configure FAIL >> $config
 	exit 1
 fi
 
@@ -86,7 +86,7 @@
 
 if [ $? -ne 0 ]
 then
-        echo make error >> $config
+        echo make FAIL >> $config
 	exit 1
 fi
 
@@ -100,7 +100,7 @@
 
 if [ $? -ne 0 ]
 then
-        echo check error >> $config
+        echo check FAIL >> $config
 	exit 1
 fi
 
@@ -110,8 +110,13 @@
 
 if [ $? -ne 0 ]
 then
-        echo testvectors error >> $config
+        echo testvectors FAIL >> $config
         exit 1
 fi
 
-echo all pass >> $config
+echo all tests PASS >> $config
+
+#When everything's good, do some cleaning up to save space
+make distclean > /dev/null 2>&1
+rm -f tmp.out
+gzip make_output.txt