Compare commits
3 Commits
Release-1.
...
main
Author | SHA1 | Date | |
---|---|---|---|
1c39b8eda6 | |||
bae26cf80a | |||
76a384b892 |
@@ -24,18 +24,11 @@ include(cmake/CPM.cmake)
|
||||
file(GLOB_RECURSE jtest_HEADERS "include/jtest/*.h" "include/jtest/*.hpp")
|
||||
file(GLOB_RECURSE jtest_SRC "src/jtest/*.c" "src/jtest/*.cpp")
|
||||
|
||||
# TODO: Fix Event needing to be included too, it should be an automatically-managed depencency of jlog!!!
|
||||
CPMAddPackage(
|
||||
NAME Event
|
||||
URL https://git.redacted.cc/josh/Event/archive/Release-10.zip
|
||||
)
|
||||
|
||||
CPMAddPackage(
|
||||
NAME jlog
|
||||
URL https://git.redacted.cc/josh/jlog/archive/Prerelease-16.zip
|
||||
URL https://git.redacted.cc/josh/jlog/archive/Prerelease-19.zip
|
||||
)
|
||||
|
||||
|
||||
if (UNIX)
|
||||
add_library(jtest SHARED ${jtest_SRC})
|
||||
endif()
|
||||
|
@@ -1,7 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include <Event.h>
|
||||
#include <EventConnection.h>
|
||||
|
||||
#include <jtest/Test.hpp>
|
||||
#include <jtest/UnitLogger.hpp>
|
||||
|
2
main.cpp
2
main.cpp
@@ -16,6 +16,8 @@
|
||||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
mcolor::windowsSaneify();
|
||||
|
||||
jtest::Unit u{"jtest-demo"};
|
||||
u += jtest::Test{"check_true", [] () {
|
||||
jtest::check(true);
|
||||
|
@@ -21,7 +21,7 @@ namespace jtest {
|
||||
// TODO: output "Running Test Unit <name> with <N> tests.
|
||||
Log(std::format("Running test unit with {} tests...", tests_total));
|
||||
|
||||
for (event_ptr &connection_ptr: this->listeners) {
|
||||
for (EventPtr &connection_ptr: this->listeners) {
|
||||
//ulog(std::format("Running Test <{}> [{}/{}]", connection_ptr->callback.Name(), tcnt, this->listeners.size()));
|
||||
|
||||
bool this_test_passed = false;
|
||||
|
Reference in New Issue
Block a user