mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
NIX: Run system-wide tests separately, with RPMs installed.
This commit is contained in:
parent
d567d0d307
commit
9c8db4e33f
21
release.nix
21
release.nix
@ -19,12 +19,21 @@ let
|
|||||||
rpm -Uv ${pkgs.fetchurl {
|
rpm -Uv ${pkgs.fetchurl {
|
||||||
url="ftp://ftp.isu.edu.tw/pub/Linux/Fedora/linux/updates/16/i386/lcov-1.9-2.fc16.noarch.rpm";
|
url="ftp://ftp.isu.edu.tw/pub/Linux/Fedora/linux/updates/16/i386/lcov-1.9-2.fc16.noarch.rpm";
|
||||||
sha256 = "0ycdh5mb7p5ll76mqk0p6gpnjskvxxgh3a3bfr1crh94nvpwhp4z"; }}
|
sha256 = "0ycdh5mb7p5ll76mqk0p6gpnjskvxxgh3a3bfr1crh94nvpwhp4z"; }}
|
||||||
|
dmesg -n 1 # avoid spilling dmesg into the main log, we capture it in harness
|
||||||
'';
|
'';
|
||||||
postBuild = ''
|
postBuild = ''
|
||||||
cp -R /tmp/test-results $out/test-results && \
|
cd `cat /tmp/build-location`
|
||||||
|
mv test/results/list test/results/list-rpm
|
||||||
|
rpm -Uvh /tmp/rpmout/RPMS/*/*.rpm # */
|
||||||
|
(/usr/lib/systemd/systemd-udevd || /usr/lib/udev/udevd || find / -name \*udevd) &
|
||||||
|
make check_system QUIET=1 T=${T} || touch $out/nix-support/failed
|
||||||
|
mv test/results/list test/results/list-system
|
||||||
|
cat test/results/list-* > test/results/list
|
||||||
|
cp -R test/results $out/test-results && \
|
||||||
echo "report tests $out/test-results" >> $out/nix-support/hydra-build-products || \
|
echo "report tests $out/test-results" >> $out/nix-support/hydra-build-products || \
|
||||||
true
|
true
|
||||||
cp -R /tmp/lcov $out/coverage && \
|
make lcov || true
|
||||||
|
cp -R lcov_reports $out/coverage && \
|
||||||
echo "report coverage $out/coverage" >> $out/nix-support/hydra-build-products || \
|
echo "report coverage $out/coverage" >> $out/nix-support/hydra-build-products || \
|
||||||
true # not really fatal, although kinda disappointing
|
true # not really fatal, although kinda disappointing
|
||||||
'';
|
'';
|
||||||
@ -169,11 +178,9 @@ let
|
|||||||
echo "%define check_commands \\";
|
echo "%define check_commands \\";
|
||||||
echo "make lcov-reset \\";
|
echo "make lcov-reset \\";
|
||||||
echo "dmsetup targets\\";
|
echo "dmsetup targets\\";
|
||||||
echo "dmesg --console-level debug || dmesg 8 || true\\";
|
echo "make check QUIET=1 T=${T} || touch \$out/nix-support/failed \\"
|
||||||
echo "(/usr/lib/systemd/systemd-udevd || /usr/lib/udev/udevd || find / -name \*udevd) & \\";
|
echo "pwd > /tmp/build-location \\"
|
||||||
echo "make check T=${T} || touch \$out/nix-support/failed \\"
|
echo "touch rpm-no-clean") >> source.inc
|
||||||
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," \
|
sed -e "s,\(device_mapper_version\) [0-9.]*$,\1 $version_dm," \
|
||||||
-e "s,^\(Version:[^0-9%]*\)[0-9.]*$,\1 $version," \
|
-e "s,^\(Version:[^0-9%]*\)[0-9.]*$,\1 $version," \
|
||||||
-e "s,^\(Release:[^0-9%]*\)[0-9.]\+,\1 0.HYDRA," \
|
-e "s,^\(Release:[^0-9%]*\)[0-9.]\+,\1 0.HYDRA," \
|
||||||
|
Loading…
Reference in New Issue
Block a user