Skip to content

Commit

Permalink
add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
olehnikolaiev committed Feb 22, 2024
1 parent 2f26bd4 commit f4d1924
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ COMMON_SRC = SGXException.cpp ExitHandler.cpp zmq_src/ZMQClient.cpp zmq_src/RspM
SGXWalletServer.cpp SGXRegistrationServer.cpp CSRManagerServer.cpp BLSCrypto.cpp CryptoTools.cpp \
DKGCrypto.cpp ServerInit.cpp BLSPrivateKeyShareSGX.cpp LevelDB.cpp ServerDataChecker.cpp SEKManager.cpp \
third_party/intel/sgx_stub.c third_party/intel/sgx_detect_linux.c third_party/intel/create_enclave.c \
third_party/intel/oc_alloc.c ECDSAImpl.c sgxwallet.c SGXInfoServer.cpp ECDSACrypto.cpp
third_party/intel/oc_alloc.c ECDSAImpl.c TestUtils.cpp sgxwallet.c SGXInfoServer.cpp ECDSACrypto.cpp
COMMON_ENCLAVE_SRC = secure_enclave_u.c secure_enclave_u.h

sgxwallet_SOURCES = sgxwall.cpp $(COMMON_SRC)
Expand Down Expand Up @@ -112,7 +112,7 @@ sgxwallet_LDADD=-l$(SGX_URTS_LIB) -l$(SGX_UAE_SERVICE_LIB) -LlibBLS/deps/deps_in
-ljsonrpccpp-stub -ljsonrpccpp-server -ljsonrpccpp-client -ljsonrpccpp-common -ljsoncpp -lmicrohttpd \
-lboost_system -lboost_thread -lgnutls -lgcrypt -lidn2 -lcurl -lssl -lcrypto -lz -lpthread -lstdc++fs

testw_SOURCES=testw.cpp $(COMMON_SRC) TestUtils.cpp
testw_SOURCES=testw.cpp $(COMMON_SRC)
nodist_testw_SOURCES=${nodist_sgxwallet_SOURCES}
EXTRA_testw_DEPENDENCIES=${EXTRA_sgxwallet_DEPENDENCIES}
testw_LDADD=${sgxwallet_LDADD}
Expand Down
2 changes: 1 addition & 1 deletion TestUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -823,7 +823,7 @@ void TestUtils::doDKGV2(StubClient &c, int n, int t,
}

for (size_t i = 0; i < n; ++i) {
REQUIRE( allPubKeysFromServer[i] == pubKeyShares[i + 1] );
CHECK_STATE( allPubKeysFromServer[i] == pubKeyShares[i + 1] );
}

// create pub key
Expand Down

0 comments on commit f4d1924

Please sign in to comment.