Skip to content

Commit aeaa95d

Browse files
committed
rename
1 parent e74c702 commit aeaa95d

File tree

5 files changed

+29
-25
lines changed

5 files changed

+29
-25
lines changed

CMakeLists.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Copyright (c) 2024 Zubax Robotics <[email protected]>
33

44
cmake_minimum_required(VERSION 3.12)
5-
project(olg_scheduler_tests C CXX)
5+
project(olga_scheduler_tests C CXX)
66
enable_testing()
77

88
set(CTEST_OUTPUT_ON_FAILURE ON)
@@ -47,14 +47,14 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wsign-conversion -Wcast-align -Wmissing
4747
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wtype-limits -Wnon-virtual-dtor -Woverloaded-virtual")
4848
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-attributes")
4949

50-
add_executable(test_olg_scheduler_cpp20 ${CMAKE_CURRENT_SOURCE_DIR}/tests/test_olg_scheduler.cpp)
51-
set_target_properties(test_olg_scheduler_cpp20 PROPERTIES CXX_STANDARD 20)
52-
target_include_directories(test_olg_scheduler_cpp20 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include/olg_scheduler)
53-
target_include_directories(test_olg_scheduler_cpp20 SYSTEM PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/lib/cavl)
54-
target_link_libraries(test_olg_scheduler_cpp20
50+
add_executable(test_olga_scheduler_cpp20 ${CMAKE_CURRENT_SOURCE_DIR}/tests/test_olga_scheduler.cpp)
51+
set_target_properties(test_olga_scheduler_cpp20 PROPERTIES CXX_STANDARD 20)
52+
target_include_directories(test_olga_scheduler_cpp20 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include/olga_scheduler)
53+
target_include_directories(test_olga_scheduler_cpp20 SYSTEM PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/lib/cavl)
54+
target_link_libraries(test_olga_scheduler_cpp20
5555
PRIVATE
5656
GTest::gmock_main
5757
)
5858

5959
include(GoogleTest)
60-
gtest_discover_tests(test_olg_scheduler_cpp20)
60+
gtest_discover_tests(test_olga_scheduler_cpp20)

README.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
# olg_scheduler
1+
# olga_scheduler
22

3-
[![Main Workflow](https://github.com/zubax/olg_scheduler/actions/workflows/main.yml/badge.svg)](https://github.com/zubax/olg_scheduler/actions/workflows/main.yml)
3+
[![Main Workflow](https://github.com/zubax/olga_scheduler/actions/workflows/main.yml/badge.svg)](https://github.com/zubax/olga_scheduler/actions/workflows/main.yml)
44

55
Generic single-file implementation of scheduler suitable for deeply embedded systems.
6-
"OLG" happens to be an abbreviation of [Okay Let's Go](https://www.youtube.com/watch?v=Jo6fKboqfMs)
7-
and also a reference to the fact that it has a logarithmic asymptotic complexity.
8-
**Simply copy `olg_scheduler.hpp` into your project tree and you are ready to roll.**
6+
"OLGa" is a reference to the fact that it has a logarithmic asymptotic complexity.
7+
**Simply copy `olga_scheduler.hpp` into your project tree and you are ready to roll.**
98
The only dependency is the CAVL (`cavl.hpp`) header-only library
109
(>= [v3.1.0](https://github.com/pavel-kirienko/cavl/tree/3.1.0)).
1110

@@ -14,3 +13,8 @@ The code is fully covered by manual tests with full state space exploration.
1413

1514
For development-related instructions please refer to the CI configuration files.
1615
To release a new version, simply create a new tag.
16+
17+
<!--suppress CheckImageSize, HtmlDeprecatedAttribute -->
18+
<p align="center">
19+
<img src="/docs/St_Olga_by_Nesterov_in_1892_(cropped).jpg" alt="Olga of Kiev" width=256>
20+
</p>
39.5 KB
Loading

include/olg_scheduler/olg_scheduler.hpp renamed to include/olga_scheduler/olga_scheduler.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/// Source: https://github.com/zubax/olg_scheduler
1+
/// Source: https://github.com/zubax/olga_scheduler
22
///
33
/// Copyright (c) 2024 Zubax Robotics <[email protected]>
44
///
@@ -26,7 +26,7 @@
2626
#include <utility>
2727
#include <variant>
2828

29-
namespace olg_scheduler
29+
namespace olga_scheduler
3030
{
3131

3232
template <typename TimePoint>
@@ -362,4 +362,4 @@ class EventLoop final
362362

363363
}; // EventLoop
364364

365-
} // namespace olg_scheduler
365+
} // namespace olga_scheduler

tests/test_olg_scheduler.cpp renamed to tests/test_olga_scheduler.cpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/// Source: https://github.com/zubax/olg_scheduler
1+
/// Source: https://github.com/zubax/olga_scheduler
22
///
33
/// Copyright (c) 2024 Zubax Robotics <[email protected]>
44
///
@@ -15,7 +15,7 @@
1515
/// OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
1616
/// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1717

18-
#include "olg_scheduler.hpp"
18+
#include "olga_scheduler.hpp"
1919

2020
#include <gmock/gmock.h>
2121
#include <gtest/gtest.h>
@@ -75,10 +75,10 @@ class SteadyClockMock final
7575

7676
} // namespace
7777

78-
namespace olg_scheduler::verification
78+
namespace olga_scheduler::verification
7979
{
8080

81-
TEST(TestOlgScheduler, EventLoopBasic)
81+
TEST(TestOlgaScheduler, EventLoopBasic)
8282
{
8383
using std::chrono_literals::operator""ms;
8484

@@ -227,7 +227,7 @@ TEST(TestOlgScheduler, EventLoopBasic)
227227
EXPECT_FALSE(d);
228228
}
229229

230-
TEST(TestOlgScheduler, EventLoopTotalOrdering)
230+
TEST(TestOlgaScheduler, EventLoopTotalOrdering)
231231
{
232232
using std::chrono_literals::operator""ms;
233233

@@ -258,7 +258,7 @@ TEST(TestOlgScheduler, EventLoopTotalOrdering)
258258
EXPECT_THAT(c, 5);
259259
}
260260

261-
TEST(TestOlgScheduler, EventLoopPoll)
261+
TEST(TestOlgaScheduler, EventLoopPoll)
262262
{
263263
using time_point = SteadyClockMock::time_point;
264264
using std::chrono_literals::operator""ms;
@@ -294,7 +294,7 @@ TEST(TestOlgScheduler, EventLoopPoll)
294294
EXPECT_THAT(evl.getTree()[0U]->getDeadline().value().time_since_epoch(), 210ms); // Skipped ahead!
295295
}
296296

297-
TEST(TestOlgScheduler, EventLoopDefer_single_overdue)
297+
TEST(TestOlgaScheduler, EventLoopDefer_single_overdue)
298298
{
299299
using time_point = SteadyClockMock::time_point;
300300
using std::chrono_literals::operator""ms;
@@ -316,7 +316,7 @@ TEST(TestOlgScheduler, EventLoopDefer_single_overdue)
316316
EXPECT_THAT(out.approx_now.time_since_epoch(), 1030ms);
317317
}
318318

319-
TEST(TestOlgScheduler, EventLoopDefer_long_running_callback)
319+
TEST(TestOlgaScheduler, EventLoopDefer_long_running_callback)
320320
{
321321
using duration = SteadyClockMock::duration;
322322
using std::chrono_literals::operator""ms;
@@ -345,7 +345,7 @@ TEST(TestOlgScheduler, EventLoopDefer_long_running_callback)
345345
std::make_tuple("b", 20ms, 100ms)));
346346
}
347347

348-
TEST(TestOlgScheduler, HandleMovement)
348+
TEST(TestOlgaScheduler, HandleMovement)
349349
{
350350
using duration = SteadyClockMock::duration;
351351
using std::chrono_literals::operator""ms;
@@ -417,7 +417,7 @@ TEST(TestOlgScheduler, HandleMovement)
417417
EXPECT_THAT(calls, IsEmpty());
418418
}
419419

420-
} // namespace olg_scheduler::verification
420+
} // namespace olga_scheduler::verification
421421

422422
// NOLINTEND(cppcoreguidelines-avoid-magic-numbers, readability-magic-numbers)
423423
// NOLINTEND(readability-function-cognitive-complexity, misc-const-correctness)

0 commit comments

Comments
 (0)