/**
Copyright (C) SYSTAP, LLC DBA Blazegraph 2006-2016. All rights reserved.
Contact:
SYSTAP, LLC DBA Blazegraph
2501 Calvert ST NW #106
Washington, DC 20008
licenses@blazegraph.com
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; version 2 of the License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
/*
* Created on Oct 14, 2006
*/
package com.bigdata.resources;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
/**
* Runs all tests for all journal implementations.
*
* @author <a href="mailto:thompsonbry@users.sourceforge.net">Bryan Thompson</a>
* @version $Id$
*/
public class TestAll extends TestCase {
/**
*
*/
public TestAll() {
}
/**
* @param arg0
*/
public TestAll(String arg0) {
super(arg0);
}
/**
* Returns a test that will run each of the implementation specific test
* suites in turn.
*/
public static Test suite()
{
final TestSuite suite = new TestSuite("resources");
// /*
// * unit tests for identifying separator keys for a split based on the
// * traversal of the key-range.
// */
// suite.addTestSuite(TestDefaultSplitHandler.class);
// /*
// * unit tests for identifying separator keys for a split based on search
// * across the nodes of the sources in the view using the combined #of
// * spanned tuples for each source (@todo this feature has not been
// * implemented.)
// */
// suite.addTestSuite(TestViewSplitter.class);
/*
* unit tests for splitting an index segment based on its size on the
* disk, the nominal size of an index partition, and an optional
* application level constraint on the choice of the separator keys.
* This approach presumes a compacting merge has been performed such
* that all history other than the buffered writes is on a single index
* segment. The buffered writes are not considered when choosing the #of
* splits to make and the separator keys for those splits. They are
* simply copied afterwards onto the new index partition which covers
* their key-range.
*/
suite.addTestSuite(TestSegSplitter.class);
suite.addTestSuite(TestSparseRowStoreSplitHandler.class);
suite.addTestSuite(TestFixedLengthPrefixShardSplits.class);
/*
* Test management of local resources.
*
* @todo convert to a proxy test suite per the examples above so that we
* can run any interesting conditions and gather the resource manager
* unit tests together into that proxy test suite and its bootstrap
* tests.
*
* @todo write tests for deleting old resources when coordinating read
* locks with a transaction manager.
*
* @todo add tests for access to read-committed and fully isolated
* indices.
*
* Note: More extensive tests are performed in the services package
* where we have access to the IMetadataService as well so that we can
* validate the results of an index split, etc.
*/
// bootstrap tests of the resource manager
suite.addTestSuite(TestResourceManagerBootstrap.class);
// test overflow handling.
suite.addTestSuite(TestOverflow.class);
// test incremental builds.
suite.addTestSuite(TestBuildTask.class);
suite.addTestSuite(TestBuildTask2.class);
// test compacting merge.
suite.addTestSuite(TestMergeTask.class);
/*
* Note: split, join, and move are tested in the com.bigdata.services
* package.
*/
// test release of old resources.
suite.addTestSuite(TestAddDeleteResource.class);
// suite.addTest(TestReleaseResources.suite());
// suite.addTestSuite(TestReleaseResources.TestReleaseFree.class);
suite.addTestSuite(TestReleaseResources.TestWithCopyNoRelease.class);
suite.addTestSuite(TestReleaseResources.TestWithCopyImmediateRelease.class);
suite.addTestSuite(TestReleaseResources.TestWithCopy_NonZeroMinReleaseAge.class);
return suite;
}
}