diff --git a/.github/workflows/centos7.yml b/.github/workflows/centos7.yml
index b43fde4cd1..5f5a34d4b6 100644
--- a/.github/workflows/centos7.yml
+++ b/.github/workflows/centos7.yml
@@ -46,7 +46,28 @@ jobs:
yum install -y centos-release-scl
yum install -y devtoolset-10-gcc*
- - uses: ./.github/workflows/install-cmake-328
+ - name: Install cmake 3.28
+ run: pip3 install cmake==3.28.4
+
+ - name: Install VCPKG
+ # Note: we need to use environment variables instead of workflow variables
+ # because github messes up path variables when running in container,
+ # see https://github.com/actions/runner/issues/2058
+ run: |
+ git submodule update --init vcpkg && ./vcpkg/bootstrap-vcpkg.sh -disableMetrics
+ echo "VCPKG_ROOT=$GITHUB_WORKSPACE/vcpkg" >> $GITHUB_ENV
+ echo "VCPKG_CACHE_DIR=$GITHUB_WORKSPACE/vcpkg_cache" >> $GITHUB_ENV
+ echo "VCPKG_BINARY_SOURCES=clear;files,$GITHUB_WORKSPACE/vcpkg_cache,readwrite" >> $GITHUB_ENV
+
+ - name: Restore vcpkg binary dir from cache
+ id: cache-vcpkg-binary
+ # Note: we are stuck with v3, because v4 is not compatible with oracle8 image
+ uses: actions/cache/restore@v3
+ with:
+ path: ${{ env.VCPKG_CACHE_DIR }}
+ key: vcpkg-cache-centos7-${{ hashFiles('src/vcpkg.json', '.git/modules/vcpkg/HEAD') }}
+ # Allows to restore a cache when deps have only partially changed (like adding a dependency)
+ restore-keys: vcpkg-cache-centos7-
- name: Init submodule
run: |
@@ -80,20 +101,22 @@ jobs:
dnf -y config-manager --add-repo https://cli.github.com/packages/rpm/gh-cli.repo
dnf -y install gh
-
- name: Configure
run: |
- source /opt/rh/devtoolset-10/enable
- cmake -B _build -S src \
- -DCMAKE_C_COMPILER_LAUNCHER=ccache \
- -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
- -DDEPS_INSTALL_DIR=/rte-antares-deps-Release \
- -DCMAKE_BUILD_TYPE=Release \
- -DBUILD_TESTING=ON \
- -DBUILD_not_system=OFF \
- -DBUILD_TOOLS=ON \
- -DBUILD_UI=OFF \
- -DCMAKE_PREFIX_PATH=${{ env.ORTOOLSDIR }}/install \
+ source /opt/rh/devtoolset-10/enable
+ source /opt/rh/rh-git227/enable
+ cmake -B _build -S src \
+ -DCMAKE_C_COMPILER_LAUNCHER=ccache \
+ -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
+ -DCMAKE_TOOLCHAIN_FILE=$GITHUB_WORKSPACE/vcpkg/scripts/buildsystems/vcpkg.cmake \
+ -DVCPKG_TARGET_TRIPLET=x64-linux-release \
+ -DDEPS_INSTALL_DIR=/rte-antares-deps-Release \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DBUILD_TESTING=ON \
+ -DBUILD_not_system=OFF \
+ -DBUILD_TOOLS=ON \
+ -DBUILD_UI=OFF \
+ -DCMAKE_PREFIX_PATH=${{ env.ORTOOLSDIR }}/install \
- name: Build
run: |
@@ -139,5 +162,11 @@ jobs:
tag: ${{ github.event.inputs.release_tag }}
run: |
gh release upload "$tag" _build/*.tar.gz _build/*.rpm
-
-
+
+ - name: Cache vcpkg binary dir
+ if: always()
+ id: save-cache-vcpkg-binary
+ uses: actions/cache/save@v3
+ with:
+ path: ${{ env.VCPKG_CACHE_DIR }}
+ key: vcpkg-cache-centos7-${{ hashFiles('src/vcpkg.json', '.git/modules/vcpkg/HEAD') }}
diff --git a/.github/workflows/oracle8.yml b/.github/workflows/oracle8.yml
index 82666b7876..23c5d49d57 100644
--- a/.github/workflows/oracle8.yml
+++ b/.github/workflows/oracle8.yml
@@ -25,7 +25,6 @@ env:
IS_PUSH: ${{ github.event_name == 'push' }}
REF: ${{ inputs.target_branch =='' && github.ref_name || inputs.target_branch}}
-
jobs:
build:
@@ -50,7 +49,28 @@ jobs:
- name: Checkout
run: |
- git clone $GITHUB_SERVER_URL/$GITHUB_REPOSITORY.git -b ${{ env.REF }} .
+ git clone $GITHUB_SERVER_URL/$GITHUB_REPOSITORY.git -b ${{ env.REF }} .
+ git config --global safe.directory '*'
+
+ - name: Install VCPKG
+ # Note: we need to use environment variables instead of workflow variables
+ # because github messes up path variables when running in container,
+ # see https://github.com/actions/runner/issues/2058
+ run: |
+ git submodule update --init vcpkg && ./vcpkg/bootstrap-vcpkg.sh -disableMetrics
+ echo "VCPKG_ROOT=$GITHUB_WORKSPACE/vcpkg" >> $GITHUB_ENV
+ echo "VCPKG_CACHE_DIR=$GITHUB_WORKSPACE/vcpkg_cache" >> $GITHUB_ENV
+ echo "VCPKG_BINARY_SOURCES=clear;files,$GITHUB_WORKSPACE/vcpkg_cache,readwrite" >> $GITHUB_ENV
+
+ - name: Restore vcpkg binary dir from cache
+ id: cache-vcpkg-binary
+ # Note: we are stuck with v3, because v4 is not compatible with oracle8 image
+ uses: actions/cache/restore@v3
+ with:
+ path: ${{ env.VCPKG_CACHE_DIR }}
+ key: vcpkg-cache-oracle8-${{ hashFiles('src/vcpkg.json', '.git/modules/vcpkg/HEAD') }}
+ # Allows to restore a cache when deps have only partially changed (like adding a dependency)
+ restore-keys: vcpkg-cache-oracle8-
- name: Config OR-Tools URL
run: |
@@ -65,9 +85,7 @@ jobs:
rm ortools.zip
- name: Init submodule
- run: |
- git config --global safe.directory '*'
- git submodule update --init --remote src/antares-deps src/tests/resources/Antares_Simulator_Tests
+ run: git submodule update --init --remote src/antares-deps src/tests/resources/Antares_Simulator_Tests
- name: Install dependencies
run: |
@@ -82,13 +100,15 @@ jobs:
- name: Configure
run: |
- source /opt/rh/gcc-toolset-11/enable
- cmake -B _build -S src \
- -DCMAKE_BUILD_TYPE=Release \
- -DBUILD_TESTING=OFF \
- -DBUILD_TOOLS=ON \
- -DBUILD_UI=OFF \
- -DCMAKE_PREFIX_PATH=${{ env.ORTOOLS_DIR }}/install
+ source /opt/rh/gcc-toolset-11/enable
+ cmake -B _build -S src \
+ -DCMAKE_TOOLCHAIN_FILE=$GITHUB_WORKSPACE/vcpkg/scripts/buildsystems/vcpkg.cmake \
+ -DVCPKG_TARGET_TRIPLET=x64-linux-release \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DBUILD_TESTING=ON \
+ -DBUILD_TOOLS=ON \
+ -DBUILD_UI=OFF \
+ -DCMAKE_PREFIX_PATH=${{ env.ORTOOLS_DIR }}/install
- name: Build
run: |
@@ -138,3 +158,11 @@ jobs:
tag: ${{ github.event.inputs.release_tag }}
run: |
gh release upload "$tag" _build/*.tar.gz _build/*.rpm
+
+ - name: Cache vcpkg binary dir
+ if: always()
+ id: save-cache-vcpkg-binary
+ uses: actions/cache/save@v3
+ with:
+ path: ${{ env.VCPKG_CACHE_DIR }}
+ key: vcpkg-cache-oracle8-${{ hashFiles('src/vcpkg.json', '.git/modules/vcpkg/HEAD') }}
diff --git a/.github/workflows/sonarcloud.yml b/.github/workflows/sonarcloud.yml
index 9c061abe15..cf326c2d72 100644
--- a/.github/workflows/sonarcloud.yml
+++ b/.github/workflows/sonarcloud.yml
@@ -15,12 +15,26 @@ jobs:
env:
SONAR_SERVER_URL: "https://sonarcloud.io"
ORTOOLS_DIR: ${{ github.workspace }}/or-tools
+ # Caching strategy of VCPKG dependencies
+ VCPKG_BINARY_SOURCES: "clear;files,${{ github.workspace }}/vcpkg_cache,readwrite"
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
+ - name: Install VCPKG
+ run: git submodule update --init vcpkg && ./vcpkg/bootstrap-vcpkg.sh -disableMetrics
+
+ - name: Restore vcpkg binary dir from cache
+ id: cache-vcpkg-binary
+ uses: actions/cache/restore@v4
+ with:
+ path: ${{ github.workspace }}/vcpkg_cache
+ key: vcpkg-cache-ubuntu-${{ hashFiles('src/vcpkg.json', '.git/modules/vcpkg/HEAD') }}
+ # Allows to restore a cache when deps have only partially changed (like adding a dependency)
+ restore-keys: vcpkg-cache-ubuntu-
+
- name: Config OR-Tools URL
run: |
echo "ORTOOLS_URL=https://github.com/rte-france/or-tools/releases/download/$(cat ortools_tag)/ortools_cxx_ubuntu-20.04_static_sirius.zip" >> $GITHUB_ENV
@@ -81,6 +95,8 @@ jobs:
-DCMAKE_C_COMPILER=/usr/bin/gcc-10 \
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
-DCMAKE_CXX_COMPILER=/usr/bin/g++-10 \
+ -DCMAKE_TOOLCHAIN_FILE=${{ github.workspace }}/vcpkg/scripts/buildsystems/vcpkg.cmake \
+ -DVCPKG_TARGET_TRIPLET=x64-linux-release \
-DDEPS_INSTALL_DIR=./rte-antares-deps-Debug \
-DCODE_COVERAGE=ON \
-DCMAKE_BUILD_TYPE=Debug \
@@ -109,3 +125,11 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: sonar-scanner --define sonar.host.url="${{ env.SONAR_SERVER_URL }}"
+
+ - name: Cache vcpkg binary dir
+ if: always()
+ id: save-cache-vcpkg-binary
+ uses: actions/cache/save@v4
+ with:
+ path: ${{ github.workspace }}/vcpkg_cache
+ key: vcpkg-cache-ubuntu-${{ hashFiles('src/vcpkg.json', '.git/modules/vcpkg/HEAD') }}
diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml
index 0ee8848977..2de211c08c 100644
--- a/.github/workflows/ubuntu.yml
+++ b/.github/workflows/ubuntu.yml
@@ -40,6 +40,8 @@ jobs:
env:
ORTOOLS_DIR: ${{ github.workspace }}/or-tools
os: ubuntu-20.04
+ # Caching strategy of VCPKG dependencies
+ VCPKG_BINARY_SOURCES: "clear;files,${{ github.workspace }}/vcpkg_cache,readwrite"
runs-on: ubuntu-20.04
if: "!contains(github.event.head_commit.message, '[skip ci]')"
@@ -49,6 +51,18 @@ jobs:
with:
ref: ${{ env.REF }}
+ - name: Install VCPKG
+ run: git submodule update --init vcpkg && ./vcpkg/bootstrap-vcpkg.sh -disableMetrics
+
+ - name: Restore vcpkg binary dir from cache
+ id: cache-vcpkg-binary
+ uses: actions/cache/restore@v4
+ with:
+ path: ${{ github.workspace }}/vcpkg_cache
+ key: vcpkg-cache-ubuntu-${{ hashFiles('src/vcpkg.json', '.git/modules/vcpkg/HEAD') }}
+ # Allows to restore a cache when deps have only partially changed (like adding a dependency)
+ restore-keys: vcpkg-cache-ubuntu-
+
- name: ccache
uses: hendrikmuhs/ccache-action@v1.2
with:
@@ -78,9 +92,9 @@ jobs:
- name: Install libraries
run: |
- sudo apt-get update
- sudo apt-get install uuid-dev libwxgtk3.0-gtk3-dev
- sudo apt-get install g++-10 gcc-10
+ sudo apt-get update
+ sudo apt-get install uuid-dev libwxgtk3.0-gtk3-dev
+ sudo apt-get install g++-10 gcc-10
- name: export wxWidgets script
shell: bash
@@ -135,26 +149,25 @@ jobs:
- name: Configure
run: |
- cmake -B _build -S src \
- -DCMAKE_C_COMPILER_LAUNCHER=ccache \
- -DVCPKG_ROOT="${{env.VCPKG_ROOT}}" \
- -DVCPKG_TARGET_TRIPLET=${{ env.triplet }} \
- -DCMAKE_C_COMPILER=/usr/bin/gcc-10 \
- -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
- -DCMAKE_CXX_COMPILER=/usr/bin/g++-10 \
- -DDEPS_INSTALL_DIR=${{github.workspace}}/rte-antares-deps-Release \
- -DCMAKE_BUILD_TYPE=Release \
- -DBUILD_TESTING=ON \
- -DBUILD_not_system=OFF \
- -DBUILD_TOOLS=ON \
- -DCMAKE_PREFIX_PATH=${{ env.ORTOOLS_DIR }}/install \
- -DPython3_EXECUTABLE="${{ env.Python3_ROOT_DIR }}/bin/python"
+ cmake -B _build -S src \
+ -DCMAKE_C_COMPILER_LAUNCHER=ccache \
+ -DCMAKE_C_COMPILER=/usr/bin/gcc-10 \
+ -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
+ -DCMAKE_CXX_COMPILER=/usr/bin/g++-10 \
+ -DCMAKE_TOOLCHAIN_FILE=${{ github.workspace }}/vcpkg/scripts/buildsystems/vcpkg.cmake \
+ -DVCPKG_TARGET_TRIPLET=x64-linux-release \
+ -DDEPS_INSTALL_DIR=${{github.workspace}}/rte-antares-deps-Release \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DBUILD_TESTING=ON \
+ -DBUILD_not_system=OFF \
+ -DBUILD_TOOLS=ON \
+ -DCMAKE_PREFIX_PATH=${{ env.ORTOOLS_DIR }}/install \
+ -DPython3_EXECUTABLE="${{ env.Python3_ROOT_DIR }}/bin/python"
- name: Build
run: |
cmake --build _build -j$(nproc)
-
# simtest
- name: Read simtest version
id: simtest-version
@@ -338,3 +351,11 @@ jobs:
tag: ${{ github.event.inputs.release_tag }}
run: |
gh release upload "$tag" _build/*.tar.gz _build/*.deb
+
+ - name: Cache vcpkg binary dir
+ if: always()
+ id: save-cache-vcpkg-binary
+ uses: actions/cache/save@v4
+ with:
+ path: ${{ github.workspace }}/vcpkg_cache
+ key: vcpkg-cache-ubuntu-${{ hashFiles('src/vcpkg.json', '.git/modules/vcpkg/HEAD') }}
diff --git a/.github/workflows/windows-vcpkg.yml b/.github/workflows/windows-vcpkg.yml
index 04d9f72c53..4eb484b8d0 100644
--- a/.github/workflows/windows-vcpkg.yml
+++ b/.github/workflows/windows-vcpkg.yml
@@ -39,307 +39,302 @@ jobs:
ORTOOLS_DIR: ${{ github.workspace }}/or-tools
os: windows-latest
test-platform: windows-2022
- vcpkgPackages: wxwidgets boost-test yaml-cpp antlr4
- triplet: x64-windows
+ vcpkgPackages: wxwidgets boost-test
+ triplet: x64-windows-release
+ # Caching strategy of VCPKG dependencies
+ VCPKG_BINARY_SOURCES: "clear;files,${{ github.workspace }}/vcpkg_cache,readwrite"
runs-on: windows-latest
steps:
- - uses: actions/checkout@v4
- with:
- ref: ${{ env.REF }}
+ - uses: actions/checkout@v4
+ with:
+ ref: ${{ env.REF }}
- - name: Config OR-Tools URL
- run: |
+ - name: Config OR-Tools URL
+ run: |
echo "ORTOOLS_URL=https://github.com/rte-france/or-tools/releases/download/$(cat ortools_tag)/ortools_cxx_windows-latest_static_sirius.zip" >> $GITHUB_ENV
- shell: bash
+ shell: bash
- - name: Pre-requisites
- shell: cmd
- run: |
+ - name: Pre-requisites
+ shell: cmd
+ run: |
choco install wget unzip zip --no-progress
- # Downloads ccache, and copies it to "cl.exe" in order to trick cmake into using it,
- # see ccache wiki for background on using it with MSVC:
- # https://github.com/ccache/ccache/wiki/MS-Visual-Studio
- - name: Install ccache
- shell: bash
- run: |
- wget https://github.com/ccache/ccache/releases/download/v4.8.3/ccache-4.8.3-windows-x86_64.zip -O ccache.zip
- unzip ccache.zip
- rm ccache.zip
- mv ccache-4.8.3-windows-x86_64 ccache
- cp ccache/ccache.exe ccache/cl.exe
- echo "${GITHUB_WORKSPACE}/ccache" >> $GITHUB_PATH
-
- - name: ccache
- uses: hendrikmuhs/ccache-action@v1.2
- with:
- key: windows
-
- - name : Init VCPKG submodule
- run: |
- git submodule update --init vcpkg
-
- # Restore both vcpkg and its artifacts from the GitHub cache service.
- - name: Restore vcpkg and its artifacts.
- uses: actions/cache@v4
- with:
- # The first path is the location of vcpkg (it contains the vcpkg executable and data files).
- # The other paths starting with '!' are exclusions: they contain temporary files generated during the build of the installed packages.
- path: |
- ${{ env.VCPKG_ROOT }}
- !${{ env.VCPKG_ROOT }}/buildtrees
- !${{ env.VCPKG_ROOT }}/packages
- !${{ env.VCPKG_ROOT }}/downloads
- # The key is composed in a way that it gets properly invalidated: this must happen whenever vcpkg's Git commit id changes, or the list of packages changes. In this case a cache miss must happen and a new entry with a new key with be pushed to GitHub the cache service.
- # The key includes: hash of the vcpkg.json file, the hash of the vcpkg Git commit id, and the used vcpkg's triplet. The vcpkg's commit id would suffice, but computing an hash out it does not harm.
- # Note: given a key, the cache content is immutable. If a cache entry has been created improperly, in order the recreate the right content the key must be changed as well, and it must be brand new (i.e. not existing already).
- key: |
- ${{ hashFiles( 'vcpkg_manifest/vcpkg.json' ) }}-${{ hashFiles( '.git/modules/vcpkg/HEAD' )}}-${{ env.triplet }}
-
- - name : Install deps with VCPKG
- run: |
- cd vcpkg
- ./bootstrap-vcpkg.sh
- vcpkg install ${{env.vcpkgPackages}} --triplet ${{env.triplet}}
- rm -rf buildtrees packages downloads
- shell: bash
-
- - name: Read antares-deps version
- id: antares-deps-version
- uses: notiz-dev/github-action-json-property@release
- with:
- path: 'antares-deps-version.json'
- prop_path: 'antares_deps_version'
-
- - name: Download pre-compiled librairies
- uses: ./.github/workflows/download-extract-precompiled-libraries-zip
- with:
- antares-deps-version: ${{steps.antares-deps-version.outputs.prop}}
- os: ${{env.os}}
- ortools-url: ${{env.ORTOOLS_URL}}
- ortools-dir: ${{env.ORTOOLS_DIR}}
-
- - name: Setup Python 3.12
- uses: actions/setup-python@v5
- id: setup-python
- with:
- architecture: 'x64'
- python-version: '3.12'
-
- - name: Install pip dependencies if necessary
- run: pip install -r src/tests/examples/requirements.txt
-
- - name: Init submodule
- run: |
- git submodule update --init src/antares-deps
- git submodule update --init --remote src/tests/resources/Antares_Simulator_Tests
-
- - name: Enable git longpaths
- run: git config --system core.longpaths true
-
- - name: Configure
- shell: bash
- run: |
- cmake -B _build -S src \
- -DDEPS_INSTALL_DIR=rte-antares-deps-Release \
- -DCMAKE_PREFIX_PATH="${{ env.ORTOOLS_DIR }}/install" \
- -DVCPKG_ROOT="${{env.VCPKG_ROOT}}" \
- -DVCPKG_TARGET_TRIPLET=${{ env.triplet }} \
- -DCMAKE_BUILD_TYPE=Release \
- -DBUILD_TESTING=ON \
- -DBUILD_TOOLS=ON \
- -DBUILD_not_system=OFF \
- -DPython3_EXECUTABLE="${{ env.Python3_ROOT_DIR }}/python.exe" \
- -DCMAKE_VS_GLOBALS="CLToolExe=cl.exe;CLToolPath=${GITHUB_WORKSPACE}/ccache;TrackFileAccess=false;UseMultiToolTask=true;DebugInformationFormat=OldStyle"
-
- - name: Build
- shell: bash
- run: |
- cmake --build _build --config Release -j$(nproc)
- # simtest
- - name: Read simtest version
- id: simtest-version
- uses: notiz-dev/github-action-json-property@release
- with:
- path: 'simtest.json'
- prop_path: 'version'
-
- - name: Run named mps tests
- if: ${{ env.RUN_SIMPLE_TESTS == 'true' }}
- uses: ./.github/workflows/run-tests
- with:
- simtest-tag: ${{steps.simtest-version.outputs.prop}}
- batch-name: valid-named-mps
- os: ${{ env.test-platform }}
- variant: "named-mps"
-
- - name: Run unfeasibility-related tests
- if: ${{ env.RUN_SIMPLE_TESTS == 'true' }}
- run: |
- cd _build
- ctest -C Release --output-on-failure -R "^unfeasible$"
-
- - name: Run unit and end-to-end tests
- if: ${{ env.RUN_SIMPLE_TESTS == 'true' }}
- run: |
- cd _build
- ctest -C Release --output-on-failure -L "unit|end-to-end" -LE ortools
-
- - name: Upload build on failure
- if: ${{ failure() }}
- uses: actions/upload-artifact@v4
- with:
- name: MPS-diff
- path: ${{ github.workspace }}/src/tests/mps
-
-
- - name: Run tests for adequacy patch (CSR)
- if: ${{ env.RUN_SIMPLE_TESTS == 'true' }}
- uses: ./.github/workflows/run-tests
- with:
- simtest-tag: ${{steps.simtest-version.outputs.prop}}
- batch-name: adequacy-patch-CSR
- os: ${{ env.test-platform }}
-
- - name: Run tests about infinity on BCs RHS
- if: ${{ env.RUN_SIMPLE_TESTS == 'true' }}
- uses: ./.github/workflows/run-tests
- with:
- simtest-tag: ${{steps.simtest-version.outputs.prop}}
- batch-name: valid-v830
- os: ${{ env.test-platform }}
-
- - name: Run MILP with CBC
- if: ${{ env.RUN_SIMPLE_TESTS == 'true' }}
- uses: ./.github/workflows/run-tests
- with:
- simtest-tag: ${{steps.simtest-version.outputs.prop}}
- batch-name: valid-milp
- variant: "milp-cbc"
- os: ${{ env.test-platform }}
-
- - name: Run tests introduced in v860
- if: ${{ env.RUN_SIMPLE_TESTS == 'true' }}
- uses: ./.github/workflows/run-tests
- with:
- simtest-tag: ${{steps.simtest-version.outputs.prop}}
- batch-name: valid-v860
- os: ${{ env.test-platform }}
-
- - name: Run tests introduced in v870
- if: ${{ env.RUN_SIMPLE_TESTS == 'true' }}
- uses: ./.github/workflows/run-tests
- with:
- simtest-tag: ${{steps.simtest-version.outputs.prop}}
- batch-name: valid-v870
- os: ${{ env.test-platform }}
-
- - name: Run tests introduced in v910
- if: ${{ env.RUN_SIMPLE_TESTS == 'true' }}
- uses: ./.github/workflows/run-tests
- with:
- simtest-tag: ${{steps.simtest-version.outputs.prop}}
- batch-name: valid-v910
- os: ${{ env.test-platform }}
-
- - name: Run short-tests
- if: ${{ env.RUN_SIMPLE_TESTS == 'true' }}
- uses: ./.github/workflows/run-tests
- with:
- simtest-tag: ${{steps.simtest-version.outputs.prop}}
- batch-name: short-tests
- os: ${{ env.test-platform }}
-
- - name: Run mps tests
- if: ${{ env.RUN_SIMPLE_TESTS == 'true' }}
- uses: ./.github/workflows/run-tests
- with:
- simtest-tag: ${{steps.simtest-version.outputs.prop}}
- batch-name: valid-mps
- os: ${{ env.test-platform }}
-
- - name: Run parallel tests
- if: ${{ env.RUN_EXTENDED_TESTS == 'true' }}
- uses: ./.github/workflows/run-tests
- with:
- simtest-tag: ${{steps.simtest-version.outputs.prop}}
- batch-name: valid-parallel
- os: ${{ env.test-platform }}
- variant: "parallel"
-
- - name: Run medium-tests
- if: ${{ env.RUN_EXTENDED_TESTS == 'true' }}
- uses: ./.github/workflows/run-tests
- with:
- simtest-tag: ${{steps.simtest-version.outputs.prop}}
- batch-name: medium-tests
- os: ${{ env.test-platform }}
-
- - name: Run long-tests-1
- if: ${{ env.RUN_EXTENDED_TESTS == 'true' }}
- uses: ./.github/workflows/run-tests
- with:
- simtest-tag: ${{steps.simtest-version.outputs.prop}}
- batch-name: long-tests-1
- os: ${{ env.test-platform }}
-
- - name: Run long-tests-2
- if: ${{ env.RUN_EXTENDED_TESTS == 'true' }}
- uses: ./.github/workflows/run-tests
- with:
- simtest-tag: ${{steps.simtest-version.outputs.prop}}
- batch-name: long-tests-2
- os: ${{ env.test-platform }}
-
- - name: Run long-tests-3
- if: ${{ env.RUN_EXTENDED_TESTS == 'true' }}
- uses: ./.github/workflows/run-tests
- with:
- simtest-tag: ${{steps.simtest-version.outputs.prop}}
- batch-name: long-tests-3
- os: ${{ env.test-platform }}
-
- - name: Solver archive creation
- shell: bash
- run: |
- cd _build
- zip -r antares-solver_windows.zip solver/Release/antares-solver.exe solver/Release/*.dll
-
- - name: NSIS Installer creation
- shell: bash
- run: |
- rm -rf src/tests/resources/Antares_Simulator_Tests
- cd _build
- cpack -GNSIS
- export NSIS_NAME=$(ls *.exe)
- echo "NSIS_NAME=$NSIS_NAME" >> $GITHUB_ENV
-
- - name: Upload NSIS log on failure
- if: ${{ failure() }}
- uses: actions/upload-artifact@v4
- with:
- name: NSISError.log
- path: _build/_CPack_Packages/win64/NSIS/NSISOutput.log
-
- - name: .zip creation
- run: |
- cd _build
- cpack -G ZIP
-
- - name: Installer upload
- uses: actions/upload-artifact@v4
- with:
- name: installer
- path: _build/${{env.NSIS_NAME}}
-
- - name: Publish assets
- if: ${{ env.IS_RELEASE == 'true' }}
- env:
- GITHUB_TOKEN: ${{ github.token }}
- tag: ${{ github.event.inputs.release_tag }}
- run: |
- gh release upload "$tag" _build/*.zip _build/*.exe
- shell: bash
+ # Downloads ccache, and copies it to "cl.exe" in order to trick cmake into using it,
+ # see ccache wiki for background on using it with MSVC:
+ # https://github.com/ccache/ccache/wiki/MS-Visual-Studio
+ - name: Install ccache
+ shell: bash
+ run: |
+ wget https://github.com/ccache/ccache/releases/download/v4.8.3/ccache-4.8.3-windows-x86_64.zip -O ccache.zip
+ unzip ccache.zip
+ rm ccache.zip
+ mv ccache-4.8.3-windows-x86_64 ccache
+ cp ccache/ccache.exe ccache/cl.exe
+ echo "${GITHUB_WORKSPACE}/ccache" >> $GITHUB_PATH
+
+ - name: ccache
+ uses: hendrikmuhs/ccache-action@v1.2
+ with:
+ key: windows
+
+ - name: Install VCPKG
+ shell: bash
+ run: |
+ git submodule update --init vcpkg && ./vcpkg/bootstrap-vcpkg.bat -disableMetrics
+
+ - name: Restore vcpkg binary dir from cache
+ id: cache-vcpkg-binary
+ uses: actions/cache/restore@v4
+ with:
+ path: ${{ github.workspace }}/vcpkg_cache
+ key: vcpkg-cache-windows-${{ hashFiles('src/vcpkg.json', '.git/modules/vcpkg/HEAD') }}
+ # Allows to restore a cache when deps have only partially changed (like adding a dependency)
+ restore-keys: vcpkg-cache-windows-
+
+ - name: Read antares-deps version
+ id: antares-deps-version
+ uses: notiz-dev/github-action-json-property@release
+ with:
+ path: 'antares-deps-version.json'
+ prop_path: 'antares_deps_version'
+
+ - name: Download pre-compiled librairies
+ uses: ./.github/workflows/download-extract-precompiled-libraries-zip
+ with:
+ antares-deps-version: ${{steps.antares-deps-version.outputs.prop}}
+ os: ${{env.os}}
+ ortools-url: ${{env.ORTOOLS_URL}}
+ ortools-dir: ${{env.ORTOOLS_DIR}}
+
+ - name: Setup Python 3.12
+ uses: actions/setup-python@v5
+ id: setup-python
+ with:
+ architecture: 'x64'
+ python-version: '3.12'
+
+ - name: Install pip dependencies if necessary
+ run: pip install -r src/tests/examples/requirements.txt
+
+ - name: Init submodule
+ run: |
+ git submodule update --init src/antares-deps
+ git submodule update --init --remote src/tests/resources/Antares_Simulator_Tests
+
+ - name: Enable git longpaths
+ run: git config --system core.longpaths true
+
+ - name: Configure
+ shell: bash
+ run: |
+ cmake -B _build -S src \
+ -DDEPS_INSTALL_DIR=rte-antares-deps-Release \
+ -DCMAKE_PREFIX_PATH="${{ env.ORTOOLS_DIR }}/install" \
+ -DVCPKG_ROOT="${{env.VCPKG_ROOT}}" \
+ -DVCPKG_TARGET_TRIPLET=${{ env.triplet }} \
+ -DCMAKE_TOOLCHAIN_FILE="${{ env.VCPKG_ROOT }}/scripts/buildsystems/vcpkg.cmake" \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DBUILD_TESTING=ON \
+ -DBUILD_TOOLS=ON \
+ -DBUILD_not_system=OFF \
+ -DPython3_EXECUTABLE="${{ env.Python3_ROOT_DIR }}/python.exe" \
+ -DCMAKE_VS_GLOBALS="CLToolExe=cl.exe;CLToolPath=${GITHUB_WORKSPACE}/ccache;TrackFileAccess=false;UseMultiToolTask=true;DebugInformationFormat=OldStyle"
+
+ - name: Build
+ shell: bash
+ run: |
+ cmake --build _build --config Release -j$(nproc)
+ # simtest
+ - name: Read simtest version
+ id: simtest-version
+ uses: notiz-dev/github-action-json-property@release
+ with:
+ path: 'simtest.json'
+ prop_path: 'version'
+
+ - name: Run named mps tests
+ if: ${{ env.RUN_SIMPLE_TESTS == 'true' }}
+ uses: ./.github/workflows/run-tests
+ with:
+ simtest-tag: ${{steps.simtest-version.outputs.prop}}
+ batch-name: valid-named-mps
+ os: ${{ env.test-platform }}
+ variant: "named-mps"
+
+ - name: Run unfeasibility-related tests
+ if: ${{ env.RUN_SIMPLE_TESTS == 'true' }}
+ run: |
+ cd _build
+ ctest -C Release --output-on-failure -R "^unfeasible$"
+
+ - name: Run unit and end-to-end tests
+ if: ${{ env.RUN_SIMPLE_TESTS == 'true' }}
+ run: |
+ cd _build
+ ctest -C Release --output-on-failure -L "unit|end-to-end" -LE ortools
+
+ - name: Upload build on failure
+ if: ${{ failure() }}
+ uses: actions/upload-artifact@v4
+ with:
+ name: MPS-diff
+ path: ${{ github.workspace }}/src/tests/mps
+
+ - name: Run tests for adequacy patch (CSR)
+ if: ${{ env.RUN_SIMPLE_TESTS == 'true' }}
+ uses: ./.github/workflows/run-tests
+ with:
+ simtest-tag: ${{steps.simtest-version.outputs.prop}}
+ batch-name: adequacy-patch-CSR
+ os: ${{ env.test-platform }}
+
+ - name: Run tests about infinity on BCs RHS
+ if: ${{ env.RUN_SIMPLE_TESTS == 'true' }}
+ uses: ./.github/workflows/run-tests
+ with:
+ simtest-tag: ${{steps.simtest-version.outputs.prop}}
+ batch-name: valid-v830
+ os: ${{ env.test-platform }}
+
+ - name: Run MILP with CBC
+ if: ${{ env.RUN_SIMPLE_TESTS == 'true' }}
+ uses: ./.github/workflows/run-tests
+ with:
+ simtest-tag: ${{steps.simtest-version.outputs.prop}}
+ batch-name: valid-milp
+ variant: "milp-cbc"
+ os: ${{ env.test-platform }}
+
+ - name: Run tests introduced in v860
+ if: ${{ env.RUN_SIMPLE_TESTS == 'true' }}
+ uses: ./.github/workflows/run-tests
+ with:
+ simtest-tag: ${{steps.simtest-version.outputs.prop}}
+ batch-name: valid-v860
+ os: ${{ env.test-platform }}
+
+ - name: Run tests introduced in v870
+ if: ${{ env.RUN_SIMPLE_TESTS == 'true' }}
+ uses: ./.github/workflows/run-tests
+ with:
+ simtest-tag: ${{steps.simtest-version.outputs.prop}}
+ batch-name: valid-v870
+ os: ${{ env.test-platform }}
+
+ - name: Run tests introduced in v910
+ if: ${{ env.RUN_SIMPLE_TESTS == 'true' }}
+ uses: ./.github/workflows/run-tests
+ with:
+ simtest-tag: ${{steps.simtest-version.outputs.prop}}
+ batch-name: valid-v910
+ os: ${{ env.test-platform }}
+
+ - name: Run short-tests
+ if: ${{ env.RUN_SIMPLE_TESTS == 'true' }}
+ uses: ./.github/workflows/run-tests
+ with:
+ simtest-tag: ${{steps.simtest-version.outputs.prop}}
+ batch-name: short-tests
+ os: ${{ env.test-platform }}
+
+ - name: Run mps tests
+ if: ${{ env.RUN_SIMPLE_TESTS == 'true' }}
+ uses: ./.github/workflows/run-tests
+ with:
+ simtest-tag: ${{steps.simtest-version.outputs.prop}}
+ batch-name: valid-mps
+ os: ${{ env.test-platform }}
+
+ - name: Run parallel tests
+ if: ${{ env.RUN_EXTENDED_TESTS == 'true' }}
+ uses: ./.github/workflows/run-tests
+ with:
+ simtest-tag: ${{steps.simtest-version.outputs.prop}}
+ batch-name: valid-parallel
+ os: ${{ env.test-platform }}
+ variant: "parallel"
+
+ - name: Run medium-tests
+ if: ${{ env.RUN_EXTENDED_TESTS == 'true' }}
+ uses: ./.github/workflows/run-tests
+ with:
+ simtest-tag: ${{steps.simtest-version.outputs.prop}}
+ batch-name: medium-tests
+ os: ${{ env.test-platform }}
+
+ - name: Run long-tests-1
+ if: ${{ env.RUN_EXTENDED_TESTS == 'true' }}
+ uses: ./.github/workflows/run-tests
+ with:
+ simtest-tag: ${{steps.simtest-version.outputs.prop}}
+ batch-name: long-tests-1
+ os: ${{ env.test-platform }}
+
+ - name: Run long-tests-2
+ if: ${{ env.RUN_EXTENDED_TESTS == 'true' }}
+ uses: ./.github/workflows/run-tests
+ with:
+ simtest-tag: ${{steps.simtest-version.outputs.prop}}
+ batch-name: long-tests-2
+ os: ${{ env.test-platform }}
+
+ - name: Run long-tests-3
+ if: ${{ env.RUN_EXTENDED_TESTS == 'true' }}
+ uses: ./.github/workflows/run-tests
+ with:
+ simtest-tag: ${{steps.simtest-version.outputs.prop}}
+ batch-name: long-tests-3
+ os: ${{ env.test-platform }}
+
+ - name: Solver archive creation
+ shell: bash
+ run: |
+ cd _build
+ zip -r antares-solver_windows.zip solver/Release/antares-solver.exe solver/Release/*.dll
+
+ - name: NSIS Installer creation
+ shell: bash
+ run: |
+ rm -rf src/tests/resources/Antares_Simulator_Tests
+ cd _build
+ cpack -GNSIS
+ export NSIS_NAME=$(ls *.exe)
+ echo "NSIS_NAME=$NSIS_NAME" >> $GITHUB_ENV
+
+ - name: Upload NSIS log on failure
+ if: ${{ failure() }}
+ uses: actions/upload-artifact@v4
+ with:
+ name: NSISError.log
+ path: _build/_CPack_Packages/win64/NSIS/NSISOutput.log
+
+ - name: .zip creation
+ run: |
+ cd _build
+ cpack -G ZIP
+
+ - name: Installer upload
+ uses: actions/upload-artifact@v4
+ with:
+ name: installer
+ path: _build/${{env.NSIS_NAME}}
+
+ - name: Publish assets
+ if: ${{ env.IS_RELEASE == 'true' }}
+ env:
+ GITHUB_TOKEN: ${{ github.token }}
+ tag: ${{ github.event.inputs.release_tag }}
+ run: |
+ gh release upload "$tag" _build/*.zip _build/*.exe
+ shell: bash
+
+ - name: Cache vcpkg binary dir
+ if: always()
+ id: save-cache-vcpkg-binary
+ uses: actions/cache/save@v4
+ with:
+ path: ${{ github.workspace }}/vcpkg_cache
+ key: vcpkg-cache-windows-${{ hashFiles('src/vcpkg.json', '.git/modules/vcpkg/HEAD') }}
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index adfa646d54..763c40cb96 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -260,10 +260,6 @@ if (NOT sirius_solver_FOUND)
message (FATAL_ERROR "Sirius solver not found. Sirius solver can be compiled with -DBUILD_sirius=ON or you can specify previous dependency install directory with -DCMAKE_PREFIX_PATH or -DDEPS_INSTALL_DIR")
endif()
-#gflags needed for ortools
-set(GFLAGS_USE_TARGET_NAMESPACE TRUE)
-find_package(gflags)
-
find_package(ortools)
if(NOT ortools_FOUND OR BUILD_ORTOOLS)
message(STATUS "OR-Tools tag ${ORTOOLS_TAG}")
@@ -290,36 +286,17 @@ message(STATUS "OR-Tools tag ${ORTOOLS_TAG}")
FetchContent_MakeAvailable(ortools)
endif()
-find_package(minizip QUIET)
-
-if(NOT minizip_FOUND OR BUILD_MINIZIP)
- if (NOT minizip_FOUND)
- message("minizip not found, downloading")
+find_package(minizip-ng)
+if (minizip-ng_FOUND)
+ add_library(MINIZIP::minizip ALIAS MINIZIP::minizip-ng)
+else ()
+ find_package(minizip)
+ if (minizip_FOUND)
+ message (STATUS "Found minizip (not minizip-ng).")
+ else ()
+ message (FATAL_ERROR "Minizip not found.")
endif ()
- if (BUILD_MINIZIP)
- message("BUILD_MINIZIP set, downloading")
- endif ()
- # Repository + tag
- set(MZ_REPOSITORY "https://github.com/zlib-ng/minizip-ng.git")
- set(MZ_TAG "4.0.1")
- # CMake flags
- set(MZ_LZMA "OFF" CACHE INTERNAL "")
- set(MZ_ZSTD "OFF" CACHE INTERNAL "")
- set(MZ_BZIP2 "OFF" CACHE INTERNAL "")
- set(MZ_PKCRYPT "OFF" CACHE INTERNAL "")
- set(MZ_WZAES "OFF" CACHE INTERNAL "")
- set(MZ_OPENSSL "OFF" CACHE INTERNAL "")
- set(MZ_ICONV "OFF" CACHE INTERNAL "")
-
- FetchContent_Declare(minizip
- GIT_REPOSITORY ${MZ_REPOSITORY}
- GIT_TAG ${MZ_TAG}
- OVERRIDE_FIND_PACKAGE
- )
-
- FetchContent_MakeAvailable(minizip)
-endif()
-find_package(minizip REQUIRED)
+endif ()
#wxWidget not needed for all library find is done in ui CMakeLists.txt
diff --git a/src/cmake/wxWidgets/FindwxWidgets.cmake b/src/cmake/wxWidgets/FindwxWidgets.cmake
index dea003dce6..c174be3ed7 100644
--- a/src/cmake/wxWidgets/FindwxWidgets.cmake
+++ b/src/cmake/wxWidgets/FindwxWidgets.cmake
@@ -820,7 +820,6 @@ else()
find_program(wxWidgets_CONFIG_EXECUTABLE
NAMES $ENV{WX_CONFIG} wx-config wx-config-3.1 wx-config-3.0 wx-config-2.9 wx-config-2.8
DOC "Location of wxWidgets library configuration provider binary (wx-config)."
- ONLY_CMAKE_FIND_ROOT_PATH
)
if(wxWidgets_CONFIG_EXECUTABLE)
diff --git a/src/libs/antares/writer/CMakeLists.txt b/src/libs/antares/writer/CMakeLists.txt
index 21ddd81ba4..9795f6ace4 100644
--- a/src/libs/antares/writer/CMakeLists.txt
+++ b/src/libs/antares/writer/CMakeLists.txt
@@ -1,5 +1,4 @@
project(result-writer)
-find_package(minizip)
add_library(result_writer
# Helper class
diff --git a/src/packaging/Config.cmake.in b/src/packaging/Config.cmake.in
index be7a1a62fa..2cbf63a275 100644
--- a/src/packaging/Config.cmake.in
+++ b/src/packaging/Config.cmake.in
@@ -1,8 +1,16 @@
@PACKAGE_INIT@
include(CMakeFindDependencyMacro)
-find_dependency(ortools)
-find_dependency(minizip)
+find_dependency(ortools REQUIRED)
+find_dependency(minizip-ng)
+if (minizip-ng_FOUND)
+ add_library(MINIZIP::minizip ALIAS MINIZIP::minizip-ng)
+else ()
+ find_dependency(minizip)
+ if (NOT minizip_FOUND)
+ message (FATAL_ERROR "Minizip dependency (minizip or minizip-ng) not found.")
+ endif ()
+endif ()
include("${CMAKE_CURRENT_LIST_DIR}/AntaresTargets.cmake")
diff --git a/src/tests/end-to-end/binding_constraints/test_binding_constraints.cpp b/src/tests/end-to-end/binding_constraints/test_binding_constraints.cpp
index a40157091a..c1b875378f 100644
--- a/src/tests/end-to-end/binding_constraints/test_binding_constraints.cpp
+++ b/src/tests/end-to-end/binding_constraints/test_binding_constraints.cpp
@@ -1,25 +1,23 @@
/*
-** Copyright 2007-2024, RTE (https://www.rte-france.com)
-** See AUTHORS.txt
-** SPDX-License-Identifier: MPL-2.0
-** This file is part of Antares-Simulator,
-** Adequacy and Performance assessment for interconnected energy networks.
-**
-** Antares_Simulator is free software: you can redistribute it and/or modify
-** it under the terms of the Mozilla Public Licence 2.0 as published by
-** the Mozilla Foundation, either version 2 of the License, or
-** (at your option) any later version.
-**
-** Antares_Simulator is distributed in the hope that it will be useful,
-** but WITHOUT ANY WARRANTY; without even the implied warranty of
-** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-** Mozilla Public Licence 2.0 for more details.
-**
-** You should have received a copy of the Mozilla Public Licence 2.0
-** along with Antares_Simulator. If not, see .
-*/
-#include // Fix for Boost < 1.67
-
+ * Copyright 2007-2024, RTE (https://www.rte-france.com)
+ * See AUTHORS.txt
+ * SPDX-License-Identifier: MPL-2.0
+ * This file is part of Antares-Simulator,
+ * Adequacy and Performance assessment for interconnected energy networks.
+ *
+ * Antares_Simulator is free software: you can redistribute it and/or modify
+ * it under the terms of the Mozilla Public Licence 2.0 as published by
+ * the Mozilla Foundation, either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * Antares_Simulator is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * Mozilla Public Licence 2.0 for more details.
+ *
+ * You should have received a copy of the Mozilla Public Licence 2.0
+ * along with Antares_Simulator. If not, see .
+ */
#define BOOST_TEST_MODULE test - end - to - end tests_binding_constraints
#define WIN32_LEAN_AND_MEAN
#include
diff --git a/src/tests/end-to-end/simple_study/simple-study.cpp b/src/tests/end-to-end/simple_study/simple-study.cpp
index 5c9181ddbf..e5813befd8 100644
--- a/src/tests/end-to-end/simple_study/simple-study.cpp
+++ b/src/tests/end-to-end/simple_study/simple-study.cpp
@@ -1,25 +1,23 @@
/*
-** Copyright 2007-2024, RTE (https://www.rte-france.com)
-** See AUTHORS.txt
-** SPDX-License-Identifier: MPL-2.0
-** This file is part of Antares-Simulator,
-** Adequacy and Performance assessment for interconnected energy networks.
-**
-** Antares_Simulator is free software: you can redistribute it and/or modify
-** it under the terms of the Mozilla Public Licence 2.0 as published by
-** the Mozilla Foundation, either version 2 of the License, or
-** (at your option) any later version.
-**
-** Antares_Simulator is distributed in the hope that it will be useful,
-** but WITHOUT ANY WARRANTY; without even the implied warranty of
-** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-** Mozilla Public Licence 2.0 for more details.
-**
-** You should have received a copy of the Mozilla Public Licence 2.0
-** along with Antares_Simulator. If not, see .
-*/
-#include // Fix for Boost < 1.67
-
+ * Copyright 2007-2024, RTE (https://www.rte-france.com)
+ * See AUTHORS.txt
+ * SPDX-License-Identifier: MPL-2.0
+ * This file is part of Antares-Simulator,
+ * Adequacy and Performance assessment for interconnected energy networks.
+ *
+ * Antares_Simulator is free software: you can redistribute it and/or modify
+ * it under the terms of the Mozilla Public Licence 2.0 as published by
+ * the Mozilla Foundation, either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * Antares_Simulator is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * Mozilla Public Licence 2.0 for more details.
+ *
+ * You should have received a copy of the Mozilla Public Licence 2.0
+ * along with Antares_Simulator. If not, see .
+ */
#define BOOST_TEST_MODULE test - end - to - end tests
#include
#include
diff --git a/src/tests/src/libs/antares/array/tests-matrix-load.cpp b/src/tests/src/libs/antares/array/tests-matrix-load.cpp
index 1dfecf1517..2c427890eb 100644
--- a/src/tests/src/libs/antares/array/tests-matrix-load.cpp
+++ b/src/tests/src/libs/antares/array/tests-matrix-load.cpp
@@ -1,23 +1,23 @@
/*
-** Copyright 2007-2024, RTE (https://www.rte-france.com)
-** See AUTHORS.txt
-** SPDX-License-Identifier: MPL-2.0
-** This file is part of Antares-Simulator,
-** Adequacy and Performance assessment for interconnected energy networks.
-**
-** Antares_Simulator is free software: you can redistribute it and/or modify
-** it under the terms of the Mozilla Public Licence 2.0 as published by
-** the Mozilla Foundation, either version 2 of the License, or
-** (at your option) any later version.
-**
-** Antares_Simulator is distributed in the hope that it will be useful,
-** but WITHOUT ANY WARRANTY; without even the implied warranty of
-** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-** Mozilla Public Licence 2.0 for more details.
-**
-** You should have received a copy of the Mozilla Public Licence 2.0
-** along with Antares_Simulator. If not, see .
-*/
+ * Copyright 2007-2024, RTE (https://www.rte-france.com)
+ * See AUTHORS.txt
+ * SPDX-License-Identifier: MPL-2.0
+ * This file is part of Antares-Simulator,
+ * Adequacy and Performance assessment for interconnected energy networks.
+ *
+ * Antares_Simulator is free software: you can redistribute it and/or modify
+ * it under the terms of the Mozilla Public Licence 2.0 as published by
+ * the Mozilla Foundation, either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * Antares_Simulator is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * Mozilla Public Licence 2.0 for more details.
+ *
+ * You should have received a copy of the Mozilla Public Licence 2.0
+ * along with Antares_Simulator. If not, see .
+ */
#define BOOST_TEST_MODULE test - lib - antares - matrix tests
#define WIN32_LEAN_AND_MEAN
diff --git a/src/tests/src/libs/antares/array/tests-matrix-save.cpp b/src/tests/src/libs/antares/array/tests-matrix-save.cpp
index 13560a047e..d1af11d387 100644
--- a/src/tests/src/libs/antares/array/tests-matrix-save.cpp
+++ b/src/tests/src/libs/antares/array/tests-matrix-save.cpp
@@ -1,23 +1,23 @@
/*
-** Copyright 2007-2024, RTE (https://www.rte-france.com)
-** See AUTHORS.txt
-** SPDX-License-Identifier: MPL-2.0
-** This file is part of Antares-Simulator,
-** Adequacy and Performance assessment for interconnected energy networks.
-**
-** Antares_Simulator is free software: you can redistribute it and/or modify
-** it under the terms of the Mozilla Public Licence 2.0 as published by
-** the Mozilla Foundation, either version 2 of the License, or
-** (at your option) any later version.
-**
-** Antares_Simulator is distributed in the hope that it will be useful,
-** but WITHOUT ANY WARRANTY; without even the implied warranty of
-** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-** Mozilla Public Licence 2.0 for more details.
-**
-** You should have received a copy of the Mozilla Public Licence 2.0
-** along with Antares_Simulator. If not, see .
-*/
+ * Copyright 2007-2024, RTE (https://www.rte-france.com)
+ * See AUTHORS.txt
+ * SPDX-License-Identifier: MPL-2.0
+ * This file is part of Antares-Simulator,
+ * Adequacy and Performance assessment for interconnected energy networks.
+ *
+ * Antares_Simulator is free software: you can redistribute it and/or modify
+ * it under the terms of the Mozilla Public Licence 2.0 as published by
+ * the Mozilla Foundation, either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * Antares_Simulator is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * Mozilla Public Licence 2.0 for more details.
+ *
+ * You should have received a copy of the Mozilla Public Licence 2.0
+ * along with Antares_Simulator. If not, see .
+ */
#define BOOST_TEST_MODULE test - lib - antares - matrix tests
#define WIN32_LEAN_AND_MEAN
diff --git a/src/tests/src/libs/antares/benchmarking/test_duration_collector.cpp b/src/tests/src/libs/antares/benchmarking/test_duration_collector.cpp
index d213dc64d5..4fc74bcda9 100644
--- a/src/tests/src/libs/antares/benchmarking/test_duration_collector.cpp
+++ b/src/tests/src/libs/antares/benchmarking/test_duration_collector.cpp
@@ -1,23 +1,23 @@
/*
-** Copyright 2007-2024, RTE (https://www.rte-france.com)
-** See AUTHORS.txt
-** SPDX-License-Identifier: MPL-2.0
-** This file is part of Antares-Simulator,
-** Adequacy and Performance assessment for interconnected energy networks.
-**
-** Antares_Simulator is free software: you can redistribute it and/or modify
-** it under the terms of the Mozilla Public Licence 2.0 as published by
-** the Mozilla Foundation, either version 2 of the License, or
-** (at your option) any later version.
-**
-** Antares_Simulator is distributed in the hope that it will be useful,
-** but WITHOUT ANY WARRANTY; without even the implied warranty of
-** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-** Mozilla Public Licence 2.0 for more details.
-**
-** You should have received a copy of the Mozilla Public Licence 2.0
-** along with Antares_Simulator. If not, see .
-*/
+ * Copyright 2007-2024, RTE (https://www.rte-france.com)
+ * See AUTHORS.txt
+ * SPDX-License-Identifier: MPL-2.0
+ * This file is part of Antares-Simulator,
+ * Adequacy and Performance assessment for interconnected energy networks.
+ *
+ * Antares_Simulator is free software: you can redistribute it and/or modify
+ * it under the terms of the Mozilla Public Licence 2.0 as published by
+ * the Mozilla Foundation, either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * Antares_Simulator is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * Mozilla Public Licence 2.0 for more details.
+ *
+ * You should have received a copy of the Mozilla Public Licence 2.0
+ * along with Antares_Simulator. If not, see .
+ */
#define BOOST_TEST_MODULE test - benchmarking
#define WIN32_LEAN_AND_MEAN
diff --git a/src/tests/src/libs/antares/concurrency/test_concurrency.cpp b/src/tests/src/libs/antares/concurrency/test_concurrency.cpp
index 26923159c7..c1188c7a9d 100644
--- a/src/tests/src/libs/antares/concurrency/test_concurrency.cpp
+++ b/src/tests/src/libs/antares/concurrency/test_concurrency.cpp
@@ -1,27 +1,24 @@
/*
-** Copyright 2007-2024, RTE (https://www.rte-france.com)
-** See AUTHORS.txt
-** SPDX-License-Identifier: MPL-2.0
-** This file is part of Antares-Simulator,
-** Adequacy and Performance assessment for interconnected energy networks.
-**
-** Antares_Simulator is free software: you can redistribute it and/or modify
-** it under the terms of the Mozilla Public Licence 2.0 as published by
-** the Mozilla Foundation, either version 2 of the License, or
-** (at your option) any later version.
-**
-** Antares_Simulator is distributed in the hope that it will be useful,
-** but WITHOUT ANY WARRANTY; without even the implied warranty of
-** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-** Mozilla Public Licence 2.0 for more details.
-**
-** You should have received a copy of the Mozilla Public Licence 2.0
-** along with Antares_Simulator. If not, see .
-*/
-#include // Fix for Boost < 1.67
-
+ * Copyright 2007-2024, RTE (https://www.rte-france.com)
+ * See AUTHORS.txt
+ * SPDX-License-Identifier: MPL-2.0
+ * This file is part of Antares-Simulator,
+ * Adequacy and Performance assessment for interconnected energy networks.
+ *
+ * Antares_Simulator is free software: you can redistribute it and/or modify
+ * it under the terms of the Mozilla Public Licence 2.0 as published by
+ * the Mozilla Foundation, either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * Antares_Simulator is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * Mozilla Public Licence 2.0 for more details.
+ *
+ * You should have received a copy of the Mozilla Public Licence 2.0
+ * along with Antares_Simulator. If not, see .
+ */
#define BOOST_TEST_MODULE test - concurrency tests
-
#include
#include
diff --git a/src/tests/src/libs/antares/study/area/test-save-area-optimization-ini.cpp b/src/tests/src/libs/antares/study/area/test-save-area-optimization-ini.cpp
index 40fcb4b5fd..77672b88c2 100644
--- a/src/tests/src/libs/antares/study/area/test-save-area-optimization-ini.cpp
+++ b/src/tests/src/libs/antares/study/area/test-save-area-optimization-ini.cpp
@@ -1,23 +1,23 @@
/*
-** Copyright 2007-2024, RTE (https://www.rte-france.com)
-** See AUTHORS.txt
-** SPDX-License-Identifier: MPL-2.0
-** This file is part of Antares-Simulator,
-** Adequacy and Performance assessment for interconnected energy networks.
-**
-** Antares_Simulator is free software: you can redistribute it and/or modify
-** it under the terms of the Mozilla Public Licence 2.0 as published by
-** the Mozilla Foundation, either version 2 of the License, or
-** (at your option) any later version.
-**
-** Antares_Simulator is distributed in the hope that it will be useful,
-** but WITHOUT ANY WARRANTY; without even the implied warranty of
-** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-** Mozilla Public Licence 2.0 for more details.
-**
-** You should have received a copy of the Mozilla Public Licence 2.0
-** along with Antares_Simulator. If not, see .
-*/
+ * Copyright 2007-2024, RTE (https://www.rte-france.com)
+ * See AUTHORS.txt
+ * SPDX-License-Identifier: MPL-2.0
+ * This file is part of Antares-Simulator,
+ * Adequacy and Performance assessment for interconnected energy networks.
+ *
+ * Antares_Simulator is free software: you can redistribute it and/or modify
+ * it under the terms of the Mozilla Public Licence 2.0 as published by
+ * the Mozilla Foundation, either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * Antares_Simulator is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * Mozilla Public Licence 2.0 for more details.
+ *
+ * You should have received a copy of the Mozilla Public Licence 2.0
+ * along with Antares_Simulator. If not, see .
+ */
#define BOOST_TEST_MODULE test save area optimization.ini
#define WIN32_LEAN_AND_MEAN
diff --git a/src/tests/src/libs/antares/study/area/test-save-link-properties.cpp b/src/tests/src/libs/antares/study/area/test-save-link-properties.cpp
index af30689f4b..305241cd3e 100644
--- a/src/tests/src/libs/antares/study/area/test-save-link-properties.cpp
+++ b/src/tests/src/libs/antares/study/area/test-save-link-properties.cpp
@@ -1,23 +1,23 @@
/*
-** Copyright 2007-2024, RTE (https://www.rte-france.com)
-** See AUTHORS.txt
-** SPDX-License-Identifier: MPL-2.0
-** This file is part of Antares-Simulator,
-** Adequacy and Performance assessment for interconnected energy networks.
-**
-** Antares_Simulator is free software: you can redistribute it and/or modify
-** it under the terms of the Mozilla Public Licence 2.0 as published by
-** the Mozilla Foundation, either version 2 of the License, or
-** (at your option) any later version.
-**
-** Antares_Simulator is distributed in the hope that it will be useful,
-** but WITHOUT ANY WARRANTY; without even the implied warranty of
-** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-** Mozilla Public Licence 2.0 for more details.
-**
-** You should have received a copy of the Mozilla Public Licence 2.0
-** along with Antares_Simulator. If not, see .
-*/
+ * Copyright 2007-2024, RTE (https://www.rte-france.com)
+ * See AUTHORS.txt
+ * SPDX-License-Identifier: MPL-2.0
+ * This file is part of Antares-Simulator,
+ * Adequacy and Performance assessment for interconnected energy networks.
+ *
+ * Antares_Simulator is free software: you can redistribute it and/or modify
+ * it under the terms of the Mozilla Public Licence 2.0 as published by
+ * the Mozilla Foundation, either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * Antares_Simulator is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * Mozilla Public Licence 2.0 for more details.
+ *
+ * You should have received a copy of the Mozilla Public Licence 2.0
+ * along with Antares_Simulator. If not, see .
+ */
#define BOOST_TEST_MODULE test save link properties.ini
#define WIN32_LEAN_AND_MEAN
diff --git a/src/tests/src/libs/antares/study/constraint/test_constraint.cpp b/src/tests/src/libs/antares/study/constraint/test_constraint.cpp
index 25322ae361..e6e5cd54c3 100644
--- a/src/tests/src/libs/antares/study/constraint/test_constraint.cpp
+++ b/src/tests/src/libs/antares/study/constraint/test_constraint.cpp
@@ -1,23 +1,23 @@
/*
-** Copyright 2007-2024, RTE (https://www.rte-france.com)
-** See AUTHORS.txt
-** SPDX-License-Identifier: MPL-2.0
-** This file is part of Antares-Simulator,
-** Adequacy and Performance assessment for interconnected energy networks.
-**
-** Antares_Simulator is free software: you can redistribute it and/or modify
-** it under the terms of the Mozilla Public Licence 2.0 as published by
-** the Mozilla Foundation, either version 2 of the License, or
-** (at your option) any later version.
-**
-** Antares_Simulator is distributed in the hope that it will be useful,
-** but WITHOUT ANY WARRANTY; without even the implied warranty of
-** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-** Mozilla Public Licence 2.0 for more details.
-**
-** You should have received a copy of the Mozilla Public Licence 2.0
-** along with Antares_Simulator. If not, see .
-*/
+ * Copyright 2007-2024, RTE (https://www.rte-france.com)
+ * See AUTHORS.txt
+ * SPDX-License-Identifier: MPL-2.0
+ * This file is part of Antares-Simulator,
+ * Adequacy and Performance assessment for interconnected energy networks.
+ *
+ * Antares_Simulator is free software: you can redistribute it and/or modify
+ * it under the terms of the Mozilla Public Licence 2.0 as published by
+ * the Mozilla Foundation, either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * Antares_Simulator is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * Mozilla Public Licence 2.0 for more details.
+ *
+ * You should have received a copy of the Mozilla Public Licence 2.0
+ * along with Antares_Simulator. If not, see .
+ */
//
// Created by marechaljas on 13/03/23.
//
diff --git a/src/tests/src/libs/antares/study/constraint/test_group.cpp b/src/tests/src/libs/antares/study/constraint/test_group.cpp
index 3e87707fe2..21f5c7377a 100644
--- a/src/tests/src/libs/antares/study/constraint/test_group.cpp
+++ b/src/tests/src/libs/antares/study/constraint/test_group.cpp
@@ -1,23 +1,23 @@
/*
-** Copyright 2007-2024, RTE (https://www.rte-france.com)
-** See AUTHORS.txt
-** SPDX-License-Identifier: MPL-2.0
-** This file is part of Antares-Simulator,
-** Adequacy and Performance assessment for interconnected energy networks.
-**
-** Antares_Simulator is free software: you can redistribute it and/or modify
-** it under the terms of the Mozilla Public Licence 2.0 as published by
-** the Mozilla Foundation, either version 2 of the License, or
-** (at your option) any later version.
-**
-** Antares_Simulator is distributed in the hope that it will be useful,
-** but WITHOUT ANY WARRANTY; without even the implied warranty of
-** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-** Mozilla Public Licence 2.0 for more details.
-**
-** You should have received a copy of the Mozilla Public Licence 2.0
-** along with Antares_Simulator. If not, see .
-*/
+ * Copyright 2007-2024, RTE (https://www.rte-france.com)
+ * See AUTHORS.txt
+ * SPDX-License-Identifier: MPL-2.0
+ * This file is part of Antares-Simulator,
+ * Adequacy and Performance assessment for interconnected energy networks.
+ *
+ * Antares_Simulator is free software: you can redistribute it and/or modify
+ * it under the terms of the Mozilla Public Licence 2.0 as published by
+ * the Mozilla Foundation, either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * Antares_Simulator is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * Mozilla Public Licence 2.0 for more details.
+ *
+ * You should have received a copy of the Mozilla Public Licence 2.0
+ * along with Antares_Simulator. If not, see .
+ */
//
// Created by marechaljas on 28/06/23.
//
diff --git a/src/tests/src/libs/antares/study/output-folder/study.cpp b/src/tests/src/libs/antares/study/output-folder/study.cpp
index eba613c781..1675ae7909 100644
--- a/src/tests/src/libs/antares/study/output-folder/study.cpp
+++ b/src/tests/src/libs/antares/study/output-folder/study.cpp
@@ -1,23 +1,23 @@
/*
-** Copyright 2007-2024, RTE (https://www.rte-france.com)
-** See AUTHORS.txt
-** SPDX-License-Identifier: MPL-2.0
-** This file is part of Antares-Simulator,
-** Adequacy and Performance assessment for interconnected energy networks.
-**
-** Antares_Simulator is free software: you can redistribute it and/or modify
-** it under the terms of the Mozilla Public Licence 2.0 as published by
-** the Mozilla Foundation, either version 2 of the License, or
-** (at your option) any later version.
-**
-** Antares_Simulator is distributed in the hope that it will be useful,
-** but WITHOUT ANY WARRANTY; without even the implied warranty of
-** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-** Mozilla Public Licence 2.0 for more details.
-**
-** You should have received a copy of the Mozilla Public Licence 2.0
-** along with Antares_Simulator. If not, see .
-*/
+ * Copyright 2007-2024, RTE (https://www.rte-france.com)
+ * See AUTHORS.txt
+ * SPDX-License-Identifier: MPL-2.0
+ * This file is part of Antares-Simulator,
+ * Adequacy and Performance assessment for interconnected energy networks.
+ *
+ * Antares_Simulator is free software: you can redistribute it and/or modify
+ * it under the terms of the Mozilla Public Licence 2.0 as published by
+ * the Mozilla Foundation, either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * Antares_Simulator is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * Mozilla Public Licence 2.0 for more details.
+ *
+ * You should have received a copy of the Mozilla Public Licence 2.0
+ * along with Antares_Simulator. If not, see .
+ */
#define BOOST_TEST_MODULE output folder
#define WIN32_LEAN_AND_MEAN
diff --git a/src/tests/src/libs/antares/study/parameters/parameters-tests.cpp b/src/tests/src/libs/antares/study/parameters/parameters-tests.cpp
index 3dde6f5784..f690649668 100644
--- a/src/tests/src/libs/antares/study/parameters/parameters-tests.cpp
+++ b/src/tests/src/libs/antares/study/parameters/parameters-tests.cpp
@@ -1,23 +1,23 @@
/*
-** Copyright 2007-2024, RTE (https://www.rte-france.com)
-** See AUTHORS.txt
-** SPDX-License-Identifier: MPL-2.0
-** This file is part of Antares-Simulator,
-** Adequacy and Performance assessment for interconnected energy networks.
-**
-** Antares_Simulator is free software: you can redistribute it and/or modify
-** it under the terms of the Mozilla Public Licence 2.0 as published by
-** the Mozilla Foundation, either version 2 of the License, or
-** (at your option) any later version.
-**
-** Antares_Simulator is distributed in the hope that it will be useful,
-** but WITHOUT ANY WARRANTY; without even the implied warranty of
-** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-** Mozilla Public Licence 2.0 for more details.
-**
-** You should have received a copy of the Mozilla Public Licence 2.0
-** along with Antares_Simulator. If not, see .
-*/
+ * Copyright 2007-2024, RTE (https://www.rte-france.com)
+ * See AUTHORS.txt
+ * SPDX-License-Identifier: MPL-2.0
+ * This file is part of Antares-Simulator,
+ * Adequacy and Performance assessment for interconnected energy networks.
+ *
+ * Antares_Simulator is free software: you can redistribute it and/or modify
+ * it under the terms of the Mozilla Public Licence 2.0 as published by
+ * the Mozilla Foundation, either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * Antares_Simulator is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * Mozilla Public Licence 2.0 for more details.
+ *
+ * You should have received a copy of the Mozilla Public Licence 2.0
+ * along with Antares_Simulator. If not, see .
+ */
#define BOOST_TEST_MODULE "test parameters"
#include
diff --git a/src/tests/src/libs/antares/study/parts/hydro/test-hydro-series.cpp b/src/tests/src/libs/antares/study/parts/hydro/test-hydro-series.cpp
index 9e28c98df0..d534ca7d53 100644
--- a/src/tests/src/libs/antares/study/parts/hydro/test-hydro-series.cpp
+++ b/src/tests/src/libs/antares/study/parts/hydro/test-hydro-series.cpp
@@ -1,3 +1,24 @@
+/*
+ * Copyright 2007-2024, RTE (https://www.rte-france.com)
+ * See AUTHORS.txt
+ * SPDX-License-Identifier: MPL-2.0
+ * This file is part of Antares-Simulator,
+ * Adequacy and Performance assessment for interconnected energy networks.
+ *
+ * Antares_Simulator is free software: you can redistribute it and/or modify
+ * it under the terms of the Mozilla Public Licence 2.0 as published by
+ * the Mozilla Foundation, either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * Antares_Simulator is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * Mozilla Public Licence 2.0 for more details.
+ *
+ * You should have received a copy of the Mozilla Public Licence 2.0
+ * along with Antares_Simulator. If not, see .
+ */
+
#define BOOST_TEST_MODULE test hydro series
#define WIN32_LEAN_AND_MEAN
diff --git a/src/tests/src/libs/antares/study/parts/hydro/test-hydroreader-class.cpp b/src/tests/src/libs/antares/study/parts/hydro/test-hydroreader-class.cpp
index a933b5a3c0..cf519c3cb7 100644
--- a/src/tests/src/libs/antares/study/parts/hydro/test-hydroreader-class.cpp
+++ b/src/tests/src/libs/antares/study/parts/hydro/test-hydroreader-class.cpp
@@ -1,3 +1,24 @@
+/*
+ * Copyright 2007-2024, RTE (https://www.rte-france.com)
+ * See AUTHORS.txt
+ * SPDX-License-Identifier: MPL-2.0
+ * This file is part of Antares-Simulator,
+ * Adequacy and Performance assessment for interconnected energy networks.
+ *
+ * Antares_Simulator is free software: you can redistribute it and/or modify
+ * it under the terms of the Mozilla Public Licence 2.0 as published by
+ * the Mozilla Foundation, either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * Antares_Simulator is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * Mozilla Public Licence 2.0 for more details.
+ *
+ * You should have received a copy of the Mozilla Public Licence 2.0
+ * along with Antares_Simulator. If not, see .
+ */
+
#define BOOST_TEST_MODULE test hydro reader
#define WIN32_LEAN_AND_MEAN
diff --git a/src/tests/src/libs/antares/study/scenario-builder/test-sc-builder-file-read-line.cpp b/src/tests/src/libs/antares/study/scenario-builder/test-sc-builder-file-read-line.cpp
index 003a24b22a..36346b2014 100644
--- a/src/tests/src/libs/antares/study/scenario-builder/test-sc-builder-file-read-line.cpp
+++ b/src/tests/src/libs/antares/study/scenario-builder/test-sc-builder-file-read-line.cpp
@@ -1,23 +1,23 @@
/*
-** Copyright 2007-2024, RTE (https://www.rte-france.com)
-** See AUTHORS.txt
-** SPDX-License-Identifier: MPL-2.0
-** This file is part of Antares-Simulator,
-** Adequacy and Performance assessment for interconnected energy networks.
-**
-** Antares_Simulator is free software: you can redistribute it and/or modify
-** it under the terms of the Mozilla Public Licence 2.0 as published by
-** the Mozilla Foundation, either version 2 of the License, or
-** (at your option) any later version.
-**
-** Antares_Simulator is distributed in the hope that it will be useful,
-** but WITHOUT ANY WARRANTY; without even the implied warranty of
-** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-** Mozilla Public Licence 2.0 for more details.
-**
-** You should have received a copy of the Mozilla Public Licence 2.0
-** along with Antares_Simulator. If not, see .
-*/
+ * Copyright 2007-2024, RTE (https://www.rte-france.com)
+ * See AUTHORS.txt
+ * SPDX-License-Identifier: MPL-2.0
+ * This file is part of Antares-Simulator,
+ * Adequacy and Performance assessment for interconnected energy networks.
+ *
+ * Antares_Simulator is free software: you can redistribute it and/or modify
+ * it under the terms of the Mozilla Public Licence 2.0 as published by
+ * the Mozilla Foundation, either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * Antares_Simulator is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * Mozilla Public Licence 2.0 for more details.
+ *
+ * You should have received a copy of the Mozilla Public Licence 2.0
+ * along with Antares_Simulator. If not, see .
+ */
#define BOOST_TEST_MODULE test read scenario - builder.dat
#define WIN32_LEAN_AND_MEAN
diff --git a/src/tests/src/libs/antares/study/scenario-builder/test-sc-builder-file-save.cpp b/src/tests/src/libs/antares/study/scenario-builder/test-sc-builder-file-save.cpp
index b0fd157f03..e1b0666b7d 100644
--- a/src/tests/src/libs/antares/study/scenario-builder/test-sc-builder-file-save.cpp
+++ b/src/tests/src/libs/antares/study/scenario-builder/test-sc-builder-file-save.cpp
@@ -1,23 +1,23 @@
/*
-** Copyright 2007-2024, RTE (https://www.rte-france.com)
-** See AUTHORS.txt
-** SPDX-License-Identifier: MPL-2.0
-** This file is part of Antares-Simulator,
-** Adequacy and Performance assessment for interconnected energy networks.
-**
-** Antares_Simulator is free software: you can redistribute it and/or modify
-** it under the terms of the Mozilla Public Licence 2.0 as published by
-** the Mozilla Foundation, either version 2 of the License, or
-** (at your option) any later version.
-**
-** Antares_Simulator is distributed in the hope that it will be useful,
-** but WITHOUT ANY WARRANTY; without even the implied warranty of
-** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-** Mozilla Public Licence 2.0 for more details.
-**
-** You should have received a copy of the Mozilla Public Licence 2.0
-** along with Antares_Simulator. If not, see .
-*/
+ * Copyright 2007-2024, RTE (https://www.rte-france.com)
+ * See AUTHORS.txt
+ * SPDX-License-Identifier: MPL-2.0
+ * This file is part of Antares-Simulator,
+ * Adequacy and Performance assessment for interconnected energy networks.
+ *
+ * Antares_Simulator is free software: you can redistribute it and/or modify
+ * it under the terms of the Mozilla Public Licence 2.0 as published by
+ * the Mozilla Foundation, either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * Antares_Simulator is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * Mozilla Public Licence 2.0 for more details.
+ *
+ * You should have received a copy of the Mozilla Public Licence 2.0
+ * along with Antares_Simulator. If not, see .
+ */
#define BOOST_TEST_MODULE test save scenario - builder.dat
#include
#include
diff --git a/src/tests/src/libs/antares/study/series/timeseries-tests.cpp b/src/tests/src/libs/antares/study/series/timeseries-tests.cpp
index 4e49aea134..4908d10601 100644
--- a/src/tests/src/libs/antares/study/series/timeseries-tests.cpp
+++ b/src/tests/src/libs/antares/study/series/timeseries-tests.cpp
@@ -1,23 +1,23 @@
/*
-** Copyright 2007-2024, RTE (https://www.rte-france.com)
-** See AUTHORS.txt
-** SPDX-License-Identifier: MPL-2.0
-** This file is part of Antares-Simulator,
-** Adequacy and Performance assessment for interconnected energy networks.
-**
-** Antares_Simulator is free software: you can redistribute it and/or modify
-** it under the terms of the Mozilla Public Licence 2.0 as published by
-** the Mozilla Foundation, either version 2 of the License, or
-** (at your option) any later version.
-**
-** Antares_Simulator is distributed in the hope that it will be useful,
-** but WITHOUT ANY WARRANTY; without even the implied warranty of
-** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-** Mozilla Public Licence 2.0 for more details.
-**
-** You should have received a copy of the Mozilla Public Licence 2.0
-** along with Antares_Simulator. If not, see .
-*/
+ * Copyright 2007-2024, RTE (https://www.rte-france.com)
+ * See AUTHORS.txt
+ * SPDX-License-Identifier: MPL-2.0
+ * This file is part of Antares-Simulator,
+ * Adequacy and Performance assessment for interconnected energy networks.
+ *
+ * Antares_Simulator is free software: you can redistribute it and/or modify
+ * it under the terms of the Mozilla Public Licence 2.0 as published by
+ * the Mozilla Foundation, either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * Antares_Simulator is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * Mozilla Public Licence 2.0 for more details.
+ *
+ * You should have received a copy of the Mozilla Public Licence 2.0
+ * along with Antares_Simulator. If not, see .
+ */
#define BOOST_TEST_MODULE "test time series"
#define WIN32_LEAN_AND_MEAN
diff --git a/src/tests/src/libs/antares/study/short-term-storage-input/short-term-storage-input-output.cpp b/src/tests/src/libs/antares/study/short-term-storage-input/short-term-storage-input-output.cpp
index fed4f02570..83965049e6 100644
--- a/src/tests/src/libs/antares/study/short-term-storage-input/short-term-storage-input-output.cpp
+++ b/src/tests/src/libs/antares/study/short-term-storage-input/short-term-storage-input-output.cpp
@@ -1,23 +1,23 @@
/*
-** Copyright 2007-2024, RTE (https://www.rte-france.com)
-** See AUTHORS.txt
-** SPDX-License-Identifier: MPL-2.0
-** This file is part of Antares-Simulator,
-** Adequacy and Performance assessment for interconnected energy networks.
-**
-** Antares_Simulator is free software: you can redistribute it and/or modify
-** it under the terms of the Mozilla Public Licence 2.0 as published by
-** the Mozilla Foundation, either version 2 of the License, or
-** (at your option) any later version.
-**
-** Antares_Simulator is distributed in the hope that it will be useful,
-** but WITHOUT ANY WARRANTY; without even the implied warranty of
-** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-** Mozilla Public Licence 2.0 for more details.
-**
-** You should have received a copy of the Mozilla Public Licence 2.0
-** along with Antares_Simulator. If not, see .
-*/
+ * Copyright 2007-2024, RTE (https://www.rte-france.com)
+ * See AUTHORS.txt
+ * SPDX-License-Identifier: MPL-2.0
+ * This file is part of Antares-Simulator,
+ * Adequacy and Performance assessment for interconnected energy networks.
+ *
+ * Antares_Simulator is free software: you can redistribute it and/or modify
+ * it under the terms of the Mozilla Public Licence 2.0 as published by
+ * the Mozilla Foundation, either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * Antares_Simulator is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * Mozilla Public Licence 2.0 for more details.
+ *
+ * You should have received a copy of the Mozilla Public Licence 2.0
+ * along with Antares_Simulator. If not, see .
+ */
#define BOOST_TEST_MODULE "test short term storage"
#define WIN32_LEAN_AND_MEAN
diff --git a/src/tests/src/libs/antares/study/test_study.cpp b/src/tests/src/libs/antares/study/test_study.cpp
index 77c30ed914..104b304c0e 100644
--- a/src/tests/src/libs/antares/study/test_study.cpp
+++ b/src/tests/src/libs/antares/study/test_study.cpp
@@ -1,23 +1,23 @@
/*
-** Copyright 2007-2024, RTE (https://www.rte-france.com)
-** See AUTHORS.txt
-** SPDX-License-Identifier: MPL-2.0
-** This file is part of Antares-Simulator,
-** Adequacy and Performance assessment for interconnected energy networks.
-**
-** Antares_Simulator is free software: you can redistribute it and/or modify
-** it under the terms of the Mozilla Public Licence 2.0 as published by
-** the Mozilla Foundation, either version 2 of the License, or
-** (at your option) any later version.
-**
-** Antares_Simulator is distributed in the hope that it will be useful,
-** but WITHOUT ANY WARRANTY; without even the implied warranty of
-** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-** Mozilla Public Licence 2.0 for more details.
-**
-** You should have received a copy of the Mozilla Public Licence 2.0
-** along with Antares_Simulator. If not, see .
-*/
+ * Copyright 2007-2024, RTE (https://www.rte-france.com)
+ * See AUTHORS.txt
+ * SPDX-License-Identifier: MPL-2.0
+ * This file is part of Antares-Simulator,
+ * Adequacy and Performance assessment for interconnected energy networks.
+ *
+ * Antares_Simulator is free software: you can redistribute it and/or modify
+ * it under the terms of the Mozilla Public Licence 2.0 as published by
+ * the Mozilla Foundation, either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * Antares_Simulator is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * Mozilla Public Licence 2.0 for more details.
+ *
+ * You should have received a copy of the Mozilla Public Licence 2.0
+ * along with Antares_Simulator. If not, see .
+ */
#define BOOST_TEST_MODULE study
#define WIN32_LEAN_AND_MEAN
diff --git a/src/tests/src/libs/antares/study/thermal-price-definition/thermal-price-definition.cpp b/src/tests/src/libs/antares/study/thermal-price-definition/thermal-price-definition.cpp
index e2473fc986..cfef5909e5 100644
--- a/src/tests/src/libs/antares/study/thermal-price-definition/thermal-price-definition.cpp
+++ b/src/tests/src/libs/antares/study/thermal-price-definition/thermal-price-definition.cpp
@@ -1,23 +1,23 @@
/*
-** Copyright 2007-2024, RTE (https://www.rte-france.com)
-** See AUTHORS.txt
-** SPDX-License-Identifier: MPL-2.0
-** This file is part of Antares-Simulator,
-** Adequacy and Performance assessment for interconnected energy networks.
-**
-** Antares_Simulator is free software: you can redistribute it and/or modify
-** it under the terms of the Mozilla Public Licence 2.0 as published by
-** the Mozilla Foundation, either version 2 of the License, or
-** (at your option) any later version.
-**
-** Antares_Simulator is distributed in the hope that it will be useful,
-** but WITHOUT ANY WARRANTY; without even the implied warranty of
-** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-** Mozilla Public Licence 2.0 for more details.
-**
-** You should have received a copy of the Mozilla Public Licence 2.0
-** along with Antares_Simulator. If not, see .
-*/
+ * Copyright 2007-2024, RTE (https://www.rte-france.com)
+ * See AUTHORS.txt
+ * SPDX-License-Identifier: MPL-2.0
+ * This file is part of Antares-Simulator,
+ * Adequacy and Performance assessment for interconnected energy networks.
+ *
+ * Antares_Simulator is free software: you can redistribute it and/or modify
+ * it under the terms of the Mozilla Public Licence 2.0 as published by
+ * the Mozilla Foundation, either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * Antares_Simulator is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * Mozilla Public Licence 2.0 for more details.
+ *
+ * You should have received a copy of the Mozilla Public Licence 2.0
+ * along with Antares_Simulator. If not, see .
+ */
#define BOOST_TEST_MODULE "test thermal price definition"
#define WIN32_LEAN_AND_MEAN
diff --git a/src/tests/src/libs/antares/test_utils.cpp b/src/tests/src/libs/antares/test_utils.cpp
index 9e101e34a3..ad7e97d833 100644
--- a/src/tests/src/libs/antares/test_utils.cpp
+++ b/src/tests/src/libs/antares/test_utils.cpp
@@ -1,23 +1,23 @@
/*
-** Copyright 2007-2024, RTE (https://www.rte-france.com)
-** See AUTHORS.txt
-** SPDX-License-Identifier: MPL-2.0
-** This file is part of Antares-Simulator,
-** Adequacy and Performance assessment for interconnected energy networks.
-**
-** Antares_Simulator is free software: you can redistribute it and/or modify
-** it under the terms of the Mozilla Public Licence 2.0 as published by
-** the Mozilla Foundation, either version 2 of the License, or
-** (at your option) any later version.
-**
-** Antares_Simulator is distributed in the hope that it will be useful,
-** but WITHOUT ANY WARRANTY; without even the implied warranty of
-** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-** Mozilla Public Licence 2.0 for more details.
-**
-** You should have received a copy of the Mozilla Public Licence 2.0
-** along with Antares_Simulator. If not, see .
-*/
+ * Copyright 2007-2024, RTE (https://www.rte-france.com)
+ * See AUTHORS.txt
+ * SPDX-License-Identifier: MPL-2.0
+ * This file is part of Antares-Simulator,
+ * Adequacy and Performance assessment for interconnected energy networks.
+ *
+ * Antares_Simulator is free software: you can redistribute it and/or modify
+ * it under the terms of the Mozilla Public Licence 2.0 as published by
+ * the Mozilla Foundation, either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * Antares_Simulator is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * Mozilla Public Licence 2.0 for more details.
+ *
+ * You should have received a copy of the Mozilla Public Licence 2.0
+ * along with Antares_Simulator. If not, see .
+ */
#define BOOST_TEST_MODULE test utils
#include
diff --git a/src/tests/src/libs/antares/writer/CMakeLists.txt b/src/tests/src/libs/antares/writer/CMakeLists.txt
index 6487355a81..b85bcce05c 100644
--- a/src/tests/src/libs/antares/writer/CMakeLists.txt
+++ b/src/tests/src/libs/antares/writer/CMakeLists.txt
@@ -2,11 +2,11 @@
add_executable(test-writer test_writer.cpp)
target_link_libraries(test-writer
- PRIVATE
- Boost::unit_test_framework
- Antares::result_writer
- test_utils_unit
- MINIZIP::minizip
+ PRIVATE
+ Boost::unit_test_framework
+ Antares::result_writer
+ test_utils_unit
+ MINIZIP::minizip
)
set_target_properties(test-writer PROPERTIES FOLDER Unit-tests/test-writer)
diff --git a/src/tests/src/libs/antares/writer/test_writer.cpp b/src/tests/src/libs/antares/writer/test_writer.cpp
index 3a87905607..e3af61cc44 100644
--- a/src/tests/src/libs/antares/writer/test_writer.cpp
+++ b/src/tests/src/libs/antares/writer/test_writer.cpp
@@ -1,25 +1,23 @@
/*
-** Copyright 2007-2024, RTE (https://www.rte-france.com)
-** See AUTHORS.txt
-** SPDX-License-Identifier: MPL-2.0
-** This file is part of Antares-Simulator,
-** Adequacy and Performance assessment for interconnected energy networks.
-**
-** Antares_Simulator is free software: you can redistribute it and/or modify
-** it under the terms of the Mozilla Public Licence 2.0 as published by
-** the Mozilla Foundation, either version 2 of the License, or
-** (at your option) any later version.
-**
-** Antares_Simulator is distributed in the hope that it will be useful,
-** but WITHOUT ANY WARRANTY; without even the implied warranty of
-** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-** Mozilla Public Licence 2.0 for more details.
-**
-** You should have received a copy of the Mozilla Public Licence 2.0
-** along with Antares_Simulator. If not, see .
-*/
-#include // Fix for Boost < 1.67
-
+ * Copyright 2007-2024, RTE (https://www.rte-france.com)
+ * See AUTHORS.txt
+ * SPDX-License-Identifier: MPL-2.0
+ * This file is part of Antares-Simulator,
+ * Adequacy and Performance assessment for interconnected energy networks.
+ *
+ * Antares_Simulator is free software: you can redistribute it and/or modify
+ * it under the terms of the Mozilla Public Licence 2.0 as published by
+ * the Mozilla Foundation, either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * Antares_Simulator is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * Mozilla Public Licence 2.0 for more details.
+ *
+ * You should have received a copy of the Mozilla Public Licence 2.0
+ * along with Antares_Simulator. If not, see .
+ */
#define BOOST_TEST_MODULE test - writer tests
#include
#include
diff --git a/src/tests/src/solver/infeasible-problem-analysis/test-unfeasible-problem-analyzer.cpp b/src/tests/src/solver/infeasible-problem-analysis/test-unfeasible-problem-analyzer.cpp
index 8d56ec12f2..d333f5104c 100644
--- a/src/tests/src/solver/infeasible-problem-analysis/test-unfeasible-problem-analyzer.cpp
+++ b/src/tests/src/solver/infeasible-problem-analysis/test-unfeasible-problem-analyzer.cpp
@@ -18,8 +18,6 @@
* You should have received a copy of the Mozilla Public Licence 2.0
* along with Antares_Simulator. If not, see .
*/
-#include // Fix for Boost < 1.67
-
#define WIN32_LEAN_AND_MEAN
#define BOOST_TEST_MODULE unfeasible_problem_analyzer
diff --git a/src/tests/src/solver/optimisation/adequacy_patch.cpp b/src/tests/src/solver/optimisation/adequacy_patch.cpp
index 6234cc1c65..377969fd5d 100644
--- a/src/tests/src/solver/optimisation/adequacy_patch.cpp
+++ b/src/tests/src/solver/optimisation/adequacy_patch.cpp
@@ -1,23 +1,23 @@
/*
-** Copyright 2007-2024, RTE (https://www.rte-france.com)
-** See AUTHORS.txt
-** SPDX-License-Identifier: MPL-2.0
-** This file is part of Antares-Simulator,
-** Adequacy and Performance assessment for interconnected energy networks.
-**
-** Antares_Simulator is free software: you can redistribute it and/or modify
-** it under the terms of the Mozilla Public Licence 2.0 as published by
-** the Mozilla Foundation, either version 2 of the License, or
-** (at your option) any later version.
-**
-** Antares_Simulator is distributed in the hope that it will be useful,
-** but WITHOUT ANY WARRANTY; without even the implied warranty of
-** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-** Mozilla Public Licence 2.0 for more details.
-**
-** You should have received a copy of the Mozilla Public Licence 2.0
-** along with Antares_Simulator. If not, see .
-*/
+ * Copyright 2007-2024, RTE (https://www.rte-france.com)
+ * See AUTHORS.txt
+ * SPDX-License-Identifier: MPL-2.0
+ * This file is part of Antares-Simulator,
+ * Adequacy and Performance assessment for interconnected energy networks.
+ *
+ * Antares_Simulator is free software: you can redistribute it and/or modify
+ * it under the terms of the Mozilla Public Licence 2.0 as published by
+ * the Mozilla Foundation, either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * Antares_Simulator is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * Mozilla Public Licence 2.0 for more details.
+ *
+ * You should have received a copy of the Mozilla Public Licence 2.0
+ * along with Antares_Simulator. If not, see .
+ */
#define BOOST_TEST_MODULE test adequacy patch functions
#define WIN32_LEAN_AND_MEAN
diff --git a/src/tests/src/solver/simulation/test-store-timeseries-number.cpp b/src/tests/src/solver/simulation/test-store-timeseries-number.cpp
index 1524b26627..16cbb59fc2 100644
--- a/src/tests/src/solver/simulation/test-store-timeseries-number.cpp
+++ b/src/tests/src/solver/simulation/test-store-timeseries-number.cpp
@@ -1,23 +1,23 @@
/*
-** Copyright 2007-2024, RTE (https://www.rte-france.com)
-** See AUTHORS.txt
-** SPDX-License-Identifier: MPL-2.0
-** This file is part of Antares-Simulator,
-** Adequacy and Performance assessment for interconnected energy networks.
-**
-** Antares_Simulator is free software: you can redistribute it and/or modify
-** it under the terms of the Mozilla Public Licence 2.0 as published by
-** the Mozilla Foundation, either version 2 of the License, or
-** (at your option) any later version.
-**
-** Antares_Simulator is distributed in the hope that it will be useful,
-** but WITHOUT ANY WARRANTY; without even the implied warranty of
-** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-** Mozilla Public Licence 2.0 for more details.
-**
-** You should have received a copy of the Mozilla Public Licence 2.0
-** along with Antares_Simulator. If not, see .
-*/
+ * Copyright 2007-2024, RTE (https://www.rte-france.com)
+ * See AUTHORS.txt
+ * SPDX-License-Identifier: MPL-2.0
+ * This file is part of Antares-Simulator,
+ * Adequacy and Performance assessment for interconnected energy networks.
+ *
+ * Antares_Simulator is free software: you can redistribute it and/or modify
+ * it under the terms of the Mozilla Public Licence 2.0 as published by
+ * the Mozilla Foundation, either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * Antares_Simulator is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * Mozilla Public Licence 2.0 for more details.
+ *
+ * You should have received a copy of the Mozilla Public Licence 2.0
+ * along with Antares_Simulator. If not, see .
+ */
//
// Created by marechaljas on 15/03/23.
//
diff --git a/src/tests/src/solver/simulation/test-time_series.cpp b/src/tests/src/solver/simulation/test-time_series.cpp
index 5c9fdfa942..42f1fbddf4 100644
--- a/src/tests/src/solver/simulation/test-time_series.cpp
+++ b/src/tests/src/solver/simulation/test-time_series.cpp
@@ -1,23 +1,23 @@
/*
-** Copyright 2007-2024, RTE (https://www.rte-france.com)
-** See AUTHORS.txt
-** SPDX-License-Identifier: MPL-2.0
-** This file is part of Antares-Simulator,
-** Adequacy and Performance assessment for interconnected energy networks.
-**
-** Antares_Simulator is free software: you can redistribute it and/or modify
-** it under the terms of the Mozilla Public Licence 2.0 as published by
-** the Mozilla Foundation, either version 2 of the License, or
-** (at your option) any later version.
-**
-** Antares_Simulator is distributed in the hope that it will be useful,
-** but WITHOUT ANY WARRANTY; without even the implied warranty of
-** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-** Mozilla Public Licence 2.0 for more details.
-**
-** You should have received a copy of the Mozilla Public Licence 2.0
-** along with Antares_Simulator. If not, see .
-*/
+ * Copyright 2007-2024, RTE (https://www.rte-france.com)
+ * See AUTHORS.txt
+ * SPDX-License-Identifier: MPL-2.0
+ * This file is part of Antares-Simulator,
+ * Adequacy and Performance assessment for interconnected energy networks.
+ *
+ * Antares_Simulator is free software: you can redistribute it and/or modify
+ * it under the terms of the Mozilla Public Licence 2.0 as published by
+ * the Mozilla Foundation, either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * Antares_Simulator is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * Mozilla Public Licence 2.0 for more details.
+ *
+ * You should have received a copy of the Mozilla Public Licence 2.0
+ * along with Antares_Simulator. If not, see .
+ */
//
// Created by marechaljas on 07/04/23.
//
diff --git a/src/tests/src/solver/simulation/tests-ts-numbers.cpp b/src/tests/src/solver/simulation/tests-ts-numbers.cpp
index a6ecf820c1..e82d432121 100644
--- a/src/tests/src/solver/simulation/tests-ts-numbers.cpp
+++ b/src/tests/src/solver/simulation/tests-ts-numbers.cpp
@@ -1,23 +1,23 @@
/*
-** Copyright 2007-2024, RTE (https://www.rte-france.com)
-** See AUTHORS.txt
-** SPDX-License-Identifier: MPL-2.0
-** This file is part of Antares-Simulator,
-** Adequacy and Performance assessment for interconnected energy networks.
-**
-** Antares_Simulator is free software: you can redistribute it and/or modify
-** it under the terms of the Mozilla Public Licence 2.0 as published by
-** the Mozilla Foundation, either version 2 of the License, or
-** (at your option) any later version.
-**
-** Antares_Simulator is distributed in the hope that it will be useful,
-** but WITHOUT ANY WARRANTY; without even the implied warranty of
-** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-** Mozilla Public Licence 2.0 for more details.
-**
-** You should have received a copy of the Mozilla Public Licence 2.0
-** along with Antares_Simulator. If not, see .
-*/
+ * Copyright 2007-2024, RTE (https://www.rte-france.com)
+ * See AUTHORS.txt
+ * SPDX-License-Identifier: MPL-2.0
+ * This file is part of Antares-Simulator,
+ * Adequacy and Performance assessment for interconnected energy networks.
+ *
+ * Antares_Simulator is free software: you can redistribute it and/or modify
+ * it under the terms of the Mozilla Public Licence 2.0 as published by
+ * the Mozilla Foundation, either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * Antares_Simulator is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * Mozilla Public Licence 2.0 for more details.
+ *
+ * You should have received a copy of the Mozilla Public Licence 2.0
+ * along with Antares_Simulator. If not, see .
+ */
#define BOOST_TEST_MODULE test solver simulation things
#define WIN32_LEAN_AND_MEAN
diff --git a/src/tests/src/solver/utils/basis_status.cpp b/src/tests/src/solver/utils/basis_status.cpp
index b4994b28dc..292dc56c3c 100644
--- a/src/tests/src/solver/utils/basis_status.cpp
+++ b/src/tests/src/solver/utils/basis_status.cpp
@@ -1,23 +1,23 @@
/*
-** Copyright 2007-2024, RTE (https://www.rte-france.com)
-** See AUTHORS.txt
-** SPDX-License-Identifier: MPL-2.0
-** This file is part of Antares-Simulator,
-** Adequacy and Performance assessment for interconnected energy networks.
-**
-** Antares_Simulator is free software: you can redistribute it and/or modify
-** it under the terms of the Mozilla Public Licence 2.0 as published by
-** the Mozilla Foundation, either version 2 of the License, or
-** (at your option) any later version.
-**
-** Antares_Simulator is distributed in the hope that it will be useful,
-** but WITHOUT ANY WARRANTY; without even the implied warranty of
-** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-** Mozilla Public Licence 2.0 for more details.
-**
-** You should have received a copy of the Mozilla Public Licence 2.0
-** along with Antares_Simulator. If not, see .
-*/
+ * Copyright 2007-2024, RTE (https://www.rte-france.com)
+ * See AUTHORS.txt
+ * SPDX-License-Identifier: MPL-2.0
+ * This file is part of Antares-Simulator,
+ * Adequacy and Performance assessment for interconnected energy networks.
+ *
+ * Antares_Simulator is free software: you can redistribute it and/or modify
+ * it under the terms of the Mozilla Public Licence 2.0 as published by
+ * the Mozilla Foundation, either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * Antares_Simulator is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * Mozilla Public Licence 2.0 for more details.
+ *
+ * You should have received a copy of the Mozilla Public Licence 2.0
+ * along with Antares_Simulator. If not, see .
+ */
#define BOOST_TEST_MODULE test adequacy patch functions
#define WIN32_LEAN_AND_MEAN
diff --git a/src/triplets/x64-linux-antares.cmake b/src/triplets/x64-linux-antares.cmake
new file mode 100644
index 0000000000..63954c80c5
--- /dev/null
+++ b/src/triplets/x64-linux-antares.cmake
@@ -0,0 +1,5 @@
+set(VCPKG_TARGET_ARCHITECTURE x64)
+set(VCPKG_CMAKE_SYSTEM_NAME Linux)
+set(VCPKG_CRT_LINKAGE dynamic)
+set(VCPKG_LIBRARY_LINKAGE static)
+
diff --git a/src/triplets/x64-linux-release.cmake b/src/triplets/x64-linux-release.cmake
new file mode 100644
index 0000000000..d9eb98ddae
--- /dev/null
+++ b/src/triplets/x64-linux-release.cmake
@@ -0,0 +1,7 @@
+set(VCPKG_TARGET_ARCHITECTURE x64)
+set(VCPKG_CMAKE_SYSTEM_NAME Linux)
+set(VCPKG_CRT_LINKAGE dynamic)
+set(VCPKG_LIBRARY_LINKAGE static)
+
+# Avoid building debug artifacts
+set(VCPKG_BUILD_TYPE release)
diff --git a/src/triplets/x64-windows-antares.cmake b/src/triplets/x64-windows-antares.cmake
new file mode 100644
index 0000000000..f2480f7012
--- /dev/null
+++ b/src/triplets/x64-windows-antares.cmake
@@ -0,0 +1,11 @@
+set(VCPKG_TARGET_ARCHITECTURE x64)
+set(VCPKG_CRT_LINKAGE dynamic)
+set(VCPKG_LIBRARY_LINKAGE dynamic)
+
+# Link zlib and minizip statically
+list(APPEND STATIC_PORTS "zlib.*" "minizip.*")
+foreach (STATIC_PORT IN LISTS STATIC_PORTS)
+ if(PORT MATCHES ${STATIC_PORT})
+ set(VCPKG_LIBRARY_LINKAGE static)
+ endif()
+endforeach ()
diff --git a/src/triplets/x64-windows-release.cmake b/src/triplets/x64-windows-release.cmake
new file mode 100644
index 0000000000..7e4eb27f4d
--- /dev/null
+++ b/src/triplets/x64-windows-release.cmake
@@ -0,0 +1,15 @@
+set(VCPKG_TARGET_ARCHITECTURE x64)
+
+set(VCPKG_CRT_LINKAGE dynamic)
+set(VCPKG_LIBRARY_LINKAGE dynamic)
+
+# Avoid building debug artifacts
+set(VCPKG_BUILD_TYPE release)
+
+# Link zlib and minizip statically
+list(APPEND STATIC_PORTS "zlib.*" "minizip.*")
+foreach (STATIC_PORT IN LISTS STATIC_PORTS)
+ if(PORT MATCHES ${STATIC_PORT})
+ set(VCPKG_LIBRARY_LINKAGE static)
+ endif()
+endforeach ()
diff --git a/src/vcpkg.json b/src/vcpkg.json
new file mode 100644
index 0000000000..f15f208a42
--- /dev/null
+++ b/src/vcpkg.json
@@ -0,0 +1,32 @@
+{
+ "name": "antares-simulator",
+ "version-string": "9.1.0",
+ "builtin-baseline": "9484a57dd560b89f0a583be08af6753611c57fd5",
+ "vcpkg-configuration": {
+ "overlay-triplets": [
+ "./triplets"
+ ]
+ },
+ "dependencies": [
+ {
+ "name": "wxwidgets",
+ "platform": "windows"
+ },
+ {
+ "name": "boost-test",
+ "version>=": "1.81.0"
+ },
+ {
+ "name": "boost-algorithm",
+ "version>=": "1.81.0"
+ },
+ {
+ "name": "minizip-ng",
+ "default-features": false,
+ "version>=": "4.0.0",
+ "features": [
+ "zlib"
+ ]
+ }
+ ]
+}
diff --git a/vcpkg_manifest/vcpkg.json b/vcpkg_manifest/vcpkg.json
deleted file mode 100644
index 15837160b1..0000000000
--- a/vcpkg_manifest/vcpkg.json
+++ /dev/null
@@ -1,8 +0,0 @@
-{
- "name": "antares-simulator",
- "version-string": "8.5.0",
- "dependencies": [
- "wxwidgets",
- "boost-test"
- ]
-}
\ No newline at end of file