opus_build_test.sh 549 B

1234567891011121314151617181920212223242526272829
  1. #!/bin/sh
  2. tarball=`realpath "$1"`
  3. nb_tests="$2"
  4. oldvectors=`realpath "$3"`
  5. newvectors=`realpath "$4"`
  6. base=`basename "$tarball" .tar.gz`
  7. tar xvf "$tarball" > /dev/null 2>&1
  8. cd "$base"
  9. if [ $? -ne 0 ]
  10. then
  11. echo cannot go to "$base"
  12. exit 1
  13. fi
  14. mkdir build_tests
  15. configure_dir=`pwd`
  16. seq -w "$nb_tests" | parallel --halt now,fail=10 -j +2 -q ../random_config.sh "build_tests/run_{}" "$configure_dir" "$oldvectors" "$newvectors"
  17. if [ $? -ne 0 ]
  18. then
  19. echo Check found errors
  20. exit 1
  21. else
  22. echo No error found
  23. fi