]> git.ipfire.org Git - thirdparty/elfutils.git/commit
tests/test-subr.sh: Put test_dir under /var/tmp.
authorFrank Ch. Eigler <fche@redhat.com>
Wed, 9 Oct 2024 17:41:14 +0000 (13:41 -0400)
committerFrank Ch. Eigler <fche@redhat.com>
Thu, 10 Oct 2024 11:49:39 +0000 (07:49 -0400)
commit3dc5753b5f6f100ae24bc6ae9e4dbdb6fe44017d
tree55205a2f0cf38f86ff764803ae6907ec4a224615
parent3cb047b9c55c86ae613df8aacc21c517dc3fa468
tests/test-subr.sh: Put test_dir under /var/tmp.

Every individual test in elfutils involves a temporary directory.
Previous version of this script put that directory under the build
tree.  That's OK if it's a local disk, but if it's on NFS, then some
tests - run-large-elf-file.sh, several run-debuginfod-*.sh - take long
enough to run to fail tests intermittently.

This patch moves the temp_dir under ${TMPDIR-/var/tmp/}, so it
operates at local disk speed rather than whatever-build-filesystem
speed.  Individual test scripts are all unaffected.  (One could
consider /tmp instead, which is a RAM disk on modern systems, except
that some of the elfutils tests produce GB-sized temporary files.
That's probably too big for RAM.)

Signed-off-by: Frank Ch. Eigler <fche@redhat.com>
tests/test-subr.sh