Skip to content

Commit ed114a5

Browse files
committed
add test to create a trace file
1 parent 0d6414a commit ed114a5

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.gitlab-ci.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,15 @@ variables:
3333
prepare:docker:
3434
<<: *prepare_docker
3535

36+
build:instrument:
37+
stage: build
38+
image: ${CI_REGISTRY_IMAGE}
39+
script:
40+
- RUSTFLAGS="-Z instrument-mcount" cargo build -p rusty_demo --release --features=instrument
41+
artifacts:
42+
paths:
43+
- target/x86_64-unknown-hermit/release/matrix_multiplcation
44+
3645
build:demo:
3746
stage: build
3847
image: ${CI_REGISTRY_IMAGE}
@@ -55,6 +64,19 @@ build:httpd:
5564
paths:
5665
- target/x86_64-unknown-hermit/release/httpd
5766

67+
test:instrument:
68+
stage: test
69+
dependencies:
70+
- build:instrument
71+
image: ${CI_REGISTRY_IMAGE}
72+
script:
73+
- lscpu
74+
- kvm-ok
75+
- cargo install uhyve
76+
- uhyve -v -c 1 target/x86_64-unknown-hermit/release/matrix_multiplcation
77+
tags:
78+
- privileged
79+
5880
test:uhyve:
5981
stage: test
6082
dependencies:

0 commit comments

Comments
 (0)