sbt-extras: Add test

This commit is contained in:
Tim Steinbach 2020-11-11 09:31:57 -05:00
parent 6134eafe08
commit b9c505b7bf
No known key found for this signature in database
GPG key ID: 6538CB9266B06F31
3 changed files with 21 additions and 1 deletions

View file

@ -315,6 +315,7 @@ in
samba = handleTest ./samba.nix {};
sanoid = handleTest ./sanoid.nix {};
sbt = handleTest ./sbt.nix {};
sbt-extras = handleTest ./sbt-extras.nix {};
scala = handleTest ./scala.nix {};
sddm = handleTest ./sddm.nix {};
service-runner = handleTest ./service-runner.nix {};

View file

@ -0,0 +1,16 @@
import ./make-test-python.nix ({ pkgs, ...} : {
name = "sbt-extras";
meta = with pkgs.stdenv.lib.maintainers; {
maintainers = [ nequissimus ];
};
machine = { pkgs, ... }:
{
environment.systemPackages = [ pkgs.sbt-extras ];
};
testScript =
''
machine.succeed("(sbt -h)")
'';
})

View file

@ -1,5 +1,6 @@
{ stdenv, fetchFromGitHub, which, curl, makeWrapper, jdk, writeScript
, common-updater-scripts, cacert, git, nixfmt, nix, jq, coreutils, gnused }:
, common-updater-scripts, cacert, git, nixfmt, nix, jq, coreutils, gnused
, nixosTests }:
stdenv.mkDerivation rec {
pname = "sbt-extras";
@ -30,6 +31,8 @@ stdenv.mkDerivation rec {
'';
passthru = {
tests = { inherit (nixosTests) sbt-extras; };
updateScript = writeScript "update.sh" ''
#!${stdenv.shell}
set -xo errexit