Replace "make check" with "make installcheck"
Ensuring that the tests work from the build tree requires a growing number of nasty hacks. The tests also don't verify that the installed Nix actually works. Thus, the tests now require "make install" to have been run.
This commit is contained in:
parent
4b23900ff1
commit
ea402a255f
8 changed files with 25 additions and 46 deletions
|
@ -7,7 +7,7 @@ set -x
|
|||
nix-build --log-type escapes -vv dependencies.nix 2> $TEST_ROOT/log.esc
|
||||
|
||||
# Convert it to an XML representation.
|
||||
$TOP/src/nix-log2xml/nix-log2xml < $TEST_ROOT/log.esc > $TEST_ROOT/log.xml
|
||||
nix-log2xml < $TEST_ROOT/log.esc > $TEST_ROOT/log.xml
|
||||
|
||||
# Is this well-formed XML?
|
||||
if test "$xmllint" != "false"; then
|
||||
|
@ -16,7 +16,7 @@ fi
|
|||
|
||||
# Convert to HTML.
|
||||
if test "$xsltproc" != "false"; then
|
||||
(cd $TOP/src/nix-log2xml && $xsltproc mark-errors.xsl - | $xsltproc log2html.xsl -) < $TEST_ROOT/log.xml > $TEST_ROOT/log.html
|
||||
(cd $datadir/nix/log2html && $xsltproc mark-errors.xsl - | $xsltproc log2html.xsl -) < $TEST_ROOT/log.xml > $TEST_ROOT/log.html
|
||||
# Ideally we would check that the generated HTML is valid...
|
||||
|
||||
# A few checks...
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue