File tree Expand file tree Collapse file tree 4 files changed +10
-15
lines changed
tests/cpp_validation_tests Expand file tree Collapse file tree 4 files changed +10
-15
lines changed Original file line number Diff line number Diff line change 5353 clang-tidy :
5454 uses : " ./.github/workflows/clang-tidy.yml"
5555 with :
56- target : " power_grid_model_api_tests "
56+ target : " all "
5757
5858 ci-passed :
5959 runs-on : ubuntu-latest
Original file line number Diff line number Diff line change 6565 run : |
6666 brew install boost eigen nlohmann-json msgpack-cxx doctest
6767
68- - name : Set build target in case of push
69- if : inputs.target == null
70- run : |
71- echo "TARGET=power_grid_model_api_tests" >> $GITHUB_ENV
72-
7368 - name : Set build target in case of workflow dispatch
7469 if : inputs.target != null
7570 run : |
7873 - name : Build
7974 run : |
8075 cmake --preset ${{ env.PRESET }}
81- cmake --build --preset ${{ env.PRESET }} --target ${{ env.TARGET }}
76+ cmake --build --preset ${{ env.PRESET }} --target ${{ env.TARGET }} -- -k 0
Original file line number Diff line number Diff line change 3131 clang-tidy :
3232 uses : " ./.github/workflows/clang-tidy.yml"
3333 with :
34- target : " all power_grid_model_benchmark_cpp "
34+ target : " all"
3535
3636 citations :
3737 uses : " ./.github/workflows/citations.yml"
Original file line number Diff line number Diff line change @@ -37,13 +37,6 @@ class UnsupportedValidationCase : public PowerGridError {
3737
3838using nlohmann::json;
3939
40- auto read_file (std::filesystem::path const & path) {
41- std::ifstream const f{path};
42- std::ostringstream buffer;
43- buffer << f.rdbuf ();
44- return buffer.str ();
45- }
46-
4740auto read_json (std::filesystem::path const & path) {
4841 json j;
4942 std::ifstream f{path};
@@ -77,6 +70,13 @@ OwningDataset load_dataset(std::filesystem::path const& path) {
7770// Issue in msgpack, reported in https://github.com/msgpack/msgpack-c/issues/1098
7871// May be a Clang Analyzer bug
7972#ifndef __clang_analyzer__ // TODO(mgovers): re-enable this when issue in msgpack is fixed
73+ auto read_file = [](std::filesystem::path const & read_file_path) {
74+ std::ifstream const f{read_file_path};
75+ std::ostringstream buffer;
76+ buffer << f.rdbuf ();
77+ return buffer.str ();
78+ };
79+
8080 Deserializer deserializer{read_file (path), PGM_json};
8181 auto & writable_dataset = deserializer.get_dataset ();
8282 auto dataset = create_owning_dataset (writable_dataset);
You can’t perform that action at this time.
0 commit comments