From ed114a5d71314c753a85b6942f04e842c9c13ada Mon Sep 17 00:00:00 2001 From: Stefan Lankes Date: Wed, 3 Feb 2021 22:15:26 +0100 Subject: [PATCH] add test to create a trace file --- .gitlab-ci.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 89c9fe501..98bc3698a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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} @@ -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: