From 2584ae2bd68ba813cd8e7537bcd2c3c7102924a4 Mon Sep 17 00:00:00 2001 From: Stefano Brivio Date: Fri, 22 Apr 2022 17:28:08 +0200 Subject: mbuto: kselftests: Fill in collections if none are given This fixes the case where just the profile is given, i.e. ./mbuto -p kselftests Signed-off-by: Stefano Brivio --- mbuto | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/mbuto b/mbuto index 6918415..a3857b9 100755 --- a/mbuto +++ b/mbuto @@ -216,6 +216,11 @@ profile_kselftests() { __colls="${__c} ${__colls}" done + if [ -z ${__colls} ]; then + __colls="$(${SED} -n 's/^TARGETS += \(.*\)$/\1/p' \ + "${__makefile}")" + fi + for __t in ${SUBOPT_test}; do __colls="${__colls} $(echo ${__t} | ${AWK} -F':' '{print $1}')" done @@ -325,7 +330,7 @@ profile_kselftests() { # List of tools used here, assigned to uppercase variable names TOOLS="awk basename bc cat cd chmod cp cpio depmod diff dirname du file find grep egrep gzip ldconfig ldd ln ls make mkdir mknod mktemp modprobe mv - printf readlink realpath rm rmdir seq sleep sort strip sync tr umount + printf readlink realpath rm rmdir sed seq sleep sort strip sync tr umount uname wget which" # err() - Print error and exit -- cgit v1.2.3