dockerfiles/lkp-tests/runbench
Jess Frazelle 3f77ec297e
fixes
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
2017-10-25 17:22:09 -04:00

28 lines
588 B
Bash
Executable File

#!/bin/bash
set -e
set -o pipefail
ARG=$1
JOB_FILE="./jobs/${ARG}.yaml"
if [[ ! -f "$JOB_FILE" ]]; then
echo "$JOB_FILE does not exist, please select a job that is in the jobs directory." 1>&2;
echo "For example:" 1>&2;
echo " runbench hackbench-100" 1>&2;
exit 1
fi
# mount the debug filesystem
if ! grep -qs '/sys/kernel/debug' /proc/mounts; then
mount -t debugfs none /sys/kernel/debug/
fi
echo "Installing dependencies for ${ARG}..."
lkp install "$JOB_FILE"
echo "Running ${ARG}..."
lkp run "$JOB_FILE" || true
echo "Getting result from ${ARG}..."
lkp stat -p "${ARG}"