Skip to content

Commit

Permalink
Merge pull request EOSIO#111 from enumivo/staging
Browse files Browse the repository at this point in the history
rename node test scripts
  • Loading branch information
Enumivo authored May 16, 2018
2 parents be207c6 + 5cef8c9 commit d6e5248
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,19 @@ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/distributed-transactions-remote-test.
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/sample-cluster-map.json ${CMAKE_CURRENT_BINARY_DIR}/sample-cluster-map.json COPYONLY)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/restart-scenarios-test.py ${CMAKE_CURRENT_BINARY_DIR}/restart-scenarios-test.py COPYONLY)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/testUtils.py ${CMAKE_CURRENT_BINARY_DIR}/testUtils.py COPYONLY)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/nodeos_run_test.py ${CMAKE_CURRENT_BINARY_DIR}/nodeos_run_test.py COPYONLY)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/nodeos_run_remote_test.py ${CMAKE_CURRENT_BINARY_DIR}/nodeos_run_remote_test.py COPYONLY)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/enunode_run_test.py ${CMAKE_CURRENT_BINARY_DIR}/enunode_run_test.py COPYONLY)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/enunode_run_remote_test.py ${CMAKE_CURRENT_BINARY_DIR}/enunode_run_remote_test.py COPYONLY)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/consensus-validation-malicious-producers.py ${CMAKE_CURRENT_BINARY_DIR}/consensus-validation-malicious-producers.py COPYONLY)

#To run plugin_test with all log from blockchain displayed, put --verbose after --, i.e. plugin_test -- --verbose
add_test(NAME plugin_test COMMAND plugin_test --report_level=detailed --color_output)

add_test(NAME nodeos_run_test COMMAND tests/nodeos_run_test.py -v --dump-error-detail WORKING_DIRECTORY ${CMAKE_BINARY_DIR})
add_test(NAME nodeos_run_remote_test COMMAND tests/nodeos_run_remote_test.py -v --dump-error-detail WORKING_DIRECTORY ${CMAKE_BINARY_DIR})
add_test(NAME enunode_run_test COMMAND tests/enunode_run_test.py -v --dump-error-detail WORKING_DIRECTORY ${CMAKE_BINARY_DIR})
add_test(NAME enunode_run_remote_test COMMAND tests/enunode_run_remote_test.py -v --dump-error-detail WORKING_DIRECTORY ${CMAKE_BINARY_DIR})

# TODO removed on slim: add_test(NAME p2p_dawn515_test COMMAND tests/p2p_tests/dawn_515/test.sh WORKING_DIRECTORY ${CMAKE_BINARY_DIR})
#if(BUILD_MONGO_DB_PLUGIN)
# add_test(NAME nodeos_run_test-mongodb COMMAND tests/nodeos_run_test.py --mongodb -v --dump-error-detail WORKING_DIRECTORY ${CMAKE_BINARY_DIR})
# add_test(NAME enunode_run_test-mongodb COMMAND tests/enunode_run_test.py --mongodb -v --dump-error-detail WORKING_DIRECTORY ${CMAKE_BINARY_DIR})
#endif()

# TODO: Tests removed until working again on master.
Expand Down Expand Up @@ -75,8 +75,8 @@ if(ENABLE_COVERAGE_TESTING)
endif() # NOT GENHTML_PATH

# no spaces allowed within tests list
set(ctest_tests 'plugin_test|p2p_dawn515_test|nodeos_run_test|distributed-transactions-test|restart-scenarios-test_resync')
set(ctest_exclude_tests 'nodeos_run_remote_test|nodeos_run_test-mongodb|distributed-transactions-remote-test|restart-scenarios-test_replay')
set(ctest_tests 'plugin_test|p2p_dawn515_test|enunode_run_test|distributed-transactions-test|restart-scenarios-test_resync')
set(ctest_exclude_tests 'enunode_run_remote_test|enunode_run_test-mongodb|distributed-transactions-remote-test|restart-scenarios-test_replay')

# Setup target
add_custom_target(${Coverage_NAME}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def errorExit(msg="", errorCode=1):
prodCount=1 # producers per producer node
pnodes=1
total_nodes=pnodes
actualTest="tests/nodeos_run_test.py"
actualTest="tests/enunode_run_test.py"
testSuccessful=False

cluster=testUtils.Cluster()
Expand Down
2 changes: 1 addition & 1 deletion tests/nodeos_run_test.py → tests/enunode_run_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import re

###############################################################
# nodeos_run_test
# enunode_run_test
# --dump-error-details <Upon error print etc/eosio/node_*/config.ini and var/lib/node_*/stderr.log to stdout>
# --keep-logs <Don't delete var/lib/node_* folders upon test completion>
###############################################################
Expand Down

0 comments on commit d6e5248

Please sign in to comment.