Fennel: PagingTestBase Class Reference (original) (raw)

PagingTestBase is a common base for multi-threaded tests which exercise cache paging. More...

#include <[PagingTestBase.h](PagingTestBase%5F8h-source.html)>

Inheritance diagram for PagingTestBase:

List of all members.

Public Types
enum OpType { OP_READ_SEQ, OP_WRITE_SEQ, OP_READ_RAND, OP_WRITE_RAND, OP_READ_NOWAIT, OP_WRITE_NOWAIT, OP_WRITE_SKIP, OP_SCRATCH, OP_PREFETCH, OP_PREFETCH_BATCH, OP_ALLOCATE, OP_DEALLOCATE, OP_CHECKPOINT, OP_RESIZE_CACHE, OP_MAX }
The various operations that can be run in the multi-threaded test. More...
Public Member Functions
PagingTestBase ()
virtual ~PagingTestBase ()
virtual void fillPage (CachePage &page, uint x)
Scribbles on the contents of a page.
virtual void verifyPage (CachePage &page, uint x)
Verifies that the page contents are correct (based on the parameter x).
virtual CachePage * lockPage (OpType opType, uint iPage)=0
virtual void unlockPage (CachePage &page, LockMode lockMode)=0
virtual void prefetchPage (uint iPage)=0
virtual void prefetchBatch (uint iPage, uint nPagesPerBatch)=0
bool testOp (OpType opType, uint iPage, bool bNice)
Carries out one operation on a page.
char const * getOpName (OpType opType)
Makes up an operation name based on an OpType.
LockMode getLockMode (OpType opType)
Gets the LockMode corresponding to an OpType.
void testSequentialOp (OpType opType)
Carries out an operation on each disk page in order from 0 to nDiskPages-1.
void testRandomOp (OpType opType)
Carries out an operation on nRandomOps pages selected at random.
void testSkipOp (OpType opType, uint n)
Carries out an operation on every "n" pages, starting at page 0.
void testScratch ()
Performs nRandomOps scratch operations.
void testPrefetch ()
Performs a limited number of prefetch operations.
void testPrefetchBatch ()
Performs a limited number of batch prefetch operations.
virtual void testCheckpoint ()
Performs a periodic checkpoint.
virtual void testAllocateAll ()
Initializes all disk pages, filling them with information based on their block numbers.
void testSequentialRead ()
Carries out one sequential read pass over the entire device.
void testSequentialWrite ()
Carries out one sequential write pass over the entire device.
void testRandomRead ()
Carries out nRandomOps read operations on pages selected at random.
void testRandomWrite ()
Carries out nRandomOps write operations on pages selected at random.
void testSkipWrite (uint n)
Carries out write operations every n pages.
virtual void testAllocate ()
virtual void testDeallocate ()
void testCheckpointGuarded ()
void testCacheResize ()
void testMultipleThreads ()
Carries out specified tests in multi-threaded mode.
virtual void threadInit ()
virtual void threadTerminate ()
virtual bool testThreadedOp (int iOp)
Test implementation must be supplied by derived test class.
Cache & getCache ()
virtual SharedCache newCache ()
SharedRandomAccessDevice openDevice (std::string devName, DeviceMode openMode, uint nDevicePages, DeviceId deviceId)
virtual void openStorage (DeviceMode openMode)
virtual void closeStorage ()
virtual void testCaseTearDown ()
Equivalent to JUnit TestCase.tearDown; this is called after each test case method is invoked.
void closeDevice (DeviceId deviceId, SharedRandomAccessDevice &pDevice)
TestSuite * releaseTestSuite ()
void beforeTestCase (std::string testCaseName)
void afterTestCase (std::string testCaseName)
virtual void testCaseSetUp ()
Equivalent to JUnit TestCase.setUp; this is called before each test case method is invoked.
virtual void notifyTrace (std::string source, TraceLevel level, std::string message)
Receives notification when a trace event occurs.
virtual TraceLevel getSourceTraceLevel (std::string source)
Gets the level at which a particular source should be traced.
Static Public Member Functions
static void readParams (int argc, char **argv)
Parses the command line.
Static Public Attributes
static ParamName paramTestSuiteName
static ParamName paramTraceFileName
static ParamName paramDictionaryFileName
static ParamName paramTraceLevel
static ParamName paramStatsFileName
static ParamName paramTraceStdout
static ParamName paramDegreeOfParallelism
static ConfigMap configMap
Configuration parameters.
Protected Types
enum VictimPolicy { victimTwoQ, victimLRU, victimRandom }
The available victim policy implementations. More...
Protected Member Functions
uint generateRandomNumber (uint iMax)
void snooze (uint nSeconds)
void runThreadedTestCase ()
Executes specified test threads.
Protected Attributes
uint cbPageUsable
Portion of each page that should be scribbled on.
uint nRandomOps
Number of random access operations to run per pass.
uint nSecondsBetweenCheckpoints
Checkpoint interval during multi-threaded test.
StrictMutex logMutex
Protects output stream.
SXMutex checkpointMutex
SXMutex used to synchronize checkpoints with write actions.
bool bTestResize
Flag indicating that the cache should be dynamically resized during the multi-threaded portion of the test.
VictimPolicy victimPolicy
VictimPolicy to instantiate.
CacheParams cacheParams
Parameters for cache initialization.
SharedCache pCache
Cache instance being tested.
SharedRandomAccessDevice pRandomAccessDevice
The default cached device.
uint nMemPages
Size of cache in memory pages.
uint nDiskPages
Size of device in disk pages.
uint cbPageFull
Disk page size.
DeviceId dataDeviceId
Fixed ID to assign to data device.
TestSuite * pTestSuite
Boost test suite.
boost::shared_ptr< TestBase > pTestObj
std::ofstream traceStream
Output file stream for tracing.
StrictMutex traceMutex
Protects traceStream.
std::string testName
Name of test.
TraceLevel traceLevel
Level at which to trace test execution.
FileStatsTarget statsTarget
Output for stats.
StatsTimer statsTimer
Timer for stats collection.
bool traceStdout
Copy trace output to stdout.
bool traceFile
Copy trace output to file.
TestCaseGroup defaultTests
TestCaseGroup extraTests
uint nSeconds
Duration of multi-threaded test.
std::vector< int > threadCounts
Number of threads to run for each type of operation.
Static Protected Attributes
static bool runAll
Run all test cases, including the extra tests.
static std::string runSingle
Run only the test case of this name.

