1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00

NIX: Copy collected test results into the output.

This commit is contained in:
Petr Rockai 2013-05-27 04:27:26 +02:00 committed by Petr Rockai
parent f6350b4568
commit 4fdcb27b3e

View File

@ -17,6 +17,9 @@ let
sha256 = "0ycdh5mb7p5ll76mqk0p6gpnjskvxxgh3a3bfr1crh94nvpwhp4z"; }}
'';
postBuild = ''
cp -R /tmp/test-results $out/test-results && \
echo "report tests $out/test-results " >> $out/nix-support/hydra-build-products || \
true
cp -R /tmp/lcov $out/coverage && \
echo "report coverage $out/coverage" >> $out/nix-support/hydra-build-products || \
true # not really fatal, although kinda disappointing
@ -145,6 +148,7 @@ let
echo "make lcov-reset \\";
echo "dmsetup targets\\";
echo "make check || touch \$out/nix-support/failed \\"
echo "cp -R test/results /tmp/test-results"
echo "make lcov && cp -R lcov_reports /tmp/lcov") >> source.inc
sed -e "s,\(device_mapper_version\) [0-9.]*$,\1 $version_dm," \
-e "s,^\(Version:[^0-9%]*\)[0-9.]*$,\1 $version," \