summaryrefslogtreecommitdiff
path: root/tcwg-benchmark-results.sh
blob: 00efe72f878b63069243c66e83723f63134f988b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash

# Clean: shellcheck -e 2001 ./tcwg-benchmark-results.sh

set -ex

# Make shellcheck happy and workaround Jenkins not defining variables
# for empty arguments.
resultsdest="$resultsdest"

# Jenkins doesn't define variables when parameter value is empty (like cflags),
# so enable "set -u" only after above binding of variables.
set -u

rsync -az --delete "$resultsdest/" results/

mkdir -p artifacts
bmk-scripts/perfdatadir2csv.sh --buildid-dir local -t --num 0 --format sample --results-dir results/ > artifacts/time.csv
bmk-scripts/perfdatadir2csv.sh --buildid-dir local --results-dir results/ > artifacts/sample.csv

exit 0