aboutgitcode
diff options
context:
space:
mode:
-rwxr-xr-xmbuto11
1 files changed, 10 insertions, 1 deletions
diff --git a/mbuto b/mbuto
index a5733e6..720b77a 100755
--- a/mbuto
+++ b/mbuto
@@ -209,6 +209,14 @@ profile_kselftests() {
__testpath="./tools/testing/selftests/"
__makefile="${__testpath}Makefile"
__colls=
+
+ if [ -n "${SUBOPT_list+x}" ]; then
+ __colls=$("${AWK}" '/^TARGETS \+= / {print $3}' ${__makefile} | "${TR}" '\n' ' ')
+ printf "Available collections:\n "
+ echo "${__colls}" | "${FMT}" -t
+ exit 0
+ fi
+
for __c in ${SUBOPT_collection}; do
if ! ${GREP} -q "^TARGETS += ${__c}$" ${__makefile}; then
notice "WARNING: collection ${__c} doesn't exist"
@@ -316,7 +324,7 @@ profile_kselftests() {
### Helpers ####################################################################
# 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
+TOOLS="awk basename bc cat cd chmod cp cpio depmod diff dirname du file find fmt
grep egrep gzip ldconfig ldd ln ls make mkdir mknod mktemp modprobe mv
printf readlink realpath rm rmdir sed seq sleep sort strip sync tr umount
uname wget which"
@@ -458,6 +466,7 @@ list_join() {
SUBOPTS='
kselftests C collection 2 Select a collection of kernel tests
kselftests T test 2 Select a test from a collection
+ kselftests L list 1 List available collections
'
subopts_profile=