Commit 2a400eeb authored by Arnaldo Carvalho de Melo's avatar Arnaldo Carvalho de Melo
Browse files

perf test code_with_type.sh: Skip test if rust wasn't available at build time



  $ 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: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent 1d3ffe62
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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