-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild_test.cpp
More file actions
46 lines (37 loc) · 1.18 KB
/
Copy pathbuild_test.cpp
File metadata and controls
46 lines (37 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*
* Simple build test for AgentZero Core
* Tests basic compilation without running full tests
*/
#include <iostream>
#include <memory>
// Mock the dependencies for testing compilation
namespace opencog {
class CogServer {
public:
std::shared_ptr<void> getAtomSpace() { return nullptr; }
};
class Module {
protected:
CogServer& _cogserver;
public:
Module(CogServer& cs) : _cogserver(cs) {}
virtual ~Module() {}
virtual void init() = 0;
virtual bool config(const char*) = 0;
};
}
// Include our headers (this tests compilation)
#include "opencog/agentzero/AgentZeroCore.h"
using namespace opencog;
using namespace opencog::agentzero;
int main() {
std::cout << "AgentZero Core compilation test" << std::endl;
// Test basic instantiation
CogServer cogserver;
AgentZeroCore agent(cogserver, "TestAgent");
std::cout << "Agent name: " << agent.getAgentName() << std::endl;
std::cout << "Running: " << agent.isRunning() << std::endl;
std::cout << "Initialized: " << agent.isInitialized() << std::endl;
std::cout << "Build test completed successfully!" << std::endl;
return 0;
}