Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
03fc26b
Up version to v0.1.9
sea5kg Jun 4, 2025
ec1fd82
Redesign unit-tests.wsjcpp to cmake tests
sea5kg Jun 4, 2025
dca08eb
Redesign unit_test_remove_element_in_array to test_remove_element_fro…
sea5kg Jun 7, 2025
84c6250
Redeisgn unit_test_read_write_file to test_read_write_file.cpp
sea5kg Jun 7, 2025
83c1057
Redesign unit_test_yaml_parser_hierarchical_map to test_yaml_parser_h…
sea5kg Jun 7, 2025
d0971b6
redesing unit_test_yaml_parser_quotes to test_yaml_parser_quotes
sea5kg Jun 7, 2025
2c59999
Remove deployment from wsjcpp-yaml.cbproj
sea5kg Dec 17, 2025
66b20e3
Redesign unit-tests.wsjcpp/src/unit_test_append_elements.cpp to src/…
sea5kg Dec 17, 2025
ab6349a
Removed unused comment long lines
sea5kg Dec 17, 2025
a44c5f9
Redesigned unit_test_cursor.cpp -> test_cursor.cpp
sea5kg Dec 17, 2025
eaed388
fix warnings for msbuild (int -> size_t)
sea5kg Dec 17, 2025
53118c8
Added --output-on-failure .github/workflows/cmake-multi-platform.yml …
sea5kg Dec 17, 2025
6518c01
Fix path for a test files
sea5kg Dec 17, 2025
d00e034
Improve run ctests in build_simple.sh
sea5kg Dec 17, 2025
2447a52
Disabled test_memory_leaks.cpp for linux
sea5kg Dec 17, 2025
3e2c437
Fix build test for windows
sea5kg Dec 17, 2025
7a2bf8b
Fix disable test_memory_leaks_linux.cpp for windows platform
sea5kg Dec 17, 2025
8cc4d56
Fix warning build for windows warning LNK4044: unrecognized option '/…
sea5kg Dec 17, 2025
989cd41
Fix build on windows for test_float_value.cpp and for test_double_val…
sea5kg Dec 17, 2025
71406be
Redesign unit_test_read_yaml.cpp -> test_read_yaml.cpp
sea5kg Dec 17, 2025
4a05aab
Moved src/tests/data-tests to src/tests/data
sea5kg Dec 18, 2025
892b6b8
redesign search path to test data
sea5kg Dec 18, 2025
483795c
unit_test_read_wsjcpp_hold_yaml.cpp -> test_read_wsjcpp_hold_yaml.cpp
sea5kg Dec 18, 2025
6a3b6f3
unit-tests.wsjcpp/src/unit_test_yaml_parser_simple_map.cpp -> test_ya…
sea5kg Dec 18, 2025
16e21bb
Moved parser_yaml.py to root
sea5kg Dec 18, 2025
b946ff3
Redesign unit_test_yaml_parser_simple_array.cpp to test_yaml_parser_s…
sea5kg Dec 18, 2025
41e1bca
Removed dependency wsjcpp-core
sea5kg Dec 18, 2025
52bcb83
Updated CHANGELOG.md
sea5kg Dec 18, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/cmake-multi-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,4 @@ jobs:
working-directory: ${{ steps.strings.outputs.build-output-dir }}
# Execute tests defined by the CMake configuration. Note that --build-config is needed because the default Windows generator is a multi-config generator (Visual Studio generator).
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
run: ctest --build-config ${{ matrix.build_type }}
run: ctest --output-on-failure --build-config ${{ matrix.build_type }}
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
wsjcpp-yaml
/tmp
/build
.wsjcpp-yaml-logs/*
.vscode
.wsjcpp-cache/*
Expand Down Expand Up @@ -51,4 +52,4 @@ __recovery
*.ils
*.tds
*.pdb
*.map
*.map
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ All notable changes to wsjcpp-yaml project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [v0.1.9] - 2025-12-18 (2025 Dec 18)

- Migrated unit-tests.wsjcpp to ctest
- Fixed config for .github actions

## [v0.1.8] - 2025-06-03 (2025 Jun 3)

- Fixed #35 Add valFloat / valDouble
Expand Down
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,11 @@ include_directories(${WSJCPP_INCLUDE_DIRS})

add_executable ("wsjcpp-yaml" ${WSJCPP_SOURCES})

target_link_libraries("wsjcpp-yaml" -lpthread ${WSJCPP_LIBRARIES} )
if(WIN32)
target_link_libraries("wsjcpp-yaml" ${WSJCPP_LIBRARIES} )
else()
target_link_libraries("wsjcpp-yaml" -lpthread ${WSJCPP_LIBRARIES} )
endif()

install(
TARGETS
Expand Down
2 changes: 1 addition & 1 deletion build_simple.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ check_ret $? "configure"
cmake --build ./tmp/linux_release --config Release
check_ret $? "build"

cd ./tmp/linux_release && ctest --output-on-failure
cd ./tmp/linux_release && ctest --output-on-failure --build-config Release
check_ret $? "tests"
4 changes: 2 additions & 2 deletions unit-tests.wsjcpp/parser_yaml.py → parser_yaml.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
import yaml


a_yaml_file = open("./data-tests/read-write-file/docker-compose.yml")
a_yaml_file = open("./data/read-write-file/docker-compose.yml")

parsed_yaml_file = yaml.load(a_yaml_file, Loader=yaml.FullLoader)

print(parsed_yaml_file)

a_yaml_file2 = open("./data-tests/parser-simple-array/file.yml")
a_yaml_file2 = open("./data/parser-simple-array/file.yml")

parsed_yaml_file2 = yaml.load(a_yaml_file2, Loader=yaml.FullLoader)

Expand Down
8 changes: 2 additions & 6 deletions src.wsjcpp/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Automaticly generated by wsjcpp@v0.2.4
# Automaticly generated by wsjcpp@v0.2.5
cmake_minimum_required(VERSION 3.0)

add_definitions(-DWSJCPP_APP_VERSION="v0.1.8")
add_definitions(-DWSJCPP_APP_VERSION="v0.1.9")
add_definitions(-DWSJCPP_APP_NAME="wsjcpp-yaml")

if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
Expand All @@ -17,9 +17,5 @@ set (WSJCPP_SOURCES "")
find_package(Threads REQUIRED)
list (APPEND WSJCPP_LIBRARIES ${CMAKE_THREAD_LIBS_INIT})

# wsjcpp-core:v0.2.1
list (APPEND WSJCPP_INCLUDE_DIRS "${CMAKE_SOURCE_DIR}/./src.wsjcpp/wsjcpp_core/")
list (APPEND WSJCPP_SOURCES "${CMAKE_SOURCE_DIR}/./src.wsjcpp/wsjcpp_core/wsjcpp_core.cpp")
list (APPEND WSJCPP_SOURCES "${CMAKE_SOURCE_DIR}/./src.wsjcpp/wsjcpp_core/wsjcpp_core.h")


81 changes: 0 additions & 81 deletions src.wsjcpp/wsjcpp_core/generate.Class.wsjcpp-script

This file was deleted.

70 changes: 0 additions & 70 deletions src.wsjcpp/wsjcpp_core/generate.WsjcppUnitTest.wsjcpp-script

This file was deleted.

98 changes: 0 additions & 98 deletions src.wsjcpp/wsjcpp_core/wsjcpp.hold.yml

This file was deleted.

Loading