run-ptest 802 B

123456789101112131415
  1. #!/bin/sh
  2. # By default, numpy will use /tmp as the root path for temporary files used
  3. # during tests, but if this is a tmpfs it may fill up quickly and cause many of
  4. # the tests to report "no space left on device" errors. Create a custom
  5. # directory for these and point pytest at it so we can take advantage of the
  6. # storage provided in the rootfs.
  7. export PYTEST_DEBUG_TEMPROOT="/usr/lib/python3-numpy/ptest/tmp"
  8. mkdir -p "$PYTEST_DEBUG_TEMPROOT"
  9. # test_mem_policy fails if there's no C compiler present, but we don't want to
  10. # include gcc as a ptest dependency, so skip that. test_big_arrays uses up a
  11. # large amount of storage, so skip that too.
  12. pytest --automake -m "not slow" -k "not test_mem_policy and not test_big_arrays" /usr/lib/python3.*/site-packages/numpy
  13. rm -rf "$PYTEST_DEBUG_TEMPROOT"