test.sh 836 B

1234567891011121314151617181920212223242526
  1. #!/bin/bash
  2. set -e
  3. build_dir=$1
  4. # Change to the glibc build directory
  5. cd "${build_dir}/build"
  6. echo "Running glibc test suite..."
  7. echo "Note: The glibc test suite is critical and should not be skipped."
  8. echo "Some test failures may be expected and are generally safe to ignore."
  9. # Run the test suite
  10. make check
  11. echo "Test suite completed."
  12. echo ""
  13. echo "Common test failures that can generally be ignored:"
  14. echo "- io/tst-lchmod: Known to fail in LFS chroot environment"
  15. echo "- nss/tst-nss-files-hosts-multi: May fail due to timeout"
  16. echo "- nptl/tst-thread-affinity*: May fail due to timeout"
  17. echo "- elf/tst-cpu-features-cpuinfo: May fail with older CPU models"
  18. echo "- stdlib/tst-arc4random-thread: May fail with older host kernel"
  19. echo ""
  20. echo "To check for timeout failures:"
  21. echo "grep \"Timed out\" \$(find -name \\\\*.out)"