From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Gibson To: passt-dev@passt.top Subject: [PATCH 05/15] tests: Introduce makefile for building test assets Date: Wed, 06 Jul 2022 17:28:59 +1000 Message-ID: <20220706072909.596805-6-david@gibson.dropbear.id.au> In-Reply-To: <20220706072909.596805-1-david@gibson.dropbear.id.au> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3632991109633412399==" --===============3632991109633412399== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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 --- test/Makefile | 27 +++++++++++++++++++++++++++ test/lib/test | 2 +- 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 test/Makefile 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 + +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) diff --git a/test/lib/test b/test/lib/test index 09e8340..96dab2b 100755 --- a/test/lib/test +++ b/test/lib/test @@ -393,7 +393,7 @@ test_one() { [ ${CI} -eq 1 ] && video_link "${1}" - TEST_ONE_subs= + TEST_ONE_subs="$(list_add_pair "" "__BASEPATH__" "${BASEPATH}")" TEST_ONE_nok=-1 TEST_ONE_perf_nok=0 TEST_ONE_skip=0 -- 2.36.1 --===============3632991109633412399==--