]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
perf test code_with_type.sh: Skip test if rust wasn't available at build time
authorArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 9 Feb 2026 13:58:44 +0000 (10:58 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 9 Feb 2026 18:47:03 +0000 (15:47 -0300)
  $ perf test 'perf data type profiling tests'
   83: perf data type profiling tests                         : Skip
  $ perf test -vv 'perf data type profiling tests'
   83: perf data type profiling tests:
  --- start ---
  test child forked, pid 977213
  Skip: code_with_type workload not built in 'perf test'
  ---- end(-2) ----
   83: perf data type profiling tests                         : Skip
  $

Cc: Dmitrii Dolgov <9erthalion6@gmail.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/tests/shell/data_type_profiling.sh

index a230f5d4c42c3e6a31da7ec22fe8446b9b037a8e..3ef72a10850d0734f0834485239eafa8313a39bc 100755 (executable)
@@ -4,6 +4,11 @@
 
 set -e
 
+if ! perf test --list-workloads | grep -qw code_with_type ; then
+       echo "Skip: code_with_type workload not built in 'perf test'"
+       exit 2
+fi
+
 # The logic below follows the same line as the annotate test, but looks for a
 # data type profiling manifestation