Detailed Description

PagingTestBase is a common base for multi-threaded tests which exercise cache paging.

Definition at line 41 of file PagingTestBase.h.


Member Enumeration Documentation

The various operations that can be run in the multi-threaded test.

Enumerator:

| OP_READ_SEQ | | | --------------------- | | | OP_WRITE_SEQ | | | OP_READ_RAND | | | OP_WRITE_RAND | | | OP_READ_NOWAIT | | | OP_WRITE_NOWAIT | | | OP_WRITE_SKIP | | | OP_SCRATCH | | | OP_PREFETCH | | | OP_PREFETCH_BATCH | | | OP_ALLOCATE | | | OP_DEALLOCATE | | | OP_CHECKPOINT | | | OP_RESIZE_CACHE | | | OP_MAX | |

Definition at line 83 of file PagingTestBase.h.

00083 { 00084 OP_READ_SEQ, 00085 OP_WRITE_SEQ, 00086 OP_READ_RAND, 00087 OP_WRITE_RAND, 00088 OP_READ_NOWAIT, 00089 OP_WRITE_NOWAIT, 00090 OP_WRITE_SKIP, 00091 OP_SCRATCH, 00092 OP_PREFETCH, 00093 OP_PREFETCH_BATCH, 00094 OP_ALLOCATE, 00095 OP_DEALLOCATE, 00096 OP_CHECKPOINT, 00097 OP_RESIZE_CACHE, 00098 OP_MAX 00099 };

The available victim policy implementations.

Enumerator:

| victimTwoQ | | | -------------- | | | victimLRU | | | victimRandom | |

Definition at line 44 of file CacheTestBase.h.


Constructor & Destructor Documentation

| PagingTestBase::PagingTestBase | ( | | ) | [explicit] | | ------------------------------ | - | | - | ------------ |

Definition at line 322 of file PagingTestBase.cpp.

