diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-11-24 02:42:00 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2025-11-24 02:43:45 +0100 |
| commit | fc5bab30ba4d77a5c040f2c461aa8b2dd5361482 (patch) | |
| tree | 9aa34c2bcf93b869238e8499245e5afb0cc5c36f /tools/StepsTool.cc | |
| parent | 88089b7dc28e47bb94de6e6de123e1be58f7dd5f (diff) | |
feat: system and CI improvements.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'tools/StepsTool.cc')
| -rw-r--r-- | tools/StepsTool.cc | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/tools/StepsTool.cc b/tools/StepsTool.cc new file mode 100644 index 0000000..ccad634 --- /dev/null +++ b/tools/StepsTool.cc @@ -0,0 +1,36 @@ +/* =========================================================== + + Copyright (C) 2025 Amlal El Mahrouss, Licensed under the Apache 2.0 license + +=========================================================== */ + +#include <io/print.hpp> +#include <steps/steps.hpp> + +/// =========================================================== /// +/// Use operators from steps namespace to compare steps records. +/// =========================================================== /// +using namespace ocl::steps::operators; + +const auto kStepsFileRoot = "/system/install.stp"; + +/// =========================================================== /// +/// @brief Main function for running steps on NeKernel. +/// =========================================================== /// +int main(void) { + ocl::io::print("steps: running steps for program...\n"); + + std::ifstream file(kStepsFileRoot); + ocl::steps::record steps; + + file >> steps; + + if (!ocl::steps::is_valid(steps)) + return EXIT_FAILURE; + + /// AMLALE: Read steps from file and process them. + + ocl::io::print("steps: done.\n"); + + return EXIT_SUCCESS; +}
\ No newline at end of file |
