2017-10-25 18:50:19 +02:00
|
|
|
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
set -o pipefail
|
2017-10-25 18:14:56 +02:00
|
|
|
|
2017-10-25 18:50:19 +02:00
|
|
|
ARG=$1
|
|
|
|
JOB_FILE="./jobs/${ARG}.yaml"
|
2017-10-25 18:14:56 +02:00
|
|
|
|
2017-10-25 18:50:19 +02:00
|
|
|
if [[ ! -f "$JOB_FILE" ]]; then
|
|
|
|
echo "$JOB_FILE does not exist, please select a job that is in the jobs directory." 1>&2;
|
2017-10-25 19:19:15 +02:00
|
|
|
echo "For example:" 1>&2;
|
|
|
|
echo " runbench hackbench-100" 1>&2;
|
2017-10-25 18:50:19 +02:00
|
|
|
exit 1
|
|
|
|
fi
|
2017-10-25 18:14:56 +02:00
|
|
|
|
2017-10-25 21:54:17 +02:00
|
|
|
# mount the debug filesystem
|
|
|
|
mount -t debugfs none /sys/kernel/debug/
|
|
|
|
|
2017-10-25 18:50:19 +02:00
|
|
|
echo "Installing dependencies for ${ARG}..."
|
|
|
|
lkp install "$JOB_FILE"
|
|
|
|
|
|
|
|
echo "Running ${ARG}..."
|
2017-10-25 21:54:17 +02:00
|
|
|
lkp run "$JOB_FILE"
|
2017-10-25 18:50:19 +02:00
|
|
|
|
|
|
|
echo "Getting result from ${ARG}..."
|
|
|
|
lkp stat
|