test.sh 537 B

1234567891011121314151617181920212223242526
  1. #!/bin/bash
  2. set -e
  3. build_dir=$1
  4. # With simpleBuildEnvironment flag, we're already in build directory
  5. echo "Running LZ4 tests..."
  6. # Check if we need to navigate to lz4 source directory
  7. if [ ! -f "./Makefile" ]; then
  8. if [ -d "sources/lz4" ]; then
  9. cd sources/lz4
  10. elif [ -d "lz4" ]; then
  11. cd lz4
  12. else
  13. echo "Error: Makefile not found"
  14. echo "Contents of current directory:"
  15. ls -la
  16. exit 1
  17. fi
  18. fi
  19. # Run tests according to LFS instructions
  20. make -j1 check
  21. echo "All tests passed."