Skip to content

Commit 81953dd

Browse files
authored
Added flag to enable proofs tests (#142)
Signed-off-by: artyom-yurin <[email protected]>
1 parent 489e636 commit 81953dd

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ print("CXX flags: ${CMAKE_CXX_FLAGS}")
4949
print("Using CMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE}")
5050

5151
option(TESTING "Build tests" ON)
52+
option(TESTING_PROOFS "Build proofs tests" OFF)
5253
option(CLANG_FORMAT "Enable clang-format target" ON)
5354
option(CLANG_TIDY "Enable clang-tidy checks during compilation" OFF)
5455
option(COVERAGE "Enable generation of coverage info" OFF)

test/core/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@ add_subdirectory(codec)
1111
add_subdirectory(common)
1212
add_subdirectory(crypto)
1313
add_subdirectory(fslock)
14-
add_subdirectory(proofs)
14+
15+
if (TESTING_PROOFS)
16+
add_subdirectory(proofs)
17+
endif ()
18+
1519
add_subdirectory(power)
1620
add_subdirectory(primitives)
1721
add_subdirectory(storage)

test/core/proofs/proofs_test.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,12 @@ class ProofsTest : public test::BaseFS_Test {
4040
ProofsTest() : test::BaseFS_Test("fc_proofs_test") {}
4141
};
4242

43-
// TODO(artyom-yurin): [FIL-164]
4443
/**
45-
* disabled because it takes too long
4644
* @given data of sector
4745
* @when want to seal data and proof post
4846
* @then success
4947
*/
50-
TEST_F(ProofsTest, DISABLED_Lifecycle) {
48+
TEST_F(ProofsTest, Lifecycle) {
5149
uint64_t challenge_count = 2;
5250
ActorId miner_id = 42;
5351
Randomness randomness{{9, 9, 9}};

0 commit comments

Comments
 (0)