References bTestResize, cbPageUsable, checkpointMutex, TestBase::configMap, ConfigMap::getIntParam(), nRandomOps, ThreadedTestBase::nSeconds, nSecondsBetweenCheckpoints, OP_ALLOCATE, OP_CHECKPOINT, OP_DEALLOCATE, OP_MAX, OP_PREFETCH, OP_PREFETCH_BATCH, OP_READ_NOWAIT, OP_READ_RAND, OP_READ_SEQ, OP_RESIZE_CACHE, OP_SCRATCH, OP_WRITE_NOWAIT, OP_WRITE_RAND, OP_WRITE_SEQ, OP_WRITE_SKIP, SXMutex::SCHEDULE_FAVOR_EXCLUSIVE, SXMutex::setSchedulingPolicy(), ThreadedTestBase::threadCounts, and threadInit().

00323 { 00324 nRandomOps = configMap.getIntParam("randomOps",5000); 00325 nSecondsBetweenCheckpoints = configMap.getIntParam("checkpointInterval",20); 00326 bTestResize = configMap.getIntParam("resizeCache",1); 00327 checkpointMutex.setSchedulingPolicy(SXMutex::SCHEDULE_FAVOR_EXCLUSIVE); 00328 00329 threadCounts.resize(OP_MAX,-1); 00330 00331 threadCounts[OP_READ_SEQ] = configMap.getIntParam( 00332 "readSeqThreads",-1); 00333 threadCounts[OP_WRITE_SEQ] = configMap.getIntParam( 00334 "writeSeqThreads",-1); 00335 threadCounts[OP_READ_RAND] = configMap.getIntParam( 00336 "readRandThreads",-1); 00337 threadCounts[OP_WRITE_RAND] = configMap.getIntParam( 00338 "writeRandThreads",-1); 00339 threadCounts[OP_READ_NOWAIT] = configMap.getIntParam( 00340 "readNoWaitThreads",-1); 00341 threadCounts[OP_WRITE_NOWAIT] = configMap.getIntParam( 00342 "writeNoWaitThreads",-1); 00343 threadCounts[OP_WRITE_SKIP] = configMap.getIntParam( 00344 "writeSkipThreads",-1); 00345 threadCounts[OP_SCRATCH] = configMap.getIntParam( 00346 "scratchThreads",-1); 00347 threadCounts[OP_PREFETCH] = configMap.getIntParam( 00348 "prefetchThreads",-1); 00349 threadCounts[OP_PREFETCH_BATCH] = configMap.getIntParam( 00350 "prefetchBatchThreads",-1); 00351 threadCounts[OP_ALLOCATE] = configMap.getIntParam( 00352 "allocateThreads",-1); 00353 threadCounts[OP_DEALLOCATE] = configMap.getIntParam( 00354 "deallocateThreads",-1); 00355 00356 if (nSecondsBetweenCheckpoints < nSeconds) { 00357 threadCounts[OP_CHECKPOINT] = 1; 00358 } else { 00359 threadCounts[OP_CHECKPOINT] = 0; 00360 } 00361 00362 if (bTestResize) { 00363 threadCounts[OP_RESIZE_CACHE] = 1; 00364 } else { 00365 threadCounts[OP_RESIZE_CACHE] = 0; 00366 } 00367 00368 cbPageUsable = 0; 00369 00370 threadInit(); 00371 }

| PagingTestBase::~PagingTestBase | ( | | ) | [virtual] | | -------------------------------- | - | | - | ----------- |


Member Function Documentation

uint PagingTestBase::generateRandomNumber ( uint iMax ) [protected]
void PagingTestBase::fillPage ( CachePage & page,
uint x
) [virtual]
void PagingTestBase::verifyPage ( CachePage & page,
uint x
) [virtual]
virtual void PagingTestBase::unlockPage ( CachePage & page,
LockMode lockMode
) [pure virtual]
virtual void PagingTestBase::prefetchPage ( uint iPage ) [pure virtual]
virtual void PagingTestBase::prefetchBatch ( uint iPage,
uint nPagesPerBatch
) [pure virtual]
bool PagingTestBase::testOp ( OpType opType,
uint iPage,
bool bNice
)

Carries out one operation on a page.

This involves locking the page, calling verifyPage or fillPage, and then unlocking the page.

Parameters:

opType operation which will be attempted
iPage block number of page
bNice true if page should be marked as nice as part of access

Returns:

true if the operation was successfully carried out; false if NoWait locking was requested and the page lock could not be acquired

Definition at line 85 of file PagingTestBase.cpp.

