Skip to content

[GRPH-3] port cli tests from bitshares to Peerplays #105

Closed
srpatel19590 wants to merge 1 commit intodevelopfrom
feature/GRPH-3
Closed

[GRPH-3] port cli tests from bitshares to Peerplays #105
srpatel19590 wants to merge 1 commit intodevelopfrom
feature/GRPH-3

Conversation

@srpatel19590
Copy link

Incorporated cli tests from bitshares and related bug fixes and/or enhancements. It requires to add #99 to run chain_test

@oxarbitrage
Copy link

This is the same as #98

@srpatel19590
Copy link
Author

@oxarbitrage GRPH-3 was assigned to me. I've raised this PR as part of it. Moreover, it covers more tests compare to #98

@bobinson
Copy link

bobinson commented Sep 5, 2019

@srpatel19590 - Which are the additional tests that you mentioned ?

@srpatel19590
Copy link
Author

@bobinson Here is the list of additional tests.

  • saving_keys_wallet_test
  • cli_multisig_transaction
  • account_history_pagination
  • cli_confidential_tx_test
  • cli_set_voting_proxy
  • cli_cant_get_signers_from_modified_transaction
  • cli_get_available_transaction_signers
  • cli_get_signed_transaction_signers

@bobinson bobinson self-requested a review September 6, 2019 19:16
Copy link

@bobinson bobinson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix the merge conflicts.

@bobinson bobinson added the Changes Requested Changes Requested via review label Sep 6, 2019
@bobinson bobinson changed the title port cli tests from bitshares to Peerplays port cli tests from bitshares to Peerplays (GRPH-3) Sep 8, 2019
*/
bool load_wallet_file(string wallet_filename = "");

/** Quitting from BitShares wallet.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@srpatel19590 - This should be Peerplays wallet

file(GLOB CLI_SOURCES "cli/*.cpp")
add_executable( cli_test ${CLI_SOURCES} )
if(WIN32)
list(APPEND PLATFORM_SPECIFIC_LIBS ws2_32)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@srpatel19590 "PLATFORM_SPECIFIC_LIBS ws2_32" -- what are these libraries ?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are windows socket lib. Additionally added to PLATFORM_SPECIFIC_LIBS when the target is windows.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@srpatel19590 - provide specific details. ie link, versions etc.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bobinson By compiling with Visual Studio 2017 and 2015 Update 1, the required ws2_32 lib will already available and we just required to link it. So MSVS 2017 and 2015 Update 1 is fine.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can remove this part if we are not using WIN32. Moreover we can use below instruction to compile in windows.
https://github.com/bitshares/bitshares-core/wiki/BUILD_WIN32#windows-development-environment-setup-and-build-instructions

@srpatel19590
Copy link
Author

@bobinson The two tests cli_confidential_tx_test and account_history_pagination will be enabled when #112 and #109 is merged respectively.

@bobinson bobinson changed the title port cli tests from bitshares to Peerplays (GRPH-3) [GRPH-3] port cli tests from bitshares to Peerplays Sep 9, 2019
@bobinson bobinson self-requested a review September 9, 2019 15:03
@oxarbitrage
Copy link

As we merged #98 which similar i think this pull should be closed and open a new one for the test cases we left out of we need them.

Copy link

@bobinson bobinson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please create a fresh PR with the tests.

@srpatel19590
Copy link
Author

@bobinson @oxarbitrage PR is updated with just additional cli tests and its fixes

@bobinson
Copy link

send a clean PR after addressing the dependencies.

@bobinson bobinson closed this Sep 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Changes Requested Changes Requested via review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants