File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,15 @@ variables:
3333prepare: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+
3645build: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+
5880test:uhyve :
5981 stage : test
6082 dependencies :
You can’t perform that action at this time.
0 commit comments