summary refs log blame commit diff
path: root/pkgs/development/compilers/openjdk/jre_minimal_test1.nix
blob: eebd11fb2fdf6a1076053070c54e3ad2e0bc6f0e (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16















                                             
{ runCommand
, callPackage
, jdk
, jre_minimal
}:

let
  hello = callPackage tests/hello.nix {
    jdk = jdk;
    jre = jre_minimal;
  };
in
  runCommand "test" {} ''
    ${hello}/bin/hello | grep "Hello, world!"
    touch $out
  ''