build-test 350 B

12345678910111213141516
  1. #!/usr/bin/env bash
  2. # Build just enough to run ./test:
  3. # https://github.com/cirosantilli/linux-kernel-module-cheat#automated-tests
  4. set -eu
  5. test_size=1
  6. while [ $# -gt 0 ]; do
  7. case "$1" in
  8. --size)
  9. test_size="$2"
  10. shift 2
  11. ;;
  12. esac
  13. done
  14. ./build-test-boot --size "$test_size"
  15. ./build --all-archs test-gdb test-executables-userland