From 4417c05a666f98b28c150b69e76a1de2af7f1cc1 Mon Sep 17 00:00:00 2001 From: Francis Deslauriers Date: Tue, 29 Aug 2017 12:09:01 -0400 Subject: [PATCH] jjb: lava: clone benchmarking code to temporary directory Signed-off-by: Francis Deslauriers --- lava/baremetal-tests/failing-close.yml | 9 ++++----- lava/baremetal-tests/failing-ioctl.yml | 9 ++++----- lava/baremetal-tests/failing-open-efault.yml | 9 ++++----- lava/baremetal-tests/failing-open-enoent.yml | 9 ++++----- lava/baremetal-tests/raw-syscall-getpid.yml | 9 ++++----- lava/baremetal-tests/success-dup-close.yml | 9 ++++----- 6 files changed, 24 insertions(+), 30 deletions(-) diff --git a/lava/baremetal-tests/failing-close.yml b/lava/baremetal-tests/failing-close.yml index 9094128..5273a2c 100644 --- a/lava/baremetal-tests/failing-close.yml +++ b/lava/baremetal-tests/failing-close.yml @@ -10,27 +10,26 @@ install: - python3-pandas - python3-numpy git-repos: - - url: https://github.com/frdeso/syscall-bench-it.git - destination: /tmp/benchmarks - branch: master - url: https://github.com/lttng/lttng-ci destination: ci branch: master steps: - export TMPDIR="/tmp" + - export BENCHMARK_DIR=$(mktemp --directory) - ulimit -c unlimited - mkdir -p coredump - echo "$(pwd)/coredump/core.%e.%p.%h.%t" > /proc/sys/kernel/core_pattern run: steps: - source /root/lttngvenv/activate - - cd /tmp/benchmarks + - git clone https://github.com/frdeso/syscall-bench-it.git $BENCHMARK_DIR + - cd $BENCHMARK_DIR - lava-test-case build-benchmarks --shell "make" - lava-test-case run-benchmarks --shell "./run.sh failing-close sys_close" - lava-test-case-attach run-benchmarks "./results.csv" - cd - - cd ci - - python3 ./scripts/lttng-baremetal-tests/parse-results.py /tmp/benchmarks/results.csv + - python3 ./scripts/lttng-baremetal-tests/parse-results.py $BENCHMARK_DIR/results.csv - mv ./processed_results.csv ../processed_results_close.csv - cd - - tar czf coredump.tar.gz coredump diff --git a/lava/baremetal-tests/failing-ioctl.yml b/lava/baremetal-tests/failing-ioctl.yml index 0002cbe..b009ed9 100644 --- a/lava/baremetal-tests/failing-ioctl.yml +++ b/lava/baremetal-tests/failing-ioctl.yml @@ -10,27 +10,26 @@ install: - python3-pandas - python3-numpy git-repos: - - url: https://github.com/frdeso/syscall-bench-it.git - destination: /tmp/benchmarks - branch: master - url: https://github.com/lttng/lttng-ci destination: ci branch: master steps: - export TMPDIR="/tmp" + - export BENCHMARK_DIR=$(mktemp --directory) - ulimit -c unlimited - mkdir -p coredump - echo "$(pwd)/coredump/core.%e.%p.%h.%t" > /proc/sys/kernel/core_pattern run: steps: - source /root/lttngvenv/activate - - cd /tmp/benchmarks + - git clone https://github.com/frdeso/syscall-bench-it.git $BENCHMARK_DIR + - cd $BENCHMARK_DIR - lava-test-case build-benchmarks --shell "make" - lava-test-case run-benchmarks --shell "./run.sh failing-ioctl sys_ioctl" - lava-test-case-attach run-benchmarks "./results.csv" - cd - - cd ci - - python3 ./scripts/lttng-baremetal-tests/parse-results.py /tmp/benchmarks/results.csv + - python3 ./scripts/lttng-baremetal-tests/parse-results.py $BENCHMARK_DIR/results.csv - mv ./processed_results.csv ../processed_results_ioctl.csv - cd - - tar czf coredump.tar.gz coredump diff --git a/lava/baremetal-tests/failing-open-efault.yml b/lava/baremetal-tests/failing-open-efault.yml index 8dc3c51..6159835 100644 --- a/lava/baremetal-tests/failing-open-efault.yml +++ b/lava/baremetal-tests/failing-open-efault.yml @@ -10,27 +10,26 @@ install: - python3-pandas - python3-numpy git-repos: - - url: https://github.com/frdeso/syscall-bench-it.git - destination: /tmp/benchmarks - branch: master - url: https://github.com/lttng/lttng-ci destination: ci branch: master steps: - export TMPDIR="/tmp" + - export BENCHMARK_DIR=$(mktemp --directory) - ulimit -c unlimited - mkdir -p coredump - echo "$(pwd)/coredump/core.%e.%p.%h.%t" > /proc/sys/kernel/core_pattern run: steps: - source /root/lttngvenv/activate - - cd /tmp/benchmarks + - git clone https://github.com/frdeso/syscall-bench-it.git $BENCHMARK_DIR + - cd $BENCHMARK_DIR - lava-test-case build-benchmarks --shell "make" - lava-test-case run-benchmarks --shell "./run.sh failing-open-efault sys_open" - lava-test-case-attach run-benchmarks "./results.csv" - cd - - cd ci - - python3 ./scripts/lttng-baremetal-tests/parse-results.py /tmp/benchmarks/results.csv + - python3 ./scripts/lttng-baremetal-tests/parse-results.py $BENCHMARK_DIR/results.csv - mv ./processed_results.csv ../processed_results_open_efault.csv - cd - - tar czf coredump.tar.gz coredump diff --git a/lava/baremetal-tests/failing-open-enoent.yml b/lava/baremetal-tests/failing-open-enoent.yml index adcf861..c0912a5 100644 --- a/lava/baremetal-tests/failing-open-enoent.yml +++ b/lava/baremetal-tests/failing-open-enoent.yml @@ -10,27 +10,26 @@ install: - python3-pandas - python3-numpy git-repos: - - url: https://github.com/frdeso/syscall-bench-it.git - destination: /tmp/benchmarks - branch: master - url: https://github.com/lttng/lttng-ci destination: ci branch: master steps: - export TMPDIR="/tmp" + - export BENCHMARK_DIR=$(mktemp --directory) - ulimit -c unlimited - mkdir -p coredump - echo "$(pwd)/coredump/core.%e.%p.%h.%t" > /proc/sys/kernel/core_pattern run: steps: - source /root/lttngvenv/activate - - cd /tmp/benchmarks + - git clone https://github.com/frdeso/syscall-bench-it.git $BENCHMARK_DIR + - cd $BENCHMARK_DIR - lava-test-case build-benchmarks --shell "make" - lava-test-case run-benchmarks --shell "./run.sh failing-open-enoent sys_open" - lava-test-case-attach run-benchmarks "./results.csv" - cd - - cd ci - - python3 ./scripts/lttng-baremetal-tests/parse-results.py /tmp/benchmarks/results.csv + - python3 ./scripts/lttng-baremetal-tests/parse-results.py $BENCHMARK_DIR/results.csv - mv ./processed_results.csv ../processed_results_open_enoent.csv - cd - - tar czf coredump.tar.gz coredump diff --git a/lava/baremetal-tests/raw-syscall-getpid.yml b/lava/baremetal-tests/raw-syscall-getpid.yml index 6d6e96d..ef4057f 100644 --- a/lava/baremetal-tests/raw-syscall-getpid.yml +++ b/lava/baremetal-tests/raw-syscall-getpid.yml @@ -10,27 +10,26 @@ install: - python3-pandas - python3-numpy git-repos: - - url: https://github.com/frdeso/syscall-bench-it.git - destination: /tmp/benchmarks - branch: master - url: https://github.com/lttng/lttng-ci destination: ci branch: master steps: - export TMPDIR="/tmp" + - export BENCHMARK_DIR=$(mktemp --directory) - ulimit -c unlimited - mkdir -p coredump - echo "$(pwd)/coredump/core.%e.%p.%h.%t" > /proc/sys/kernel/core_pattern run: steps: - source /root/lttngvenv/activate - - cd /tmp/benchmarks + - git clone https://github.com/frdeso/syscall-bench-it.git $BENCHMARK_DIR + - cd $BENCHMARK_DIR - lava-test-case build-benchmarks --shell "make" - lava-test-case run-benchmarks --shell "./run.sh raw-syscall-getpid sys_getpid" - lava-test-case-attach run-benchmarks "./results.csv" - cd - - cd ci - - python3 ./scripts/lttng-baremetal-tests/parse-results.py /tmp/benchmarks/results.csv + - python3 ./scripts/lttng-baremetal-tests/parse-results.py $BENCHMARK_DIR/results.csv - mv ./processed_results.csv ../processed_results_raw_syscall_getpid.csv - cd - - tar czf coredump.tar.gz coredump diff --git a/lava/baremetal-tests/success-dup-close.yml b/lava/baremetal-tests/success-dup-close.yml index fe83da0..103ea44 100644 --- a/lava/baremetal-tests/success-dup-close.yml +++ b/lava/baremetal-tests/success-dup-close.yml @@ -10,27 +10,26 @@ install: - python3-pandas - python3-numpy git-repos: - - url: https://github.com/frdeso/syscall-bench-it.git - destination: /tmp/benchmarks - branch: master - url: https://github.com/lttng/lttng-ci destination: ci branch: master steps: - export TMPDIR="/tmp" + - export BENCHMARK_DIR=$(mktemp --directory) - ulimit -c unlimited - mkdir -p coredump - echo "$(pwd)/coredump/core.%e.%p.%h.%t" > /proc/sys/kernel/core_pattern run: steps: - source /root/lttngvenv/activate - - cd /tmp/benchmarks + - git clone https://github.com/frdeso/syscall-bench-it.git $BENCHMARK_DIR + - cd $BENCHMARK_DIR - lava-test-case build-benchmarks --shell "make" - lava-test-case run-benchmarks --shell "./run.sh success-dup-close sys_close,sys_dup" - lava-test-case-attach run-benchmarks "./results.csv" - cd - - cd ci - - python3 ./scripts/lttng-baremetal-tests/parse-results.py /tmp/benchmarks/results.csv + - python3 ./scripts/lttng-baremetal-tests/parse-results.py $BENCHMARK_DIR/results.csv - mv ./processed_results.csv ../processed_results_dup_close.csv - cd - - tar czf coredump.tar.gz coredump -- 2.34.1