References fillPage(), CacheTestBase::getCache(), getLockMode(), LOCKMODE_S, LOCKMODE_S_NOWAIT, LOCKMODE_X, LOCKMODE_X_NOWAIT, lockPage(), CacheAccessor::nicePage(), unlockPage(), and verifyPage().

Referenced by testRandomOp(), testSequentialOp(), and testSkipOp().

char const * PagingTestBase::getOpName ( OpType opType )

Gets the LockMode corresponding to an OpType.

Definition at line 143 of file PagingTestBase.cpp.

References LOCKMODE_S, LOCKMODE_S_NOWAIT, LOCKMODE_X, LOCKMODE_X_NOWAIT, OP_ALLOCATE, OP_READ_NOWAIT, OP_READ_RAND, OP_READ_SEQ, OP_WRITE_NOWAIT, OP_WRITE_RAND, OP_WRITE_SEQ, and OP_WRITE_SKIP.

Referenced by SegmentTestBase::lockPage(), CacheTest::lockPage(), and testOp().

void PagingTestBase::testSequentialOp ( OpType opType )
void PagingTestBase::testRandomOp ( OpType opType )
void PagingTestBase::testSkipOp ( OpType opType,
uint n
)

| void PagingTestBase::testScratch | ( | | ) | | -------------------------------- | - | | - |

| void PagingTestBase::testPrefetch | ( | | ) | | --------------------------------- | - | | - |

| void PagingTestBase::testPrefetchBatch | ( | | ) | | -------------------------------------- | - | | - |

| void PagingTestBase::testCheckpoint | ( | | ) | [virtual] | | ----------------------------------- | - | | - | ----------- |

| void PagingTestBase::testAllocateAll | ( | | ) | [virtual] | | ------------------------------------ | - | | - | ----------- |

| void PagingTestBase::testSequentialRead | ( | | ) | | --------------------------------------- | - | | - |

| void PagingTestBase::testSequentialWrite | ( | | ) | | ---------------------------------------- | - | | - |

| void PagingTestBase::testRandomRead | ( | | ) | | ----------------------------------- | - | | - |

| void PagingTestBase::testRandomWrite | ( | | ) | | ------------------------------------ | - | | - |

void PagingTestBase::testSkipWrite ( uint n )

| void PagingTestBase::testAllocate | ( | | ) | [virtual] | | --------------------------------- | - | | - | ----------- |

| void PagingTestBase::testDeallocate | ( | | ) | [virtual] | | ----------------------------------- | - | | - | ----------- |

| void PagingTestBase::testCheckpointGuarded | ( | | ) | | ------------------------------------------ | - | | - |

| void PagingTestBase::testCacheResize | ( | | ) | | ------------------------------------ | - | | - |

| void PagingTestBase::testMultipleThreads | ( | | ) | | ---------------------------------------- | - | | - |

| void PagingTestBase::threadInit | ( | | ) | [virtual] | | ------------------------------- | - | | - | ----------- |

| void PagingTestBase::threadTerminate | ( | | ) | [virtual] | | ------------------------------------ | - | | - | ----------- |

bool PagingTestBase::testThreadedOp ( int iOp ) [virtual]

Test implementation must be supplied by derived test class.

Parameters:

iOp operation type to test

Returns:

true if test should run again

Implements ThreadedTestBase.

Definition at line 378 of file PagingTestBase.cpp.

References checkpointMutex, SXMutexGuard< lockMode >::lock(), OP_ALLOCATE, OP_CHECKPOINT, OP_DEALLOCATE, OP_MAX, OP_PREFETCH, OP_PREFETCH_BATCH, OP_READ_NOWAIT, OP_READ_RAND, OP_READ_SEQ, OP_RESIZE_CACHE, OP_SCRATCH, OP_WRITE_NOWAIT, OP_WRITE_RAND, OP_WRITE_SEQ, OP_WRITE_SKIP, testAllocate(), testCacheResize(), testCheckpointGuarded(), testDeallocate(), testPrefetch(), testPrefetchBatch(), testRandomOp(), testScratch(), testSequentialOp(), and testSkipOp().

| Cache & CacheTestBase::getCache | ( | | ) | [inherited] | | -------------------------------------------------- | - | | - | ------------- |

| SharedCache CacheTestBase::newCache | ( | | ) | [virtual, inherited] | | --------------------------------------------------------------------------------------------- | - | | - | ---------------------- |

