Merge pull request #85781 from blitz/spike-test

Add spike integration test to nixosTests
This commit is contained in:
Jacek Galowicz 2020-04-25 15:50:38 +02:00 committed by GitHub
commit 002b553b14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -287,6 +287,7 @@ in
snapper = handleTest ./snapper.nix {}; snapper = handleTest ./snapper.nix {};
solr = handleTest ./solr.nix {}; solr = handleTest ./solr.nix {};
spacecookie = handleTest ./spacecookie.nix {}; spacecookie = handleTest ./spacecookie.nix {};
spike = handleTest ./spike.nix {};
sonarr = handleTest ./sonarr.nix {}; sonarr = handleTest ./sonarr.nix {};
strongswan-swanctl = handleTest ./strongswan-swanctl.nix {}; strongswan-swanctl = handleTest ./strongswan-swanctl.nix {};
sudo = handleTest ./sudo.nix {}; sudo = handleTest ./sudo.nix {};

View File

@ -1,4 +1,4 @@
{ stdenv, fetchgit, dtc }: { stdenv, fetchgit, dtc, nixosTests }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "spike"; pname = "spike";
@ -20,6 +20,10 @@ stdenv.mkDerivation rec {
doCheck = true; doCheck = true;
passthru.tests = {
can-run-hello-world = nixosTests.spike;
};
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "A RISC-V ISA Simulator"; description = "A RISC-V ISA Simulator";
homepage = "https://github.com/riscv/riscv-isa-sim"; homepage = "https://github.com/riscv/riscv-isa-sim";