diff options
author | Klaus Aehlig <klaus.aehlig@huawei.com> | 2022-02-22 17:03:21 +0100 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2022-02-22 17:03:21 +0100 |
commit | 619def44c1cca9f3cdf63544d5f24f2c7a7d9b77 (patch) | |
tree | 01868de723cb82c86842f33743fa7b14e24c1fa3 /test/buildtool/graph_traverser/graph_traverser_local.test.cpp | |
download | justbuild-619def44c1cca9f3cdf63544d5f24f2c7a7d9b77.tar.gz |
Initial self-hosting commit
This is the initial version of our tool that is able to
build itself. In can be bootstrapped by
./bin/bootstrap.py
Co-authored-by: Oliver Reiche <oliver.reiche@huawei.com>
Co-authored-by: Victor Moreno <victor.moreno1@huawei.com>
Diffstat (limited to 'test/buildtool/graph_traverser/graph_traverser_local.test.cpp')
-rw-r--r-- | test/buildtool/graph_traverser/graph_traverser_local.test.cpp | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/test/buildtool/graph_traverser/graph_traverser_local.test.cpp b/test/buildtool/graph_traverser/graph_traverser_local.test.cpp new file mode 100644 index 00000000..86317625 --- /dev/null +++ b/test/buildtool/graph_traverser/graph_traverser_local.test.cpp @@ -0,0 +1,57 @@ +#include "catch2/catch.hpp" +#include "test/buildtool/graph_traverser/graph_traverser.test.hpp" +#include "test/utils/hermeticity/local.hpp" + +TEST_CASE_METHOD(HermeticLocalTestFixture, + "Local: Output created when entry point is local artifact", + "[graph_traverser]") { + TestCopyLocalFile(true); +} + +TEST_CASE_METHOD(HermeticLocalTestFixture, + "Local: Output created and contents are correct", + "[graph_traverser]") { + TestHelloWorldCopyMessage(true); +} + +TEST_CASE_METHOD(HermeticLocalTestFixture, + "Local: Actions are not re-run", + "[graph_traverser]") { + TestSequencePrinterBuildLibraryOnly(true); +} + +TEST_CASE_METHOD(HermeticLocalTestFixture, + "Local: KNOWN artifact", + "[graph_traverser]") { + TestHelloWorldWithKnownSource(true); +} + +TEST_CASE_METHOD(HermeticLocalTestFixture, + "Local: Blobs uploaded and correctly used", + "[graph_traverser]") { + TestBlobsUploadedAndUsed(true); +} + +TEST_CASE_METHOD(HermeticLocalTestFixture, + "Local: Environment variables are set and used", + "[graph_traverser]") { + TestEnvironmentVariablesSetAndUsed(true); +} + +TEST_CASE_METHOD(HermeticLocalTestFixture, + "Local: Trees correctly used", + "[graph_traverser]") { + TestTreesUsed(true); +} + +TEST_CASE_METHOD(HermeticLocalTestFixture, + "Local: Nested trees correctly used", + "[graph_traverser]") { + TestNestedTreesUsed(true); +} + +TEST_CASE_METHOD(HermeticLocalTestFixture, + "Local: Detect flaky actions", + "[graph_traverser]") { + TestFlakyHelloWorldDetected(true); +} |