diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2022-07-06 17:28:59 +1000 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2022-07-14 01:32:42 +0200 |
commit | db551e5de02a46517f40f2320b85ae65a877fe6b (patch) | |
tree | 136befecd99b2a4ff5ef4d36138ae0c0b6892117 /test/Makefile | |
parent | 7bcc5930a66ed8d6ba692a2463547d17390531e7 (diff) | |
download | passt-db551e5de02a46517f40f2320b85ae65a877fe6b.tar passt-db551e5de02a46517f40f2320b85ae65a877fe6b.tar.gz passt-db551e5de02a46517f40f2320b85ae65a877fe6b.tar.bz2 passt-db551e5de02a46517f40f2320b85ae65a877fe6b.tar.lz passt-db551e5de02a46517f40f2320b85ae65a877fe6b.tar.xz passt-db551e5de02a46517f40f2320b85ae65a877fe6b.tar.zst passt-db551e5de02a46517f40f2320b85ae65a877fe6b.zip |
tests: Introduce makefile for building test assets
A number of passt/pasta testcases have initial steps which are just about
building images or other assets we need for the test proper. Repeating
these for each test run can be quite costly.
This patch makes a start on moving this sort of test asset building to
a separate phase before running the tests proper. For now just add a
Makefile to handle the asset building (although it doesn't build
anything yet), and make the path where we'll be building the assets
available to the tests.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'test/Makefile')
-rw-r--r-- | test/Makefile | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/test/Makefile b/test/Makefile new file mode 100644 index 0000000..02c60a3 --- /dev/null +++ b/test/Makefile @@ -0,0 +1,27 @@ +# SPDX-License-Identifier: AGPL-3.0-or-later +# +# Tests makefile +# +# Copyright Red Hat +# Author: David Gibson <david@gibson.dropbear.id.au> + +DOWNLOAD_ASSETS = +LOCAL_ASSETS = + +ASSETS = $(DOWNLOAD_ASSETS) $(LOCAL_ASSETS) + +assets: $(ASSETS) + +check: assets + ./run + +debug: assets + DEBUG=1 ./run + +clean: + rm -f perf.js *~ + rm -f $(LOCAL_ASSETS) + rm -rf test_logs + +realclean: clean + rm -rf $(DOWNLOAD_ASSETS) |