Skip to content

Commit

Permalink
add test to create a trace file
Browse files Browse the repository at this point in the history
  • Loading branch information
stlankes committed Feb 3, 2021
1 parent 0d6414a commit ed114a5
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,15 @@ variables:
prepare:docker:
<<: *prepare_docker

build:instrument:
stage: build
image: ${CI_REGISTRY_IMAGE}
script:
- RUSTFLAGS="-Z instrument-mcount" cargo build -p rusty_demo --release --features=instrument
artifacts:
paths:
- target/x86_64-unknown-hermit/release/matrix_multiplcation

build:demo:
stage: build
image: ${CI_REGISTRY_IMAGE}
Expand All @@ -55,6 +64,19 @@ build:httpd:
paths:
- target/x86_64-unknown-hermit/release/httpd

test:instrument:
stage: test
dependencies:
- build:instrument
image: ${CI_REGISTRY_IMAGE}
script:
- lscpu
- kvm-ok
- cargo install uhyve
- uhyve -v -c 1 target/x86_64-unknown-hermit/release/matrix_multiplcation
tags:
- privileged

test:uhyve:
stage: test
dependencies:
Expand Down

0 comments on commit ed114a5

Please sign in to comment.