message: add test stages
diff: @@ -55,3 +55,39 @@ build:demo:
  paths:
  - rusty-hermit/target/x86_64-unknown-hermit/debug/rusty_demo
  - rusty-hermit/target/x86_64-unknown-hermit/release/rusty_demo
  +
  +test:uhyve:
  + stage: test
  + dependencies:
  + - build:demo
  + image: ${CI_REGISTRY_IMAGE}
  + script:
  + - lscpu
  + - kvm-ok
  + - uhyve -v -c 1 rusty-hermit/target/x86_64-unknown-hermit/debug/rusty_demo
  + - uhyve -v -c 2 rusty-hermit/target/x86_64-unknown-hermit/debug/rusty_demo
  + - uhyve -v -c 1 rusty-hermit/target/x86_64-unknown-hermit/release/rusty_demo
  + - uhyve -v -c 2 rusty-hermit/target/x86_64-unknown-hermit/release/rusty_demo
  + tags:
  + - privileged
  +
  +test:qemu:
  + stage: test
  + dependencies:
  + - build:demo
  + image: ${CI_REGISTRY_IMAGE}
  + script:
  + - lscpu
  + - kvm-ok
  + - cd $CI_BUILDS_DIR
  + - git clone https://github.com/hermitcore/rusty-loader.git loader
  + - cd loader
  + - make
  + - make release=1
  + - cd ..
  + - qemu-system-x86_64 -display none -smp 1 -m 64M -serial stdio -kernel loader/target/x86_64-unknown-hermit-loader/debug/rusty-loader -initrd $CI_BUILDS_DIR/rusty-hermit/target/x86_64-unknown-hermit/debug/rusty_demo -cpu host -enable-kvm
  + - qemu-system-x86_64 -display none -smp 2 -m 64M -serial stdio -kernel loader/target/x86_64-unknown-hermit-loader/debug/rusty-loader -initrd $CI_BUILDS_DIR/rusty-hermit/target/x86_64-unknown-hermit/debug/rusty_demo -cpu host -enable-kvm
  + - qemu-system-x86_64 -display none -smp 1 -m 64M -serial stdio -kernel loader/target/x86_64-unknown-hermit-loader/release/rusty-loader -initrd $CI_BUILDS_DIR/rusty-hermit/target/x86_64-unknown-hermit/release/rusty_demo -cpu host -enable-kvm
  + - qemu-system-x86_64 -display none -smp 2 -m 64M -serial stdio -kernel loader/target/x86_64-unknown-hermit-loader/release/rusty-loader -initrd $CI_BUILDS_DIR/rusty-hermit/target/x86_64-unknown-hermit/release/rusty_demo -cpu host -enable-kvm
  + tags:
  + - privileged
  