test_tarball.sh 967 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #!/usr/bin/env bash
  2. set -e
  3. # We want ccache
  4. export PATH="/usr/lib/ccache:$PATH"
  5. cd bin/dist-autotools/
  6. if [ "x$1" = "x" ] ; then
  7. echo "Testing the tarball ..."
  8. mkdir test-tarball
  9. cd test-tarball
  10. gunzip -c ../libopenmpt*.tar.gz | tar -xvf -
  11. cd libopenmpt*
  12. ./configure
  13. make
  14. make check
  15. cd ..
  16. cd ..
  17. else
  18. echo "Testing tarball cross-compilation ..."
  19. mkdir test-tarball2
  20. cd test-tarball2
  21. gunzip -c ../libopenmpt*.tar.gz | tar -xvf -
  22. cd libopenmpt*
  23. if [ "x$2" = "x" ] ; then
  24. ./configure --host=$1 --without-zlib --without-ogg --without-vorbis --without-vorbisfile --without-mpg123 --without-pulseaudio --without-portaudio -without-sndfile --without-flac --without-portaudiocpp
  25. else
  26. ./configure --host=$1 CC=$1-gcc-$2 CXX=$1-g++-$2 --without-zlib --without-ogg --without-vorbis --without-vorbisfile --without-mpg123 --without-pulseaudio --without-portaudio -without-sndfile --without-flac --without-portaudiocpp
  27. fi
  28. make
  29. cd ..
  30. cd ..
  31. fi
  32. cd ../..