diff options
| author | Charles E. Rolke <chug@apache.org> | 2013-01-07 21:24:48 +0000 |
|---|---|---|
| committer | Charles E. Rolke <chug@apache.org> | 2013-01-07 21:24:48 +0000 |
| commit | de3ca05b56737c57dbc98895252db536b43e5e76 (patch) | |
| tree | c16a4e6a94f69789f0aa55156471addef741c435 /cpp/src/tests/legacystore/unit_test.cpp | |
| parent | 5d0a9fcb0f62fbc0702d40cda0a1ea21ebbfdade (diff) | |
| download | qpid-python-de3ca05b56737c57dbc98895252db536b43e5e76.tar.gz | |
QPID-1726 ASF licensed Qpid Store
Add unit tests.
There are several issues with these tests:
1. Originally the four .cpp unit test sources were compiled into a single
unit_test executable. In the current framework those four sources create
conflicting brokers that overwrite each other's store and fail to open port
5672. In this checkin there are four unit test executables. Running each
serially gets them all to pass. A new strategy is needed to start brokers
that don't conflict.
2. The legacystore.so is not integrated with the rest of the tests. Some
tests may run with the externally compiled msgstore.so and some use the
built in test_store. Plugging legacystore.so into these other tests is TBD.
3. cpp/src/tests/legacystore defines more tests beyond simple unit tests.
None of the issues related to wider system tests are addressed yet.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1430018 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/tests/legacystore/unit_test.cpp')
| -rw-r--r-- | cpp/src/tests/legacystore/unit_test.cpp | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/cpp/src/tests/legacystore/unit_test.cpp b/cpp/src/tests/legacystore/unit_test.cpp new file mode 100644 index 0000000000..add80a6f91 --- /dev/null +++ b/cpp/src/tests/legacystore/unit_test.cpp @@ -0,0 +1,28 @@ +/* + * + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + * + */ + + +// Defines test_main function to link with actual unit test code. +#define BOOST_AUTO_TEST_MAIN // Boost 1.33 +#define BOOST_TEST_MAIN + +#include "unit_test.h" + |
