1
0
mirror of https://passt.top/passt synced 2024-07-04 00:42:41 +00:00
passt/test/lib
David Gibson 8cb7d5b461 test: Create common state directories for temporary files
The test scripts create a bunch of temporary files to keep track of
internal state.  Some are made in /tmp with individual mktemp calls, some
go in the passt source directory, and some go in $LOGDIR.  This can
sometimes make it messy to clean up after failed test runs.

Start cleaning this up by creating a single "state" directory ($STATEBASE)
in /tmp for all the state or temporary files used by a single test run.
Clean it up automatically in cleanup() - except when DEBUG==1, because
those files can be useful for debugging test script failures.

We create subdirectories under $STATEBASE for each setup function, exposed
as $STATESETUP.  We also create subdirectories for each test script and
expose those to the scripts as __STATEDIR__.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2022-09-13 11:12:41 +02:00
..
context test: Use context system for guest commands 2022-09-13 05:32:00 +02:00
layout test: Use new-style command issue for passt_in_ns tests 2022-09-13 05:32:00 +02:00
perf_report test/lib: Consistent cols, rows, poster attributes for asciinema player 2022-04-07 11:44:35 +02:00
setup test: Create common state directories for temporary files 2022-09-13 11:12:41 +02:00
term test: Create common state directories for temporary files 2022-09-13 11:12:41 +02:00
test test: Create common state directories for temporary files 2022-09-13 11:12:41 +02:00
util tests: Remove unused set_mode() function 2022-07-14 01:32:42 +02:00
video test: Remove unused variable FFMPEG_PID_FILE 2022-09-13 11:12:41 +02:00