Login
Register
All Activity
Questions
Unanswered
Tags
Users
Ask a Question
Welcome to the Developer Q&A for the
MultiChain
blockchain platform.
Please feel free to ask questions about the platform to receive answers from the MultiChain developers or other members of the community.
Related questions
Stress Test - Instructions
Integration test with multichain and teardown
Multichain Benchmarking
How to implement a consensus mechanism with multichain
How to call a method from test.js eg : ("GetInfo") using http request ?
4,157
questions
4,370
answers
5,718
comments
Most popular tags
multichain
streams
assets
stream
transactions
json-rpc
blockchain
wallet
permissions
error
address
raw-transactions
asset
mining
node
api
issue
multichain-explorer
nodes
connect
multichaind
multisig
transaction
smart-filters
metadata
private-key
atomic-exchange
multichain-cli
multichain-web-demo
data
connection
performance
blocks
demo
web
json
database
storage
native-currency
bitcoin
private-blockchain
network
fee
smart-contracts
wallets
signrawtransaction
off-chain
exchange
multiple-nodes
getnewaddress
How to implement a MultiChain test framework
+1
vote
How can I a implement a testing framework for MultiChain? I see that there is a framework in bitcoin and since MultiChain is a fork of bitcoin I would expect there is one in MultiChain (there are even some references in make files).
Has this framework been removed or replaced to some different project or something?
testing
test
asked
May 24, 2017
by
klikooo1
edited
May 25, 2017
by
klikooo1
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
1 Answer
0
votes
We have our own very extensive internal suite of tests, but I'm afraid these aren't yet ready for public consumption, because they include code to manage large networks of server instances and nodes in the cloud.
answered
May 24, 2017
by
MultiChain
Do you have any tips on how I can add such a framework? Right now I'm stuck with compiling a unit test. Right now I just try to compile against almost all build static libraries:
g++ test1.o ../libbitcoin_common.a ../secp256k1/.libs/libsecp256k1.a ../libbitcoin_util.a -I../ -lcryptopp -lcrypto -lboost_thread -lboost_filesystem -lboost_system -lboost_program_options -lpthread ../crypto/libbitcoin_crypto.a ../multichain/libbitcoin_multichain.a ../leveldb/libleveldb.a ../leveldb/libmemenv.a ../libbitcoin_server.a ../.libs/libbitcoinconsensus.a ../libbitcoin_cli.a ../libbitcoin_wallet.a
But this gives me a few undefined references, for example:
../libbitcoin_util.a(libbitcoin_util_a-util.o): In function `GetDataDir(bool)':
/multichain/src/utils/util.cpp:471: undefined reference to `mc_gState'
The test only creates a CKey object and calls MakeNewKey()
I'm afraid we can't provide support in this Q&A forum for people working directly with the MultiChain source code.
Please
log in
or
register
to add a comment.
...