From 3212a451e19856f2c47477789b971421ca8fc47a Mon Sep 17 00:00:00 2001 From: UENISHI Kota Date: Tue, 19 Dec 2017 11:40:39 +0900 Subject: [PATCH 1/2] Refactor test directory structure to align Chainer's test dir --- .../{ => chainermn_tests/communicator_tests}/test_communicator.py | 0 .../communicator_tests}/test_node_aware_communicator_base.py | 0 tests/{ => chainermn_tests/datasets_tests}/test_dataset.py | 0 tests/{ => chainermn_tests}/datasets_tests/test_empty_dataset.py | 0 tests/{ => chainermn_tests/datasets_tests}/test_mnist.py | 0 .../functions_tests/test_collective_communication.py | 0 .../functions_tests/test_point_to_point_communication.py | 0 .../{ => chainermn_tests}/functions_tests/test_pseudo_connect.py | 0 .../{ => chainermn_tests}/links_tests/test_batch_normalization.py | 0 .../optimizer_tests/test_multi_node_optimizer.py | 0 tests/{ => chainermn_tests}/test_link.py | 0 .../training_tests/extensions_tests}/test_checkpoint.py | 0 12 files changed, 0 insertions(+), 0 deletions(-) rename tests/{ => chainermn_tests/communicator_tests}/test_communicator.py (100%) rename tests/{ => chainermn_tests/communicator_tests}/test_node_aware_communicator_base.py (100%) rename tests/{ => chainermn_tests/datasets_tests}/test_dataset.py (100%) rename tests/{ => chainermn_tests}/datasets_tests/test_empty_dataset.py (100%) rename tests/{ => chainermn_tests/datasets_tests}/test_mnist.py (100%) rename tests/{ => chainermn_tests}/functions_tests/test_collective_communication.py (100%) rename tests/{ => chainermn_tests}/functions_tests/test_point_to_point_communication.py (100%) rename tests/{ => chainermn_tests}/functions_tests/test_pseudo_connect.py (100%) rename tests/{ => chainermn_tests}/links_tests/test_batch_normalization.py (100%) rename tests/{ => chainermn_tests}/optimizer_tests/test_multi_node_optimizer.py (100%) rename tests/{ => chainermn_tests}/test_link.py (100%) rename tests/{ => chainermn_tests/training_tests/extensions_tests}/test_checkpoint.py (100%) diff --git a/tests/test_communicator.py b/tests/chainermn_tests/communicator_tests/test_communicator.py similarity index 100% rename from tests/test_communicator.py rename to tests/chainermn_tests/communicator_tests/test_communicator.py diff --git a/tests/test_node_aware_communicator_base.py b/tests/chainermn_tests/communicator_tests/test_node_aware_communicator_base.py similarity index 100% rename from tests/test_node_aware_communicator_base.py rename to tests/chainermn_tests/communicator_tests/test_node_aware_communicator_base.py diff --git a/tests/test_dataset.py b/tests/chainermn_tests/datasets_tests/test_dataset.py similarity index 100% rename from tests/test_dataset.py rename to tests/chainermn_tests/datasets_tests/test_dataset.py diff --git a/tests/datasets_tests/test_empty_dataset.py b/tests/chainermn_tests/datasets_tests/test_empty_dataset.py similarity index 100% rename from tests/datasets_tests/test_empty_dataset.py rename to tests/chainermn_tests/datasets_tests/test_empty_dataset.py diff --git a/tests/test_mnist.py b/tests/chainermn_tests/datasets_tests/test_mnist.py similarity index 100% rename from tests/test_mnist.py rename to tests/chainermn_tests/datasets_tests/test_mnist.py diff --git a/tests/functions_tests/test_collective_communication.py b/tests/chainermn_tests/functions_tests/test_collective_communication.py similarity index 100% rename from tests/functions_tests/test_collective_communication.py rename to tests/chainermn_tests/functions_tests/test_collective_communication.py diff --git a/tests/functions_tests/test_point_to_point_communication.py b/tests/chainermn_tests/functions_tests/test_point_to_point_communication.py similarity index 100% rename from tests/functions_tests/test_point_to_point_communication.py rename to tests/chainermn_tests/functions_tests/test_point_to_point_communication.py diff --git a/tests/functions_tests/test_pseudo_connect.py b/tests/chainermn_tests/functions_tests/test_pseudo_connect.py similarity index 100% rename from tests/functions_tests/test_pseudo_connect.py rename to tests/chainermn_tests/functions_tests/test_pseudo_connect.py diff --git a/tests/links_tests/test_batch_normalization.py b/tests/chainermn_tests/links_tests/test_batch_normalization.py similarity index 100% rename from tests/links_tests/test_batch_normalization.py rename to tests/chainermn_tests/links_tests/test_batch_normalization.py diff --git a/tests/optimizer_tests/test_multi_node_optimizer.py b/tests/chainermn_tests/optimizer_tests/test_multi_node_optimizer.py similarity index 100% rename from tests/optimizer_tests/test_multi_node_optimizer.py rename to tests/chainermn_tests/optimizer_tests/test_multi_node_optimizer.py diff --git a/tests/test_link.py b/tests/chainermn_tests/test_link.py similarity index 100% rename from tests/test_link.py rename to tests/chainermn_tests/test_link.py diff --git a/tests/test_checkpoint.py b/tests/chainermn_tests/training_tests/extensions_tests/test_checkpoint.py similarity index 100% rename from tests/test_checkpoint.py rename to tests/chainermn_tests/training_tests/extensions_tests/test_checkpoint.py From b5fd39f3b80f9e1c13e08e0c993a0cc477679b92 Mon Sep 17 00:00:00 2001 From: UENISHI Kota Date: Tue, 19 Dec 2017 19:57:29 +0900 Subject: [PATCH 2/2] Update to the rule that test directory tree follows the namespace --- .../{training_tests => }/extensions_tests/test_checkpoint.py | 0 .../{test_link.py => links_tests/test_multi_node_chain_list.py} | 0 2 files changed, 0 insertions(+), 0 deletions(-) rename tests/chainermn_tests/{training_tests => }/extensions_tests/test_checkpoint.py (100%) rename tests/chainermn_tests/{test_link.py => links_tests/test_multi_node_chain_list.py} (100%) diff --git a/tests/chainermn_tests/training_tests/extensions_tests/test_checkpoint.py b/tests/chainermn_tests/extensions_tests/test_checkpoint.py similarity index 100% rename from tests/chainermn_tests/training_tests/extensions_tests/test_checkpoint.py rename to tests/chainermn_tests/extensions_tests/test_checkpoint.py diff --git a/tests/chainermn_tests/test_link.py b/tests/chainermn_tests/links_tests/test_multi_node_chain_list.py similarity index 100% rename from tests/chainermn_tests/test_link.py rename to tests/chainermn_tests/links_tests/test_multi_node_chain_list.py