forked from kieker-monitoring/moobench
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.rc
More file actions
34 lines (27 loc) · 973 Bytes
/
config.rc
File metadata and controls
34 lines (27 loc) · 973 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# OpenTelemetry-python configuration
# 1. Resolve Paths
RAW_BASE_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
if command -v cygpath &>/dev/null; then
BASE_DIR=$(cygpath -w "$RAW_BASE_DIR")
RAW_MAIN_DIR="$RAW_BASE_DIR/../../"
MAIN_DIR=$(cygpath -w "$RAW_MAIN_DIR")
PYTHON_BIN="python"
else
BASE_DIR="$RAW_BASE_DIR"
MAIN_DIR="$RAW_BASE_DIR/../../"
PYTHON_BIN="python3"
fi
if [ -f "${MAIN_DIR}/config.rc" ]; then
source "${MAIN_DIR}/config.rc"
fi
# 3. Directories & Files
export VENV_DIR="$BASE_DIR/venv"
export REQUIREMENTS_FILE="$BASE_DIR/requirements.txt"
export CONFIG_TEMPLATE="$BASE_DIR/config.ini.template"
export CONFIG_FILE="$BASE_DIR/config.ini"
# Standardized Naming
export RESULTS_DIR="$BASE_DIR/results-OpenTelemetry-python"
export RAWFN="$RESULTS_DIR/raw"
# Tool Path (Renamed per reviewer request)
export MOOBENCH_BIN_PY="$MAIN_DIR/tools/pybenchmark/benchmark.py"
mkdir -p "$RAW_BASE_DIR/results-OpenTelemetry-python"