void CacheTestBase::openStorage ( DeviceMode openMode ) [virtual, inherited]

Reimplemented in SegmentTestBase, and SegStorageTestBase.

Definition at line 100 of file CacheTestBase.cpp.

References StatsTimer::addSource(), CacheTestBase::dataDeviceId, CacheTestBase::nDiskPages, CacheTestBase::newCache(), CacheTestBase::openDevice(), CacheTestBase::pCache, CacheTestBase::pRandomAccessDevice, StatsTimer::start(), and TestBase::statsTimer.

Referenced by SegStorageTestBase::openStorage(), testMultipleThreads(), CacheTest::testQuotaCacheAccessor(), and CacheTest::testSingleThread().

| void CacheTestBase::closeStorage | ( | | ) | [virtual, inherited] | | -------------------------------- | - | | - | ---------------------- |

Reimplemented in SegStorageTestBase, SnapshotSegmentTestBase, and VersionedSegmentTest.

Definition at line 115 of file CacheTestBase.cpp.

References CacheTestBase::closeDevice(), CacheTestBase::dataDeviceId, CacheTestBase::pCache, CacheTestBase::pRandomAccessDevice, TestBase::statsTimer, and StatsTimer::stop().

Referenced by SegStorageTestBase::closeStorage(), CacheTestBase::testCaseTearDown(), CacheTest::testQuotaCacheAccessor(), and CacheTest::testSingleThread().

| void CacheTestBase::testCaseTearDown | ( | | ) | [virtual, inherited] | | ------------------------------------ | - | | - | ---------------------- |

Equivalent to JUnit TestCase.tearDown; this is called after each test case method is invoked.

Default is no-op.

Reimplemented from TestBase.

Reimplemented in LbmEntryTest, LbmLoadBitmapTest, LbmSearchTest, LcsClusterAppendExecStreamTest, LcsClusterReplaceExecStreamTest, LcsMultiClusterAppendTest, LcsRowScanExecStreamTest, BTreeReadersTest, BTreeTest, ExecStreamTestBase, and LhxHashTableTest.

Definition at line 125 of file CacheTestBase.cpp.

References CacheTestBase::closeStorage().

Referenced by LhxHashTableTest::testCaseTearDown(), ExecStreamTestBase::testCaseTearDown(), BTreeTest::testCaseTearDown(), BTreeReadersTest::testCaseTearDown(), and LbmEntryTest::testCaseTearDown().

void TestBase::snooze ( uint nSeconds ) [protected, inherited]
void TestBase::readParams ( int argc,
char ** argv
) [static, inherited]

Parses the command line.

format: [-v] [-t TEST | -all] {param=val}* [CONFIGFILE | -] Normally, the test program runs the default test cases. With the option "-all", runs the extra test cases as well. With the option "-t TEST", runs only the single test case named TEST. CONFIGFILE is read to load configuration parameters. Configuration parameters can also be set ad hoc, from the command line, as pairs name=val. These take precedence.

Definition at line 108 of file TestBase.cpp.

References TestBase::configMap, ConfigMap::dumpParams(), ConfigMap::isParamSet(), ConfigMap::mergeFrom(), TestBase::paramDictionaryFileName, ConfigMap::readParams(), TestBase::runAll, TestBase::runSingle, ConfigMap::setStringParam(), and verbose.

00109 { 00110 bool verbose = false; 00111 ConfigMap adhocMap; 00112 00113 for (int i = 1; i < argc; ++i) { 00114 std::string arg = argv[i]; 00115 if (argv[i][0] == '-') { 00116 if (arg == "-v") { 00117 verbose = true; 00118 } else if (arg == "-") { 00119 configMap.readParams(std::cin); 00120 } else if (arg == "-all") { 00121 runAll = true; 00122 } else if (arg == "-t") {
00123 permAssert(i + 1 < argc); 00124 runSingle = argv[++i]; 00125 } else if (arg[1] == 't') { 00126 runSingle = arg.substr(2); 00127 } 00128 } else { 00129 int i = arg.find("="); 00130 if ((0 < i) && (i < arg.size())) { 00131
00132 std::string key = arg.substr(0,i); 00133 std::string val = arg.substr(i + 1); 00134 adhocMap.setStringParam(key,val); 00135 } else { 00136
00137 std::ifstream configFile(arg.c_str()); 00138 assert(configFile.good()); 00139 configMap.readParams(configFile); 00140 } 00141 } 00142 } 00143 configMap.mergeFrom(adhocMap); 00144 00145
00146
00147 if (configMap.isParamSet(paramDictionaryFileName)) { 00148 std::string dictFileName = "dictWords"; 00149 configMap.setStringParam(paramDictionaryFileName,dictFileName); 00150 } 00151 00152 if (verbose) { 00153 configMap.dumpParams(std::cout); 00154 } 00155 }

