projects
/
lttng-ci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bt benchmark: Ignore commit ae466a6e1b856d96cf5112a371b4df2b732503ec
[lttng-ci.git]
/
scripts
/
babeltrace-benchmark
/
benchmark.sh
diff --git
a/scripts/babeltrace-benchmark/benchmark.sh
b/scripts/babeltrace-benchmark/benchmark.sh
index c9f579c90300cdf8e3f8eef67ce6f9e968e533da..9a3256b313ad4b0227520094e80a7eb31cd80f20 100755
(executable)
--- 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 <jonathan.rajotte-julien@efficios.com>
+# Copyright (C) 2019 Jonathan Rajotte-Julien <jonathan.rajotte-julien@efficios.com>
#
# 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
#
# 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 <http://www.gnu.org/licenses/>.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
+set -exu
+
SRC_DIR="$WORKSPACE/src/babeltrace"
SCRIPT_DIR="$WORKSPACE/src/lttng-ci"
RESULTS_DIR="$WORKSPACE/results"
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
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"
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"
}
python "$SCRIPT_PATH" --generate-report --repo-path "$SRC_DIR" --report-name "${RESULTS_DIR}/babeltrace-benchmark.pdf"
}
+checkout_scripts
setup_env
run_jobs
generate_report
setup_env
run_jobs
generate_report
This page took
0.022389 seconds
and
4
git commands to generate.