on iko/ghcjs-patch-master help sign in
tests: add build test of "all" component
97a9034Rodney Lorrimar
test/cabal-simple/default.nix+6−1
@@ -33,13 +33,18 @@ in
33 printf "checking whether executable runs... " >& 2
33 printf "checking whether executable runs... " >& 2
34 $exe
34 $exe
35
35
36− # fixme: linux-specific
37 printf "checking that executable is dynamically linked to system libraries... " >& 2
36 printf "checking that executable is dynamically linked to system libraries... " >& 2
38 '' + pkgs.lib.optionalString pkgs.stdenv.isLinux ''
37 '' + pkgs.lib.optionalString pkgs.stdenv.isLinux ''
39 ldd $exe | grep libpthread
38 ldd $exe | grep libpthread
40 '' + pkgs.lib.optionalString pkgs.stdenv.isDarwin ''
39 '' + pkgs.lib.optionalString pkgs.stdenv.isDarwin ''
41 otool -L $exe |grep .dylib
40 otool -L $exe |grep .dylib
42 '' + ''
41 '' + ''
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+
43 touch $out
48 touch $out
44 '';
49 '';
45
50