Lines Matching full:echo
13 echo -e "Usage: $0 -[p] <compiler> [test_name]\n"
14 echo -e "\tkselftest_deps.sh [-p] gcc"
15 echo -e "\tkselftest_deps.sh [-p] gcc vm"
16 echo -e "\tkselftest_deps.sh [-p] aarch64-linux-gnu-gcc"
17 echo -e "\tkselftest_deps.sh [-p] aarch64-linux-gnu-gcc vm\n"
18 echo "- Should be run in selftests directory in the kernel repo."
19 echo "- Checks if Kselftests can be built/cross-built on a system."
20 echo "- Parses all test/sub-test Makefile to find library dependencies."
21 echo "- Runs compile test on a trivial C file with LDLIBS specified"
22 echo " in the test Makefiles to identify missing library dependencies."
23 echo "- Prints suggested target list for a system filtering out tests"
24 echo " failed the build dependency check from the TARGETS in Selftests"
25 echo " main Makefile when optional -p is specified."
26 echo "- Prints pass/fail dependency check for each tests/sub-test."
27 echo "- Prints pass/fail targets and libraries."
28 echo "- Default: runs dependency checks on all tests."
29 echo "- Optional test name can be specified to check dependencies for it."
41 echo -e "\tPlease run $0 in"
42 echo -e "\ttools/testing/selftests directory ..."
66 #echo $tmp_file
70 #echo $pass
74 #echo $fail
145 #echo $l1_tests
146 #echo $l2_1_tests
147 #echo $l3_tests
208 #echo $test_libs
215 echo "FAIL: $test dependency check: $lib" >> $fail
218 fail_target=$(echo "$test" | cut -d "/" -f1)
220 targets=$(echo "$targets" | grep -v "$fail_target")
222 echo "PASS: $test dependency check passed $lib" >> $pass
225 pass_trgts+="$(echo "$test" | cut -d "/" -f1) "
234 echo -e "========================================================";
235 echo -e "Kselftest Dependency Check for [$0 $1 $2] results..."
239 echo -e "Suggested Selftest Targets for your configuration:"
240 echo -e "$targets";
243 echo -e "========================================================";
244 echo -e "Checked tests defining LDLIBS dependencies"
245 echo -e "--------------------------------------------------------";
246 echo -e "Total tests with Dependencies:"
247 echo -e "$total_cnt Pass: $pass_cnt Fail: $fail_cnt";
250 echo -e "--------------------------------------------------------";
252 echo -e "--------------------------------------------------------";
253 echo -e "Targets passed build dependency check on system:"
254 echo -e "$(echo "$pass_trgts" | xargs -n1 | sort -u | xargs)"
258 echo -e "--------------------------------------------------------";
260 echo -e "--------------------------------------------------------";
261 echo -e "Targets failed build dependency check on system:"
262 echo -e "$(echo "$fail_trgts" | xargs -n1 | sort -u | xargs)"
263 echo -e "--------------------------------------------------------";
264 echo -e "Missing libraries system"
265 echo -e "$(echo "$fail_libs" | xargs -n1 | sort -u | xargs)"
268 echo -e "--------------------------------------------------------";
269 echo -e "========================================================";