| TestSuite * TestBase::releaseTestSuite | ( | | ) | [inherited] | | ---------------------------------------------------------------------------------------------- | - | | - | ------------- |

void TestBase::beforeTestCase ( std::string testCaseName ) [inherited]
void TestBase::afterTestCase ( std::string testCaseName ) [inherited]

| void TestBase::testCaseSetUp | ( | | ) | [virtual, inherited] | | ---------------------------- | - | | - | ---------------------- |

Equivalent to JUnit TestCase.setUp; this is called before each test case method is invoked.

Default is no-op.

Reimplemented in LbmEntryTest, LbmExecStreamTestBase, LbmLoadBitmapTest, LbmSearchTest, LbmSplicerExecStreamTest, LcsClusterAppendExecStreamTest, LcsClusterReplaceExecStreamTest, LcsMultiClusterAppendTest, LcsRowScanExecStreamTest, BTreeReadersTest, BTreeTest, BTreeTxnTest, ExecStreamGovernorTest, ExecStreamTestBase, ExecStreamUnitTestBase, ExternalSortExecStreamTest, LhxHashTableTest, LogicalTxnTest, and SnapshotSegmentTestBase.

Definition at line 235 of file TestBase.cpp.

Referenced by ExecStreamTestBase::testCaseSetUp().

void TestBase::notifyTrace ( std::string source,
TraceLevel level,
std::string message
) [virtual, inherited]
TraceLevel TestBase::getSourceTraceLevel ( std::string source ) [virtual, inherited]

| void ThreadedTestBase::runThreadedTestCase | ( | | ) | [protected, inherited] | | ------------------------------------------ | - | | - | ------------------------ |


Member Data Documentation

Flag indicating that the cache should be dynamically resized during the multi-threaded portion of the test.

Definition at line 75 of file PagingTestBase.h.

Referenced by PagingTestBase().

Cache instance being tested.

Definition at line 63 of file CacheTestBase.h.

