Blame tests/p_perf/01_perf_version.sh

Carlos Rodriguez-Fernandez 0f92db
#!/bin/bash
Carlos Rodriguez-Fernandez 0f92db
# Author: Carlos Rodriguez-Fernandez <carlosrodrifernandez@gmail.com>
Carlos Rodriguez-Fernandez 0f92db
Carlos Rodriguez-Fernandez 0f92db
Carlos Rodriguez-Fernandez 0f92db
t_Log "Running $0"
Carlos Rodriguez-Fernandez 0f92db
Carlos Rodriguez-Fernandez 0f92db
output_file=$(mktemp)
Carlos Rodriguez-Fernandez 0f92db
trap "rm -f ${output_file}" EXIT
Carlos Rodriguez-Fernandez 0f92db
Carlos Rodriguez-Fernandez 0f92db
if ! perf version > ${output_file} 2>&1; then
Carlos Rodriguez-Fernandez 0f92db
  cat ${output_file}
Carlos Rodriguez-Fernandez 0f92db
  t_CheckExitStatus 1
Carlos Rodriguez-Fernandez 0f92db
fi
Carlos Rodriguez-Fernandez 0f92db
Carlos Rodriguez-Fernandez 0f92db
t_CheckExitStatus 0