nareshkamboju

run_kselftest.sh

May 15th, 2017
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.97 KB | None | 0 0
  1. $ cat run_kselftest.sh
  2. #!/bin/bash
  3. cd $(dirname $0)
  4. ROOT=$PWD
  5. echo ; echo Running tests in breakpoints
  6. echo ========================================
  7. cd breakpoints
  8. cd $ROOT
  9. echo ; echo Running tests in capabilities
  10. echo ========================================
  11. cd capabilities
  12. (./test_execve && echo "selftests: test_execve [PASS]") || echo "selftests: test_execve [FAIL]"
  13. cd $ROOT
  14. echo ; echo Running tests in cpu-hotplug
  15. echo ========================================
  16. cd cpu-hotplug
  17. (./cpu-on-off-test.sh && echo "selftests: cpu-on-off-test.sh [PASS]") || echo "selftests: cpu-on-off-test.sh [FAIL]"
  18. cd $ROOT
  19. echo ; echo Running tests in efivarfs
  20. echo ========================================
  21. cd efivarfs
  22. (./efivarfs.sh && echo "selftests: efivarfs.sh [PASS]") || echo "selftests: efivarfs.sh [FAIL]"
  23. cd $ROOT
  24. echo ; echo Running tests in exec
  25. echo ========================================
  26. cd exec
  27. (./execveat && echo "selftests: execveat [PASS]") || echo "selftests: execveat [FAIL]"
  28. cd $ROOT
  29. echo ; echo Running tests in firmware
  30. echo ========================================
  31. cd firmware
  32. (./fw_filesystem.sh && echo "selftests: fw_filesystem.sh [PASS]") || echo "selftests: fw_filesystem.sh [FAIL]"
  33. (./fw_userhelper.sh && echo "selftests: fw_userhelper.sh [PASS]") || echo "selftests: fw_userhelper.sh [FAIL]"
  34. cd $ROOT
  35. echo ; echo Running tests in ftrace
  36. echo ========================================
  37. cd ftrace
  38. (./ftracetest && echo "selftests: ftracetest [PASS]") || echo "selftests: ftracetest [FAIL]"
  39. cd $ROOT
  40. echo ; echo Running tests in futex
  41. echo ========================================
  42. cd futex
  43. ./run.sh
  44. cd $ROOT
  45. echo ; echo Running tests in ipc
  46. echo ========================================
  47. cd ipc
  48. (./msgque_test && echo "selftests: msgque_test [PASS]") || echo "selftests: msgque_test [FAIL]"
  49. cd $ROOT
  50. echo ; echo Running tests in kcmp
  51. echo ========================================
  52. cd kcmp
  53. (./kcmp_test && echo "selftests: kcmp_test [PASS]") || echo "selftests: kcmp_test [FAIL]"
  54. cd $ROOT
  55. echo ; echo Running tests in lib
  56. echo ========================================
  57. cd lib
  58. (./printf.sh && echo "selftests: printf.sh [PASS]") || echo "selftests: printf.sh [FAIL]"
  59. (./bitmap.sh && echo "selftests: bitmap.sh [PASS]") || echo "selftests: bitmap.sh [FAIL]"
  60. cd $ROOT
  61. echo ; echo Running tests in membarrier
  62. echo ========================================
  63. cd membarrier
  64. (./membarrier_test && echo "selftests: membarrier_test [PASS]") || echo "selftests: membarrier_test [FAIL]"
  65. cd $ROOT
  66. echo ; echo Running tests in memfd
  67. echo ========================================
  68. cd memfd
  69. (./memfd_test && echo "selftests: memfd_test [PASS]") || echo "selftests: memfd_test [FAIL]"
  70. cd $ROOT
  71. echo ; echo Running tests in memory-hotplug
  72. echo ========================================
  73. cd memory-hotplug
  74. ./mem-on-off-test.sh -r 2 || echo selftests: memory-hotplug [FAIL]
  75. cd $ROOT
  76. echo ; echo Running tests in mount
  77. echo ========================================
  78. cd mount
  79. if [ -f /proc/self/uid_map ] ; then ./unprivileged-remount-test ; else echo WARN: No /proc/self/uid_map exist, test skipped. ; fi
  80. cd $ROOT
  81. echo ; echo Running tests in mqueue
  82. echo ========================================
  83. cd mqueue
  84. ./mq_open_tests /test1 || echo "selftests: mq_open_tests [FAIL]"
  85. ./mq_perf_tests || echo "selftests: mq_perf_tests [FAIL]"
  86. cd $ROOT
  87. echo ; echo Running tests in net
  88. echo ========================================
  89. cd net
  90. (./run_netsocktests && echo "selftests: run_netsocktests [PASS]") || echo "selftests: run_netsocktests [FAIL]"
  91. (./run_afpackettests && echo "selftests: run_afpackettests [PASS]") || echo "selftests: run_afpackettests [FAIL]"
  92. (./test_bpf.sh && echo "selftests: test_bpf.sh [PASS]") || echo "selftests: test_bpf.sh [FAIL]"
  93. cd $ROOT
  94. echo ; echo Running tests in powerpc
  95. echo ========================================
  96. cd powerpc
  97. cd $ROOT
  98. echo ; echo Running tests in pstore
  99. echo ========================================
  100. cd pstore
  101. (./pstore_tests && echo "selftests: pstore_tests [PASS]") || echo "selftests: pstore_tests [FAIL]"
  102. (./pstore_post_reboot_tests && echo "selftests: pstore_post_reboot_tests [PASS]") || echo "selftests: pstore_post_reboot_tests [FAIL]"
  103. cd $ROOT
  104. echo ; echo Running tests in ptrace
  105. echo ========================================
  106. cd ptrace
  107. (./peeksiginfo && echo "selftests: peeksiginfo [PASS]") || echo "selftests: peeksiginfo [FAIL]"
  108. cd $ROOT
  109. echo ; echo Running tests in seccomp
  110. echo ========================================
  111. cd seccomp
  112. (./seccomp_bpf && echo "selftests: seccomp_bpf [PASS]") || echo "selftests: seccomp_bpf [FAIL]"
  113. cd $ROOT
  114. echo ; echo Running tests in sigaltstack
  115. echo ========================================
  116. cd sigaltstack
  117. cd $ROOT
  118. echo ; echo Running tests in size
  119. echo ========================================
  120. cd size
  121. (./get_size && echo "selftests: get_size [PASS]") || echo "selftests: get_size [FAIL]"
  122. cd $ROOT
  123. echo ; echo Running tests in static_keys
  124. echo ========================================
  125. cd static_keys
  126. (./test_static_keys.sh && echo "selftests: test_static_keys.sh [PASS]") || echo "selftests: test_static_keys.sh [FAIL]"
  127. cd $ROOT
  128. echo ; echo Running tests in sysctl
  129. echo ========================================
  130. cd sysctl
  131. (./run_numerictests && echo "selftests: run_numerictests [PASS]") || echo "selftests: run_numerictests [FAIL]"
  132. (./run_stringtests && echo "selftests: run_stringtests [PASS]") || echo "selftests: run_stringtests [FAIL]"
  133. cd $ROOT
  134. echo ; echo Running tests in timers
  135. echo ========================================
  136. cd timers
  137. (./posix_timers && echo "selftests: posix_timers [PASS]") || echo "selftests: posix_timers [FAIL]"
  138. (./nanosleep && echo "selftests: nanosleep [PASS]") || echo "selftests: nanosleep [FAIL]"
  139. (./nsleep-lat && echo "selftests: nsleep-lat [PASS]") || echo "selftests: nsleep-lat [FAIL]"
  140. (./set-timer-lat && echo "selftests: set-timer-lat [PASS]") || echo "selftests: set-timer-lat [FAIL]"
  141. (./mqueue-lat && echo "selftests: mqueue-lat [PASS]") || echo "selftests: mqueue-lat [FAIL]"
  142. (./inconsistency-check && echo "selftests: inconsistency-check [PASS]") || echo "selftests: inconsistency-check [FAIL]"
  143. (./raw_skew && echo "selftests: raw_skew [PASS]") || echo "selftests: raw_skew [FAIL]"
  144. (./threadtest && echo "selftests: threadtest [PASS]") || echo "selftests: threadtest [FAIL]"
  145. cd $ROOT
  146. echo ; echo Running tests in user
  147. echo ========================================
  148. cd user
  149. (./test_user_copy.sh && echo "selftests: test_user_copy.sh [PASS]") || echo "selftests: test_user_copy.sh [FAIL]"
  150. cd $ROOT
  151. echo ; echo Running tests in vm
  152. echo ========================================
  153. cd vm
  154. (./run_vmtests && echo "selftests: run_vmtests [PASS]") || echo "selftests: run_vmtests [FAIL]"
  155. cd $ROOT
  156. echo ; echo Running tests in x86
  157. echo ========================================
  158. cd x86
  159. cd $ROOT
  160. echo ; echo Running tests in zram
  161. echo ========================================
  162. cd zram
  163. (./zram.sh && echo "selftests: zram.sh [PASS]") || echo "selftests: zram.sh [FAIL]"
  164. cd $ROOT
Add Comment
Please, Sign In to add comment