@@ -105,6 +105,11 @@ PACKAGE_VERSION := $(or \
105
105
PACKAGE_CHANNEL := cloe/develop
106
106
PACKAGE_FQN := ${PACKAGE_NAME}/${PACKAGE_VERSION}@${PACKAGE_CHANNEL}
107
107
108
+ # Which files to consider as smoketest profiles when running targets
109
+ # `smoketest-deps` and `smoketest`. This can be useful to override from the
110
+ # command line if you just want to test one configuration.
111
+ TEST_CONANFILES := tests/conanfile_*.py
112
+
108
113
# It is an order of magnitude faster to parse ~/.conan/editable_packages.json
109
114
# ourselves than to get conan to do it for us. This should only take us 20ms,
110
115
# while conan needs 250ms. Also, this will tell us if the package is editable,
@@ -302,15 +307,16 @@ info: parse-info
302
307
.PHONY : smoketest
303
308
smoketest :
304
309
# Ensure that you have built all smoketest dependencies!
305
- @for conanfile in tests/conanfile_ * .py ; do \
310
+ @for conanfile in ${TEST_CONANFILES} ; do \
306
311
test -f " $$ {conanfile}" || continue ; \
307
312
printf " Running BATS tests with conanfile: $$ {conanfile}\n\n" ; \
308
313
SHELL=/bin/bash ${CLOE_LAUNCH} shell -P " $$ {conanfile}" -- -c " source ${PROJECT_ROOT} /tests/setup_testname.bash; bats tests" ; \
309
314
done
310
315
316
+ .PHONY : smoketest-deps
311
317
smoketest-deps :
312
318
# Ensure that you have exported all relevant packages!
313
- @for conanfile in tests/conanfile_ * .py ; do \
319
+ @for conanfile in ${TEST_CONANFILES} ; do \
314
320
test -f " $$ {conanfile}" || continue ; \
315
321
echo " Building dependencies for conanfile: $$ {conanfile}" ; \
316
322
${CLOE_LAUNCH} prepare -P " $$ {conanfile}" || break ; \
0 commit comments