on iko/ghcjs-patch-master help sign in
tests: add build test of "all" component
commit97a9034d4f869c0150db9c693e5312214dd3d393 authorRodney Lorrimar <rodney.lorrimar@iohk.io> dateWed 30 Jan 2019, 15:25 (8 years ago) parent73f3733
1 file changed+6−1
test/cabal-simple/default.nix+6−1
test/cabal-simple/default.nix+6−1
@@ -33,13 +33,18 @@ in
3333 printf "checking whether executable runs... " >& 2
3434 $exe
3535
36− # fixme: linux-specific
3736 printf "checking that executable is dynamically linked to system libraries... " >& 2
3837 '' + pkgs.lib.optionalString pkgs.stdenv.isLinux ''
3938 ldd $exe | grep libpthread
4039 '' + pkgs.lib.optionalString pkgs.stdenv.isDarwin ''
4140 otool -L $exe |grep .dylib
4241 '' + ''
42+
43+ printf "Checking that \"all\" component has the programs... " >& 2
44+ all_exe="${packages.cabal-simple.components.all}/bin/cabal-simple"
45+ test -f "$all_exe"
46+ echo "$all_exe" >& 2
47+
4348 touch $out
4449 '';
4550