Skip to content
This repository has been archived by the owner on Sep 27, 2019. It is now read-only.

Commit

Permalink
Revert name changes of PelotonTest and PelotonCodeGenTest
Browse files Browse the repository at this point in the history
  • Loading branch information
tcm-marcel committed May 21, 2018
1 parent 3d74f74 commit a402c4e
Show file tree
Hide file tree
Showing 159 changed files with 176 additions and 176 deletions.
6 changes: 3 additions & 3 deletions test/binder/binder_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,17 @@ using std::vector;
namespace peloton {
namespace test {

class BinderCorrectnessTests : public PelotonTests {
class BinderCorrectnessTests : public PelotonTest {
virtual void SetUp() override {
PelotonTests::SetUp();
PelotonTest::SetUp();
catalog::Catalog::GetInstance();
// NOTE: Catalog::GetInstance()->Bootstrap(), you can only call it once!
TestingExecutorUtil::InitializeDatabase(DEFAULT_DB_NAME);
}

virtual void TearDown() override {
TestingExecutorUtil::DeleteDatabase(DEFAULT_DB_NAME);
PelotonTests::TearDown();
PelotonTest::TearDown();
}
};

Expand Down
2 changes: 1 addition & 1 deletion test/brain/query_clusterer_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ bool ClusterCorrectness(std::set<brain::Cluster *> clusters,
return check;
}

class QueryClustererTests : public PelotonTests {};
class QueryClustererTests : public PelotonTest {};

TEST_F(QueryClustererTests, ClusterTest) {
int num_features = 5;
Expand Down
2 changes: 1 addition & 1 deletion test/brain/query_logger_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
namespace peloton {
namespace test {

class QueryLoggerTests : public PelotonTests {
class QueryLoggerTests : public PelotonTest {
protected:
void SetUp() override {
settings::SettingsManager::SetBool(settings::SettingId::brain, true);
Expand Down
2 changes: 1 addition & 1 deletion test/brain/tensorflow_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ namespace test {
// Tensorflow Tests
//===--------------------------------------------------------------------===//

class TensorflowTests : public PelotonTests {};
class TensorflowTests : public PelotonTest {};

TEST_F(TensorflowTests, BasicTFTest) {
// Check that the tensorflow library imports and prints version info correctly
Expand Down
2 changes: 1 addition & 1 deletion test/catalog/catalog_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ namespace test {
// Catalog Tests
//===--------------------------------------------------------------------===//

class CatalogTests : public PelotonTests {};
class CatalogTests : public PelotonTest {};

TEST_F(CatalogTests, BootstrappingCatalogTest) {
auto catalog = catalog::Catalog::GetInstance();
Expand Down
2 changes: 1 addition & 1 deletion test/catalog/constraints_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ namespace test {
// Constraints Tests
//===--------------------------------------------------------------------===//

class ConstraintsTests : public PelotonTests {};
class ConstraintsTests : public PelotonTest {};

#ifdef CONSTRAINT_NOTNULL_TEST
TEST_F(ConstraintsTests, NOTNULLTest) {
Expand Down
2 changes: 1 addition & 1 deletion test/catalog/manager_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ namespace test {
// Manager Tests
//===--------------------------------------------------------------------===//

class ManagerTests : public PelotonTests {};
class ManagerTests : public PelotonTest {};

void AddTileGroup(UNUSED_ATTRIBUTE uint64_t thread_id) {
// TILES
Expand Down
2 changes: 1 addition & 1 deletion test/catalog/tuple_schema_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ namespace test {
// Tuple Schema Tests
//===--------------------------------------------------------------------===//

class TupleSchemaTests : public PelotonTests {};
class TupleSchemaTests : public PelotonTest {};

TEST_F(TupleSchemaTests, ColumnInfoTest) {
std::vector<catalog::Column> columns;
Expand Down
2 changes: 1 addition & 1 deletion test/codegen/bloom_filter_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
namespace peloton {
namespace test {

class BloomFilterCodegenTests : public PelotonTests {
class BloomFilterCodegenTests : public PelotonTest {
public:
BloomFilterCodegenTests() {
// Create test db
Expand Down
2 changes: 1 addition & 1 deletion test/codegen/function_builder_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
namespace peloton {
namespace test {

class FunctionBuilderTests : public PelotonTests {};
class FunctionBuilderTests : public PelotonTest {};

TEST_F(FunctionBuilderTests, ConstructSingleFunctionTest) {
// Generate a function like so:
Expand Down
2 changes: 1 addition & 1 deletion test/codegen/if_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
namespace peloton {
namespace test {

class IfTests : public PelotonTests {};
class IfTests : public PelotonTest {};

TEST_F(IfTests, IfOnlyTest) {
const std::string func_name = "TestIfOnly";
Expand Down
2 changes: 1 addition & 1 deletion test/codegen/oa_hash_table_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
namespace peloton {
namespace test {

class OAHashTableTests : public PelotonTests {
class OAHashTableTests : public PelotonTest {
public:
// The key and value object we store in the hash table
struct Key {
Expand Down
2 changes: 1 addition & 1 deletion test/codegen/sorter_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ static int CompareTuplesForAscending(const char *a, const char *b) {
return at->col_b - bt->col_b;
}

class SorterTests : public PelotonTests {
class SorterTests : public PelotonTest {
public:
SorterTests() {
// Init
Expand Down
2 changes: 1 addition & 1 deletion test/common/cache_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ namespace test {
// Cache Test
//===--------------------------------------------------------------------===//

class CacheTests : public PelotonTests {};
class CacheTests : public PelotonTest {};

#define CACHE_SIZE 5

Expand Down
2 changes: 1 addition & 1 deletion test/common/container_tuple_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
namespace peloton {
namespace test {

class ContainerTupleTests : public PelotonTests {};
class ContainerTupleTests : public PelotonTest {};

TEST_F(ContainerTupleTests, VectorValueTest) {
std::vector<type::Value> values;
Expand Down
2 changes: 1 addition & 1 deletion test/common/cuckoo_map_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ namespace test {
// Cuckoo Map Test
//===--------------------------------------------------------------------===//

class CuckooMapTests : public PelotonTests {};
class CuckooMapTests : public PelotonTest {};

// Test basic functionality
TEST_F(CuckooMapTests, BasicTest) {
Expand Down
2 changes: 1 addition & 1 deletion test/common/internal_types_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ namespace test {
// Internal Types Test
//===--------------------------------------------------------------------===//

class InternalTypesTests : public PelotonTests {};
class InternalTypesTests : public PelotonTest {};

TEST_F(InternalTypesTests, DatePartTypeTest) {
std::vector<DatePartType> list = {
Expand Down
2 changes: 1 addition & 1 deletion test/common/lock_free_array_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ namespace test {
// LockFreeArray Test
//===--------------------------------------------------------------------===//

class LockFreeArrayTests : public PelotonTests {};
class LockFreeArrayTests : public PelotonTest {};

// Test basic functionality
TEST_F(LockFreeArrayTests, BasicTest) {
Expand Down
2 changes: 1 addition & 1 deletion test/common/logger_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ namespace test {
// Logger Tests
//===--------------------------------------------------------------------===//

class LoggerTests : public PelotonTests {};
class LoggerTests : public PelotonTest {};

TEST_F(LoggerTests, BasicTest) {
LOG_TRACE("trace message");
Expand Down
2 changes: 1 addition & 1 deletion test/common/statement_cache_manager_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
namespace peloton {
namespace test {
// Tests for both statement cache
class StatementCacheTests : public PelotonTests {};
class StatementCacheTests : public PelotonTest {};

TEST_F(StatementCacheTests, InvalidateOneTest) {
// Register the statement cache to the statement cache manager
Expand Down
2 changes: 1 addition & 1 deletion test/common/statement_cache_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
namespace peloton {
namespace test {
// Tests for both statement cache
class StatementCacheTests : public PelotonTests {};
class StatementCacheTests : public PelotonTest {};

// Test statementCache add and get statement
TEST_F(StatementCacheTests, AddGetTest) {
Expand Down
2 changes: 1 addition & 1 deletion test/common/thread_pool_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ namespace test {
// Thread Pool Test
//===--------------------------------------------------------------------===//

class ThreadPoolTests : public PelotonTests {};
class ThreadPoolTests : public PelotonTest {};

TEST_F(ThreadPoolTests, BasicTest) {
ThreadPool thread_pool;
Expand Down
2 changes: 1 addition & 1 deletion test/concurrency/anomaly_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ namespace test {
// These test cases are based on the paper:
// -- "A Critique of ANSI SQL Isolation Levels"

class AnomalyTests : public PelotonTests {};
class AnomalyTests : public PelotonTest {};

static std::vector<ProtocolType> PROTOCOL_TYPES = {
ProtocolType::TIMESTAMP_ORDERING};
Expand Down
2 changes: 1 addition & 1 deletion test/concurrency/decentralized_epoch_manager_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ namespace test {
// TransactionContext Tests
//===--------------------------------------------------------------------===//

class DecentralizedEpochManagerTests : public PelotonTests {};
class DecentralizedEpochManagerTests : public PelotonTest {};

TEST_F(DecentralizedEpochManagerTests, Test) {
concurrency::EpochManagerFactory::Configure(EpochType::DECENTRALIZED_EPOCH);
Expand Down
2 changes: 1 addition & 1 deletion test/concurrency/local_epoch_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ namespace test {
// TransactionContext Tests
//===--------------------------------------------------------------------===//

class LocalEpochTests : public PelotonTests {};
class LocalEpochTests : public PelotonTest {};

TEST_F(LocalEpochTests, EpochCompareTest) {
concurrency::EpochCompare comp;
Expand Down
2 changes: 1 addition & 1 deletion test/concurrency/multi_granularity_access_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ namespace test {
// Multi-Granularity Access Tests
//===--------------------------------------------------------------------===//

class MultiGranularityAccessTests : public PelotonTests {};
class MultiGranularityAccessTests : public PelotonTest {};

static std::vector<ProtocolType> PROTOCOL_TYPES = {
ProtocolType::TIMESTAMP_ORDERING};
Expand Down
2 changes: 1 addition & 1 deletion test/concurrency/mvcc_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ namespace test {
// TransactionContext Tests
//===--------------------------------------------------------------------===//

class MVCCTests : public PelotonTests {};
class MVCCTests : public PelotonTest {};

static std::vector<ProtocolType> PROTOCOL_TYPES = {
ProtocolType::TIMESTAMP_ORDERING};
Expand Down
2 changes: 1 addition & 1 deletion test/concurrency/serializable_transaction_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ namespace test {
// Serializable TransactionContext Tests
//===--------------------------------------------------------------------===//

class SerializableTransactionTests : public PelotonTests {};
class SerializableTransactionTests : public PelotonTest {};

static std::vector<ProtocolType> PROTOCOL_TYPES = {
ProtocolType::TIMESTAMP_ORDERING};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ namespace test {
// TransactionContext Tests
//===--------------------------------------------------------------------===//

class TimestampOrderingTransactionManagerTests : public PelotonTests {};
class TimestampOrderingTransactionManagerTests : public PelotonTest {};

TEST_F(TimestampOrderingTransactionManagerTests, Test) {
concurrency::TransactionManagerFactory::Configure(
Expand Down
2 changes: 1 addition & 1 deletion test/executor/aggregate_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ using ::testing::Return;
namespace peloton {
namespace test {

class AggregateTests : public PelotonTests {};
class AggregateTests : public PelotonTest {};

TEST_F(AggregateTests, SortedDistinctTest) {
// SELECT d, a, b, c FROM table GROUP BY a, b, c, d;
Expand Down
2 changes: 1 addition & 1 deletion test/executor/append_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ namespace test {

namespace {

class AppendTests : public PelotonTests {};
class AppendTests : public PelotonTest {};

void RunTest(executor::AppendExecutor &executor, size_t expected_num_tuples) {
EXPECT_TRUE(executor.Init());
Expand Down
2 changes: 1 addition & 1 deletion test/executor/copy_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ namespace test {
// Copy Tests
//===--------------------------------------------------------------------===//

class CopyTests : public PelotonTests {};
class CopyTests : public PelotonTest {};

TEST_F(CopyTests, CopyingTest) {
auto catalog = catalog::Catalog::GetInstance();
Expand Down
2 changes: 1 addition & 1 deletion test/executor/create_index_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ namespace test {
// Catalog Tests
//===--------------------------------------------------------------------===//

class CreateIndexTests : public PelotonTests {};
class CreateIndexTests : public PelotonTest {};

TEST_F(CreateIndexTests, CreatingIndexTest) {
LOG_INFO("Bootstrapping...");
Expand Down
2 changes: 1 addition & 1 deletion test/executor/create_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ namespace test {
// Catalog Tests
//===--------------------------------------------------------------------===//

class CreateTests : public PelotonTests {};
class CreateTests : public PelotonTest {};

TEST_F(CreateTests, CreatingDBTest) {
// Bootstrap
Expand Down
2 changes: 1 addition & 1 deletion test/executor/delete_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ namespace test {
// Catalog Tests
//===--------------------------------------------------------------------===//

class DeleteTests : public PelotonTests {};
class DeleteTests : public PelotonTest {};

void ShowTable(std::string database_name, std::string table_name) {
// auto table =
Expand Down
2 changes: 1 addition & 1 deletion test/executor/drop_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ namespace test {
// Catalog Tests
//===--------------------------------------------------------------------===//

class DropTests : public PelotonTests {};
class DropTests : public PelotonTest {};

TEST_F(DropTests, DroppingDatabaseTest) {
auto catalog = catalog::Catalog::GetInstance();
Expand Down
2 changes: 1 addition & 1 deletion test/executor/hash_set_op_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ using ::testing::Return;
namespace peloton {
namespace test {

class HashSetOptTests : public PelotonTests {};
class HashSetOptTests : public PelotonTest {};

namespace {

Expand Down
2 changes: 1 addition & 1 deletion test/executor/index_scan_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ using ::testing::Return;
namespace peloton {
namespace test {

class IndexScanTests : public PelotonTests {};
class IndexScanTests : public PelotonTest {};

// Index scan of table with index predicate.
TEST_F(IndexScanTests, IndexPredicateTest) {
Expand Down
2 changes: 1 addition & 1 deletion test/executor/insert_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ namespace test {
// Catalog Tests
//===--------------------------------------------------------------------===//

class InsertTests : public PelotonTests {};
class InsertTests : public PelotonTest {};

TEST_F(InsertTests, InsertRecordTest) {
catalog::Catalog::GetInstance();
Expand Down
2 changes: 1 addition & 1 deletion test/executor/join_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ using ::testing::InSequence;
namespace peloton {
namespace test {

class JoinTests : public PelotonTests {};
class JoinTests : public PelotonTest {};

std::vector<planner::MergeJoinPlan::JoinClause> CreateJoinClauses() {
std::vector<planner::MergeJoinPlan::JoinClause> join_clauses;
Expand Down
2 changes: 1 addition & 1 deletion test/executor/limit_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ using ::testing::Return;
namespace peloton {
namespace test {

class LimitTests : public PelotonTests {};
class LimitTests : public PelotonTest {};

namespace {

Expand Down
2 changes: 1 addition & 1 deletion test/executor/loader_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ namespace test {
// Loader Tests
//===--------------------------------------------------------------------===//

class LoaderTests : public PelotonTests {};
class LoaderTests : public PelotonTest {};

std::atomic<int> loader_tuple_id;

Expand Down
2 changes: 1 addition & 1 deletion test/executor/logical_tile_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ namespace test {
// Logical Tile Tests
//===--------------------------------------------------------------------===//

class LogicalTileTests : public PelotonTests {};
class LogicalTileTests : public PelotonTest {};

TEST_F(LogicalTileTests, TempTableTest) {
const int tuple_count = TESTS_TUPLES_PER_TILEGROUP;
Expand Down
Loading

0 comments on commit a402c4e

Please sign in to comment.