X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;ds=sidebyside;f=scripts%2Fbabeltrace-benchmark%2Fbenchmark.sh;h=9a3256b313ad4b0227520094e80a7eb31cd80f20;hb=HEAD;hp=c9f579c90300cdf8e3f8eef67ce6f9e968e533da;hpb=5c65bbc2ea87bdcecc0c02cc7c19c50c94d6d6cb;p=lttng-ci.git diff --git a/scripts/babeltrace-benchmark/benchmark.sh b/scripts/babeltrace-benchmark/benchmark.sh index c9f579c..9a3256b 100755 --- a/scripts/babeltrace-benchmark/benchmark.sh +++ b/scripts/babeltrace-benchmark/benchmark.sh @@ -1,6 +1,6 @@ -#!/bin/bash -exu +#!/bin/bash # -# Copyright (C) 2019 - Jonathan Rajotte-Julien +# Copyright (C) 2019 Jonathan Rajotte-Julien # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -15,6 +15,8 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . +set -exu + SRC_DIR="$WORKSPACE/src/babeltrace" SCRIPT_DIR="$WORKSPACE/src/lttng-ci" RESULTS_DIR="$WORKSPACE/results" @@ -27,6 +29,10 @@ TMPDIR="${VENV}/tmp" mkdir -p "$TMPDIR" export TMPDIR +function checkout_scripts() { + git clone https://github.com/lttng/lttng-ci.git "$SCRIPT_DIR" +} + function setup_env () { mkdir -p "$RESULTS_DIR" @@ -48,6 +54,7 @@ function generate_report () python "$SCRIPT_PATH" --generate-report --repo-path "$SRC_DIR" --report-name "${RESULTS_DIR}/babeltrace-benchmark.pdf" } +checkout_scripts setup_env run_jobs generate_report