Commit f30f10c0 authored by jopejoe1's avatar jopejoe1
Browse files

frog: move test into it

parent 0a81759d
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -3,6 +3,7 @@
  stdenv,
  fetchFromGitHub,
  gitUpdater,
  callPackage,
  autoreconfHook,
  bzip2,
  libtar,
@@ -61,6 +62,7 @@ stdenv.mkDerivation (finalAttrs: {

  passthru = {
    updateScript = gitUpdater { rev-prefix = "v"; };
    tests.simple = callPackage ./test.nix { };
  };

  meta = with lib; {
+2 −2
Original line number Diff line number Diff line
{
  runCommand,
  languageMachines,
  frog,
}:

runCommand "frog-test" { } ''
  ${languageMachines.frog}/bin/frog >$out <<EOF
  ${frog}/bin/frog >$out <<EOF
  Dit is een test

  EOF
+1 −1
Original line number Diff line number Diff line
@@ -14,5 +14,5 @@ in
  frog = pkgs.frog;
  frogdata = pkgs.frogdata;

  test = callPackage ./test.nix { };
  test = pkgs.frog.tests.simple;
}