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 mm"
16 echo -e "\tkselftest_deps.sh [-p] aarch64-linux-gnu-gcc"
17 echo -e "\tkselftest_deps.sh [-p] aarch64-linux-gnu-gcc mm\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
150 # some tests may fall back to default using `|| echo -l<libname>`
155 # LDLIBS += $(shell $(HOSTPKG_CONFIG) --libs libmnl 2>/dev/null || echo -lmnl)
168 #echo l1_tests $l1_tests
169 #echo l2_tests $l2_tests
170 #echo l3_tests $l3_tests
171 #echo l4_tests $l4_tests
172 #echo l5_tests $l5_tests
238 grep "\(pkg-config\|PKG_CONFIG\).*|| echo " | \
239 sed -e 's/.*|| echo //' | sed -e 's/)$//')
260 #echo $test_libs
267 echo "FAIL: $test dependency check: $lib" >> $fail
270 fail_target=$(echo "$test" | cut -d "/" -f1)
272 targets=$(echo "$targets" | grep -v "$fail_target")
274 echo "PASS: $test dependency check passed $lib" >> $pass
277 pass_trgts+="$(echo "$test" | cut -d "/" -f1) "
286 echo -e "========================================================";
287 echo -e "Kselftest Dependency Check for [$0 $1 $2] results..."
291 echo -e "Suggested Selftest Targets for your configuration:"
292 echo -e "$targets";
295 echo -e "========================================================";
296 echo -e "Checked tests defining LDLIBS dependencies"
297 echo -e "--------------------------------------------------------";
298 echo -e "Total tests with Dependencies:"
299 echo -e "$total_cnt Pass: $pass_cnt Fail: $fail_cnt";
302 echo -e "--------------------------------------------------------";
304 echo -e "--------------------------------------------------------";
305 echo -e "Targets passed build dependency check on system:"
306 echo -e "$(echo "$pass_trgts" | xargs -n1 | sort -u | xargs)"
310 echo -e "--------------------------------------------------------";
312 echo -e "--------------------------------------------------------";
313 echo -e "Targets failed build dependency check on system:"
314 echo -e "$(echo "$fail_trgts" | xargs -n1 | sort -u | xargs)"
315 echo -e "--------------------------------------------------------";
316 echo -e "Missing libraries system"
317 echo -e "$(echo "$fail_libs" | xargs -n1 | sort -u | xargs)"
320 echo -e "--------------------------------------------------------";
321 echo -e "========================================================";