Referenced by BackupRestoreTest::backup(), CacheTestBase::closeDevice(), CacheTestBase::closeStorage(), LbmSplicerExecStreamTest::createBTree(), SegStorageTestBase::createLinearDeviceSegment(), LogicalTxnTest::createRecoveryLog(), BackupRestoreTest::createSnapshotData(), BackupRestoreTest::executeSnapshotTxn(), CacheTestBase::getCache(), LbmSearchTest::initBTreeExecStreamParam(), LbmLoadBitmapTest::initBTreeExecStreamParam(), LbmSearchTest::initBTreeParam(), LbmLoadBitmapTest::initBTreeParam(), LcsClusterReplaceExecStreamTest::initClusterAppendParams(), LbmExecStreamTestBase::initSorterExecStream(), LcsClusterReplaceExecStreamTest::loadCluster(), LcsMultiClusterAppendTest::loadClusters(), LcsRowScanExecStreamTest::loadOneCluster(), LbmSearchTest::loadTableAndIndex(), SegmentTestBase::lockPage(), LbmMinusExecStreamTest::newMinusStream(), ExecStreamTestBase::newStreamGraphEmbryo(), CacheTestBase::openDevice(), CacheTestBase::openStorage(), LcsClusterReplaceExecStreamTest::replaceCluster(), BackupRestoreTest::restore(), LbmSplicerExecStreamTest::spliceInput(), SegmentTestBase::testAllocate(), RandomAllocationSegmentTest::testAllocateAndDeallocate(), BackupRestoreTest::testBackupCleanup(), ExecStreamTestSuite::testBTreeInsertExecStream(), BTreeTest::testBulkLoad(), LhxHashTableTest::testCaseSetUp(), ExecStreamUnitTestBase::testCaseSetUp(), BTreeTest::testCaseSetUp(), BTreeReadersTest::testCaseSetUp(), LhxAggExecStreamTest::testCountImpl(), SegmentTestBase::testDeallocate(), SnapshotSegmentTest::testDeallocateOld(), ExecStreamTestSuite::testDoubleBufferExecStream(), ExecStreamGovernorTest::testGovernor(), LhxAggExecStreamTest::testGroupCountImpl(), BackupRestoreTest::testHeaderBackupRestore(), LhxJoinExecStreamTest::testImpl(), ExternalSortExecStreamTest::testImpl(), BTreeTest::testInserts(), LbmIntersectExecStreamTest::testIntersect(), SegPageIterTest::testIter(), SegPageEntryIterTest::testIter(), CacheTest::testLargeCacheInit(), CacheTest::testLargeCacheRequest(), LbmEntryTest::testldb35(), LbmEntryTest::testler5920(), LbmLoadBitmapTest::testLoad(), LcsClusterAppendExecStreamTest::testLoadMultiCol(), LcsClusterAppendExecStreamTest::testLoadSingleCol(), SegStreamTest::testMarkReset(), LbmEntryTest::testMergeEntry(), BTreeTest::testMultiKeySearches(), CacheTest::testQuotaCacheAccessor(), BTreeReadersTest::testReaders(), SegStreamTest::testReadSeg(), BTreeTest::testScan(), LcsRowScanExecStreamTest::testScanOnEmptyCluster(), ExecStreamTestSuite::testScratchBufferExecStream(), LhxAggExecStreamTest::testSingleValueImpl(), FlatFileExecStreamTest::testStream(), LhxAggExecStreamTest::testSumImpl(), LogicalTxnTest::testTxn(), LogicalTxnTest::testTxnIdSequence(), LbmUnionExecStreamTest::testUnion(), SegStreamTest::testWriteSeg(), SegStreamTest::testWriteSpillAndRead(), LbmEntryTest::testZeroBytes(), and BackupRestoreTest::verifySnapshotData().

Size of device in disk pages.

Definition at line 78 of file CacheTestBase.h.

Referenced by CacheTestBase::CacheTestBase(), LinearViewSegmentTest::LinearViewSegmentTest(), CacheTest::makeBlockId(), VersionedSegmentTest::openSegmentStorage(), SnapshotSegmentTestBase::openSegmentStorage(), LinearViewSegmentTest::openSegmentStorage(), CacheTestBase::openStorage(), SegStreamTest::SegStreamTest(), SnapshotSegmentTestBase::SnapshotSegmentTestBase(), SnapshotSegmentTest::testDeallocateOld(), testPrefetch(), testPrefetchBatch(), testRandomOp(), SnapshotSegmentTest::testRollback(), testSequentialOp(), and testSkipOp().

Configuration parameters.

The reason this is static is so that no constructor parameters (which burden virtual bases) are needed.

Definition at line 155 of file TestBase.h.

Referenced by TestBase::afterTestCase(), TestBase::beforeTestCase(), BTreeTxnTest::BTreeTxnTest(), CacheTestBase::CacheTestBase(), BackupRestoreTest::createSnapshotData(), DatabaseTest::DatabaseTest(), TestOptionsTest::extra(), DatabaseTest::loadDatabase(), SparseBitmapTest::openStorage(), PagingTestBase(), ParallelExecStreamSchedulerTest::ParallelExecStreamSchedulerTest(), RandomAccessFileDeviceTest::RandomAccessFileDeviceTest(), TestBase::readParams(), SegStorageTestBase::SegStorageTestBase(), TestOptionsTest::test1(), TestOptionsTest::test2(), BackupRestoreTest::testBackupCleanup(), TestBase::TestBase(), BTreeTxnTest::testCaseSetUp(), BTreeTxnTest::testCheckpoint(), DatabaseTest::testCreateEmpty(), DatabaseTest::testForceTxns(), BackupRestoreTest::testHeaderBackupRestore(), SegPageEntryIterTest::testIter(), SegStreamTest::testRead(), BTreeTxnTest::testTxns(), SegStreamTest::testWrite(), ThreadedTestBase::ThreadedTestBase(), and TestBase::~TestBase().


The documentation for this class was generated from the following files:


Generated on Mon Jun 22 04:00:40 2009 for Fennel by doxygen 1.5.1