Skip to content

Commit b62fc17

Browse files
author
mike dupont
committed
mounting test source into different path
fixing up paths for output to avoid paths with "//".
1 parent a60706a commit b62fc17

File tree

2 files changed

+13
-11
lines changed

2 files changed

+13
-11
lines changed

docker-compose.yml

+12-10
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ version: '3'
33
services:
44
mina-local-network:
55
restart: no
6-
#image: o1js-build
6+
#image: o1js-build
77
image: ghcr.io/meta-introspector/o1js/o1js-perf-recording:latest
88
build: .
99
privileged: true
@@ -15,7 +15,7 @@ services:
1515
- SYS_PTRACE
1616
- SYS_ADMIN
1717
command: "bash -x /app/run-all-tests.sh"
18-
18+
1919
mixed-source:
2020
restart: no
2121
image: ghcr.io/meta-introspector/o1js/o1js-perf-recording:latest
@@ -24,16 +24,19 @@ services:
2424
- PROOF_LEVEL=full
2525
- LOG_LEVEL=Debug
2626
working_dir: /app
27+
2728
# mount the source
2829
volumes:
2930
- type: bind
3031
source: "/home/runner/work/o1js/o1js/"
31-
target: "/app/source/"
32+
target: "/opt/introspector/test/"
33+
3234
cap_add:
3335
- SYS_PTRACE
3436
- SYS_ADMIN
37+
3538
# run the test from the mounted source
36-
command: "bash -x /app/source/run-all-tests.sh"
39+
command: "bash -x /opt/introspector/test/run-all-tests.sh"
3740

3841
reporting:
3942
restart: no
@@ -44,7 +47,7 @@ services:
4447
volumes:
4548
- type: bind
4649
source: "data"
47-
target: "/app/perf-reporting/data2/"
50+
target: "/app/perf-reporting/data2/"
4851
environment:
4952
- PROOF_LEVEL=full
5053
- LOG_LEVEL=Debug
@@ -61,17 +64,16 @@ services:
6164
volumes:
6265
- type: bind
6366
source: "data"
64-
target: "/app/perf-reporting/input_data/"
67+
target: "/app/perf-reporting/input_data/"
6568
- type: bind
6669
source: "perf-reporting/output"
67-
target: "/app/perf-reporting/output/"
70+
target: "/app/perf-reporting/output/"
6871
- type: bind
6972
source: "perf-reporting/scripts"
70-
target: "/app/perf-reporting/scripts/"
73+
target: "/app/perf-reporting/scripts/"
7174
environment:
7275
- PROOF_LEVEL=full
7376
- LOG_LEVEL=Debug
7477
- WORKSPACE_DIR=$WORKSPACE_DIR
75-
working_dir: /app
78+
working_dir: /app
7679
command: "bash -x /app/perf-reporting/perf-report.sh"
77-

run-all-tests.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ run_test() {
3131
testname=$1
3232
export MULTIPLE="${testname}"
3333
export perfdata="${testname}.perf.data"
34-
OUTPUT_DIR2="${OUTPUT_DIR}/$testname/"
34+
OUTPUT_DIR2="${OUTPUT_DIR}$testname/"
3535
mkdir -p "${OUTPUT_DIR2}clinic/"
3636
mkdir -p "${OUTPUT_DIR2}log/"
3737
mkdir -p "${OUTPUT_DIR2}coverage/"

0 commit comments

Comments
 (0)