From 72c38a5c542b004bd6833be8c8789708842f5855 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Chr=C3=A9tien?= Date: Mon, 23 Mar 2015 18:03:10 +0100 Subject: [PATCH] Rename tests. --- tests/CMakeLists.txt | 36 +++++++++---------- ...nction.cc => decorator-cached-function.cc} | 4 +-- ...tdout => decorator-cached-function.stdout} | 0 ...> decorator-finite-difference-gradient.cc} | 2 +- ...corator-finite-difference-gradient.stdout} | 0 ...> decorator-finite-difference-jacobian.cc} | 2 +- ...corator-finite-difference-jacobian.stdout} | 0 tests/{filter-bind.cc => operator-bind.cc} | 0 tests/{filter-chain.cc => operator-chain.cc} | 0 ...concatenate.cc => operator-concatenate.cc} | 0 ...r-derivative.cc => operator-derivative.cc} | 0 tests/{filter-map.cc => operator-map.cc} | 0 tests/{filter-minus.cc => operator-minus.cc} | 0 tests/{filter-plus.cc => operator-plus.cc} | 0 ...{filter-product.cc => operator-product.cc} | 2 +- ...product.stdout => operator-product.stdout} | 0 .../{filter-scalar.cc => operator-scalar.cc} | 0 ...n-by-id.cc => operator-selection-by-id.cc} | 0 ...ter-selection.cc => operator-selection.cc} | 0 tests/{filter-split.cc => operator-split.cc} | 2 +- ...ter-split.stdout => operator-split.stdout} | 0 21 files changed, 24 insertions(+), 24 deletions(-) rename tests/{filter-cached-function.cc => decorator-cached-function.cc} (98%) rename tests/{filter-cached-function.stdout => decorator-cached-function.stdout} (100%) rename tests/{finite-difference-gradient.cc => decorator-finite-difference-gradient.cc} (99%) rename tests/{finite-difference-gradient.stdout => decorator-finite-difference-gradient.stdout} (100%) rename tests/{finite-difference-jacobian.cc => decorator-finite-difference-jacobian.cc} (98%) rename tests/{finite-difference-jacobian.stdout => decorator-finite-difference-jacobian.stdout} (100%) rename tests/{filter-bind.cc => operator-bind.cc} (100%) rename tests/{filter-chain.cc => operator-chain.cc} (100%) rename tests/{filter-concatenate.cc => operator-concatenate.cc} (100%) rename tests/{filter-derivative.cc => operator-derivative.cc} (100%) rename tests/{filter-map.cc => operator-map.cc} (100%) rename tests/{filter-minus.cc => operator-minus.cc} (100%) rename tests/{filter-plus.cc => operator-plus.cc} (100%) rename tests/{filter-product.cc => operator-product.cc} (98%) rename tests/{filter-product.stdout => operator-product.stdout} (100%) rename tests/{filter-scalar.cc => operator-scalar.cc} (100%) rename tests/{filter-selection-by-id.cc => operator-selection-by-id.cc} (100%) rename tests/{filter-selection.cc => operator-selection.cc} (100%) rename tests/{filter-split.cc => operator-split.cc} (97%) rename tests/{filter-split.stdout => operator-split.stdout} (100%) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 3a1366132..53e6cabf0 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -115,10 +115,6 @@ ROBOPTIM_CORE_TEST(solver-state) ROBOPTIM_CORE_TEST(optimization-logger) ROBOPTIM_CORE_TEST(multiplexer) -# Algorithm. -ROBOPTIM_CORE_TEST(finite-difference-gradient) -ROBOPTIM_CORE_TEST(finite-difference-jacobian) - # Built-in mathematical functions. ROBOPTIM_CORE_TEST(function-constant) ROBOPTIM_CORE_TEST(function-cos) @@ -126,20 +122,24 @@ ROBOPTIM_CORE_TEST(function-identity) ROBOPTIM_CORE_TEST(function-sin) ROBOPTIM_CORE_TEST(function-polynomial) -# Filters. -ROBOPTIM_CORE_TEST(filter-bind) -ROBOPTIM_CORE_TEST(filter-cached-function) -ROBOPTIM_CORE_TEST(filter-chain) -ROBOPTIM_CORE_TEST(filter-concatenate) -ROBOPTIM_CORE_TEST(filter-derivative) -ROBOPTIM_CORE_TEST(filter-map) -ROBOPTIM_CORE_TEST(filter-minus) -ROBOPTIM_CORE_TEST(filter-plus) -ROBOPTIM_CORE_TEST(filter-product) -ROBOPTIM_CORE_TEST(filter-scalar) -ROBOPTIM_CORE_TEST(filter-selection) -ROBOPTIM_CORE_TEST(filter-selection-by-id) -ROBOPTIM_CORE_TEST(filter-split) +# Decorators. +ROBOPTIM_CORE_TEST(decorator-cached-function) +ROBOPTIM_CORE_TEST(decorator-finite-difference-gradient) +ROBOPTIM_CORE_TEST(decorator-finite-difference-jacobian) + +# Operators. +ROBOPTIM_CORE_TEST(operator-bind) +ROBOPTIM_CORE_TEST(operator-chain) +ROBOPTIM_CORE_TEST(operator-concatenate) +ROBOPTIM_CORE_TEST(operator-derivative) +ROBOPTIM_CORE_TEST(operator-map) +ROBOPTIM_CORE_TEST(operator-minus) +ROBOPTIM_CORE_TEST(operator-plus) +ROBOPTIM_CORE_TEST(operator-product) +ROBOPTIM_CORE_TEST(operator-scalar) +ROBOPTIM_CORE_TEST(operator-selection) +ROBOPTIM_CORE_TEST(operator-selection-by-id) +ROBOPTIM_CORE_TEST(operator-split) # Visualization ROBOPTIM_CORE_TEST(visualization-gnuplot-simple) diff --git a/tests/filter-cached-function.cc b/tests/decorator-cached-function.cc similarity index 98% rename from tests/filter-cached-function.cc rename to tests/decorator-cached-function.cc index f0705e47e..d7b6d2ea7 100644 --- a/tests/filter-cached-function.cc +++ b/tests/decorator-cached-function.cc @@ -132,7 +132,7 @@ BOOST_FIXTURE_TEST_SUITE (core, TestSuiteConfiguration) BOOST_AUTO_TEST_CASE (cached_function) { - output = retrievePattern ("filter-cached-function"); + output = retrievePattern ("decorator-cached-function"); // First: test dense cached function boost::shared_ptr dense_f (new DenseF ()); @@ -162,7 +162,7 @@ BOOST_AUTO_TEST_CASE (cached_function) BOOST_CHECK (output->match_pattern (true)); // Second: test sparse cached function - output = retrievePattern ("filter-cached-function"); + output = retrievePattern ("decorator-cached-function"); boost::shared_ptr sparse_f (new SparseF ()); CachedFunction cachedSparseF (sparse_f); diff --git a/tests/filter-cached-function.stdout b/tests/decorator-cached-function.stdout similarity index 100% rename from tests/filter-cached-function.stdout rename to tests/decorator-cached-function.stdout diff --git a/tests/finite-difference-gradient.cc b/tests/decorator-finite-difference-gradient.cc similarity index 99% rename from tests/finite-difference-gradient.cc rename to tests/decorator-finite-difference-gradient.cc index 2c198c0fc..641869c39 100644 --- a/tests/finite-difference-gradient.cc +++ b/tests/decorator-finite-difference-gradient.cc @@ -304,7 +304,7 @@ typedef boost::mpl::list< ::roboptim::EigenMatrixDense, BOOST_AUTO_TEST_CASE_TEMPLATE (finite_difference_gradient, T, functionTypes_t) { boost::shared_ptr - output = retrievePattern ("finite-difference-gradient"); + output = retrievePattern ("decorator-finite-difference-gradient"); FGood fg; FBad fb; diff --git a/tests/finite-difference-gradient.stdout b/tests/decorator-finite-difference-gradient.stdout similarity index 100% rename from tests/finite-difference-gradient.stdout rename to tests/decorator-finite-difference-gradient.stdout diff --git a/tests/finite-difference-jacobian.cc b/tests/decorator-finite-difference-jacobian.cc similarity index 98% rename from tests/finite-difference-jacobian.cc rename to tests/decorator-finite-difference-jacobian.cc index ef55499d1..34c703c9a 100644 --- a/tests/finite-difference-jacobian.cc +++ b/tests/decorator-finite-difference-jacobian.cc @@ -206,7 +206,7 @@ typedef boost::mpl::list< ::roboptim::EigenMatrixDense, BOOST_AUTO_TEST_CASE_TEMPLATE (finite_difference_jacobian, T, functionTypes_t) { boost::shared_ptr - output = retrievePattern ("finite-difference-jacobian"); + output = retrievePattern ("decorator-finite-difference-jacobian"); FGood fg; FBad fb; diff --git a/tests/finite-difference-jacobian.stdout b/tests/decorator-finite-difference-jacobian.stdout similarity index 100% rename from tests/finite-difference-jacobian.stdout rename to tests/decorator-finite-difference-jacobian.stdout diff --git a/tests/filter-bind.cc b/tests/operator-bind.cc similarity index 100% rename from tests/filter-bind.cc rename to tests/operator-bind.cc diff --git a/tests/filter-chain.cc b/tests/operator-chain.cc similarity index 100% rename from tests/filter-chain.cc rename to tests/operator-chain.cc diff --git a/tests/filter-concatenate.cc b/tests/operator-concatenate.cc similarity index 100% rename from tests/filter-concatenate.cc rename to tests/operator-concatenate.cc diff --git a/tests/filter-derivative.cc b/tests/operator-derivative.cc similarity index 100% rename from tests/filter-derivative.cc rename to tests/operator-derivative.cc diff --git a/tests/filter-map.cc b/tests/operator-map.cc similarity index 100% rename from tests/filter-map.cc rename to tests/operator-map.cc diff --git a/tests/filter-minus.cc b/tests/operator-minus.cc similarity index 100% rename from tests/filter-minus.cc rename to tests/operator-minus.cc diff --git a/tests/filter-plus.cc b/tests/operator-plus.cc similarity index 100% rename from tests/filter-plus.cc rename to tests/operator-plus.cc diff --git a/tests/filter-product.cc b/tests/operator-product.cc similarity index 98% rename from tests/filter-product.cc rename to tests/operator-product.cc index af009ecf5..c688b5648 100644 --- a/tests/filter-product.cc +++ b/tests/operator-product.cc @@ -41,7 +41,7 @@ BOOST_FIXTURE_TEST_SUITE (core, TestSuiteConfiguration) BOOST_AUTO_TEST_CASE_TEMPLATE (product_test, T, functionTypes_t) { boost::shared_ptr - output = retrievePattern ("filter-product"); + output = retrievePattern ("operator-product"); typename GenericFunction::value_type eps = 1e-6; diff --git a/tests/filter-product.stdout b/tests/operator-product.stdout similarity index 100% rename from tests/filter-product.stdout rename to tests/operator-product.stdout diff --git a/tests/filter-scalar.cc b/tests/operator-scalar.cc similarity index 100% rename from tests/filter-scalar.cc rename to tests/operator-scalar.cc diff --git a/tests/filter-selection-by-id.cc b/tests/operator-selection-by-id.cc similarity index 100% rename from tests/filter-selection-by-id.cc rename to tests/operator-selection-by-id.cc diff --git a/tests/filter-selection.cc b/tests/operator-selection.cc similarity index 100% rename from tests/filter-selection.cc rename to tests/operator-selection.cc diff --git a/tests/filter-split.cc b/tests/operator-split.cc similarity index 97% rename from tests/filter-split.cc rename to tests/operator-split.cc index 0ba974bbd..c556f867d 100644 --- a/tests/filter-split.cc +++ b/tests/operator-split.cc @@ -53,7 +53,7 @@ BOOST_FIXTURE_TEST_SUITE (core, TestSuiteConfiguration) BOOST_AUTO_TEST_CASE (split) { boost::shared_ptr - output = retrievePattern ("filter-split"); + output = retrievePattern ("operator-split"); boost::shared_ptr f (new F ()); diff --git a/tests/filter-split.stdout b/tests/operator-split.stdout similarity index 100% rename from tests/filter-split.stdout rename to tests/operator-split.stdout