Disable rapidcheck tests in the coverage run

https://hydra.nixos.org/build/233688539
This commit is contained in:
Eelco Dolstra 2023-09-19 16:04:00 +02:00
parent c8afa01bc2
commit 126e2645f2
6 changed files with 22 additions and 0 deletions

View file

@ -588,6 +588,8 @@
lcovFilter = [ "*/boost/*" "*-tab.*" ]; lcovFilter = [ "*/boost/*" "*-tab.*" ];
hardeningDisable = ["fortify"]; hardeningDisable = ["fortify"];
NIX_CFLAGS_COMPILE = "-DCOVERAGE=1";
}; };
# API docs for Nix's unstable internal C++ interfaces. # API docs for Nix's unstable internal C++ interfaces.

View file

@ -18,6 +18,8 @@ TEST_F(DerivedPathExpressionTest, force_init)
{ {
} }
#ifndef COVERAGE
RC_GTEST_FIXTURE_PROP( RC_GTEST_FIXTURE_PROP(
DerivedPathExpressionTest, DerivedPathExpressionTest,
prop_opaque_path_round_trip, prop_opaque_path_round_trip,
@ -61,4 +63,6 @@ RC_GTEST_FIXTURE_PROP(
RC_ASSERT(SingleDerivedPath { b } == d); RC_ASSERT(SingleDerivedPath { b } == d);
} }
#endif
} /* namespace nix */ } /* namespace nix */

View file

@ -147,6 +147,8 @@ Gen<NixStringContextElem> Arbitrary<NixStringContextElem>::arbitrary()
namespace nix { namespace nix {
#ifndef COVERAGE
RC_GTEST_PROP( RC_GTEST_PROP(
NixStringContextElemTest, NixStringContextElemTest,
prop_round_rip, prop_round_rip,
@ -155,4 +157,6 @@ RC_GTEST_PROP(
RC_ASSERT(o == NixStringContextElem::parse(o.to_string())); RC_ASSERT(o == NixStringContextElem::parse(o.to_string()));
} }
#endif
} }

View file

@ -130,6 +130,8 @@ TEST_F(DerivedPathTest, built_built_xp) {
MissingExperimentalFeature); MissingExperimentalFeature);
} }
#ifndef COVERAGE
RC_GTEST_FIXTURE_PROP( RC_GTEST_FIXTURE_PROP(
DerivedPathTest, DerivedPathTest,
prop_legacy_round_rip, prop_legacy_round_rip,
@ -146,4 +148,6 @@ RC_GTEST_FIXTURE_PROP(
RC_ASSERT(o == DerivedPath::parse(*store, o.to_string(*store))); RC_ASSERT(o == DerivedPath::parse(*store, o.to_string(*store)));
} }
#endif
} }

View file

@ -224,6 +224,8 @@ Gen<OutputsSpec> Arbitrary<OutputsSpec>::arbitrary()
namespace nix { namespace nix {
#ifndef COVERAGE
RC_GTEST_PROP( RC_GTEST_PROP(
OutputsSpec, OutputsSpec,
prop_round_rip, prop_round_rip,
@ -232,4 +234,6 @@ RC_GTEST_PROP(
RC_ASSERT(o == OutputsSpec::parse(o.to_string())); RC_ASSERT(o == OutputsSpec::parse(o.to_string()));
} }
#endif
} }

View file

@ -134,6 +134,8 @@ Gen<StorePath> Arbitrary<StorePath>::arbitrary()
namespace nix { namespace nix {
#ifndef COVERAGE
RC_GTEST_FIXTURE_PROP( RC_GTEST_FIXTURE_PROP(
StorePathTest, StorePathTest,
prop_regex_accept, prop_regex_accept,
@ -150,4 +152,6 @@ RC_GTEST_FIXTURE_PROP(
RC_ASSERT(p == store->parseStorePath(store->printStorePath(p))); RC_ASSERT(p == store->parseStorePath(store->printStorePath(p)));
} }
#endif
} }