git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #19027 from ericsagnes/doc/installCheck
90e9ad2zimbatm
doc/stdenv.xml+35
@@ -988,6 +988,41 @@ set debug-file-directory ~/.nix-profile/lib/debug
988
988
989</section>
989</section>
990
990
991+<section xml:id="ssec-installCheck-phase"><title>The installCheck phase</title>
992+
993+<para>The installCheck phase checks whether the package was installed
994+correctly by running its test suite against the installed directories.
995+The default <function>installCheck</function> calls <command>make
996+installcheck</command>.</para>
997+
998+<variablelist>
999+ <title>Variables controlling the installCheck phase</title>
1000+
1001+ <varlistentry>
1002+ <term><varname>doInstallCheck</varname></term>
1003+ <listitem><para>If set to a non-empty string, the installCheck phase is
1004+ executed, otherwise it is skipped (default). Thus you should set
1005+
1006+ <programlisting>doInstallCheck = true;</programlisting>
1007+
1008+ in the derivation to enable install checks.</para></listitem>
1009+ </varlistentry>
1010+
1011+ <varlistentry>
1012+ <term><varname>preInstallCheck</varname></term>
1013+ <listitem><para>Hook executed at the start of the installCheck
1014+ phase.</para></listitem>
1015+ </varlistentry>
1016+
1017+ <varlistentry>
1018+ <term><varname>postInstallCheck</varname></term>
1019+ <listitem><para>Hook executed at the end of the installCheck
1020+ phase.</para></listitem>
1021+ </varlistentry>
1022+
1023+</variablelist>
1024+
1025+</section>
991
1026
992<section xml:id="ssec-distribution-phase"><title>The distribution
1027<section xml:id="ssec-distribution-phase"><title>The distribution
993phase</title>
1028phase</title>