Move staging tests into their own block
This commit is contained in:
parent
69ee493b8f
commit
598b931e9f
|
@ -583,6 +583,7 @@ void BuildActionsTests::testConductingBuild()
|
||||||
logTestSetup();
|
logTestSetup();
|
||||||
|
|
||||||
// conduct build with staging
|
// conduct build with staging
|
||||||
|
{
|
||||||
writeFile(progressFile.native(), progressData); // reset "build-progress.json" so the package is re-considered
|
writeFile(progressFile.native(), progressData); // reset "build-progress.json" so the package is re-considered
|
||||||
runBuildAction("conduct build with staging");
|
runBuildAction("conduct build with staging");
|
||||||
CPPUNIT_ASSERT_EQUAL_MESSAGE("staging needed: success", BuildActionResult::Success, m_buildAction->result);
|
CPPUNIT_ASSERT_EQUAL_MESSAGE("staging needed: success", BuildActionResult::Success, m_buildAction->result);
|
||||||
|
@ -615,6 +616,7 @@ void BuildActionsTests::testConductingBuild()
|
||||||
std::filesystem::is_regular_file("repos/boost-staging/os/x86_64/boost-1.73.0-1-x86_64.pkg.tar.zst.sig"));
|
std::filesystem::is_regular_file("repos/boost-staging/os/x86_64/boost-1.73.0-1-x86_64.pkg.tar.zst.sig"));
|
||||||
CPPUNIT_ASSERT_MESSAGE("staging needed: signature added to repo (1)",
|
CPPUNIT_ASSERT_MESSAGE("staging needed: signature added to repo (1)",
|
||||||
std::filesystem::is_regular_file("repos/boost-staging/os/x86_64/boost-libs-1.73.0-1-x86_64.pkg.tar.zst.sig"));
|
std::filesystem::is_regular_file("repos/boost-staging/os/x86_64/boost-libs-1.73.0-1-x86_64.pkg.tar.zst.sig"));
|
||||||
|
}
|
||||||
|
|
||||||
// define expected errors for subsequent tests
|
// define expected errors for subsequent tests
|
||||||
const auto expectedFooError = "not all source/binary packages exist after the build as expected: foo-1-1.src.tar.gz, foo-1-1-x86_64.pkg.tar.zst"s;
|
const auto expectedFooError = "not all source/binary packages exist after the build as expected: foo-1-1.src.tar.gz, foo-1-1-x86_64.pkg.tar.zst"s;
|
||||||
|
|
Loading…
Reference in New Issue