diff options
author | Jacek Galowicz <jacek@galowicz.de> | 2020-04-25 15:50:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-25 15:50:38 +0200 |
commit | 002b553b14280e69f9f6654bc806c16002756b0b (patch) | |
tree | effc64502c21c2f5785a89072ab026891559ebee | |
parent | 4239bf17ec3c9a7583162dee93b2005dab956b77 (diff) | |
parent | a33ce7e4fb6774dfc280b5ccd9451297804bc7c5 (diff) |
Merge pull request #85781 from blitz/spike-test
Add spike integration test to nixosTests
-rw-r--r-- | nixos/tests/all-tests.nix | 1 | ||||
-rw-r--r-- | pkgs/applications/virtualization/spike/default.nix | 6 |
2 files changed, 6 insertions, 1 deletions
diff --git a/nixos/tests/all-tests.nix b/nixos/tests/all-tests.nix index cbfdf3ad9c20e..38e8980b7482d 100644 --- a/nixos/tests/all-tests.nix +++ b/nixos/tests/all-tests.nix @@ -287,6 +287,7 @@ in snapper = handleTest ./snapper.nix {}; solr = handleTest ./solr.nix {}; spacecookie = handleTest ./spacecookie.nix {}; + spike = handleTest ./spike.nix {}; sonarr = handleTest ./sonarr.nix {}; strongswan-swanctl = handleTest ./strongswan-swanctl.nix {}; sudo = handleTest ./sudo.nix {}; diff --git a/pkgs/applications/virtualization/spike/default.nix b/pkgs/applications/virtualization/spike/default.nix index 4dbb7fbe4a522..0f397bc272a9f 100644 --- a/pkgs/applications/virtualization/spike/default.nix +++ b/pkgs/applications/virtualization/spike/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchgit, dtc }: +{ stdenv, fetchgit, dtc, nixosTests }: stdenv.mkDerivation rec { pname = "spike"; @@ -20,6 +20,10 @@ stdenv.mkDerivation rec { doCheck = true; + passthru.tests = { + can-run-hello-world = nixosTests.spike; + }; + meta = with stdenv.lib; { description = "A RISC-V ISA Simulator"; homepage = "https://github.com/riscv/riscv-isa-sim"; |