Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GTest #11506

Merged
merged 242 commits into from
Jul 2, 2024
Merged

GTest #11506

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
242 commits
Select commit Hold shift + click to select a range
cfdbe49
Prepare to build gtests
roigcarlo Jul 25, 2023
0c6e1ee
Removing references to runkratos
roigcarlo Jul 25, 2023
0eec903
Enable gtesting
roigcarlo Jul 25, 2023
622723b
Add target for the core
roigcarlo Jul 25, 2023
a48cce7
Moving mpi related test utilities out of the core
roigcarlo Jul 25, 2023
6caf59a
Fixing mpi dependant tests
roigcarlo Jul 25, 2023
88d416b
Refactor core and mpicore tests
roigcarlo Jul 25, 2023
9042bd9
Updating tests
roigcarlo Jul 27, 2023
da0b2a5
Adding gtest
roigcarlo Jul 27, 2023
b47ee25
Patch for cmake 3.27
roigcarlo Jul 27, 2023
95ab5f4
Mpi tests
roigcarlo Jul 28, 2023
b45c82a
Adding kernel destructor and fixing mpi test with individual kernel i…
roigcarlo Jul 28, 2023
14186bf
Restoring internal macros checks
roigcarlo Jul 31, 2023
8c34e88
Fixing problem comparing array_1d with ZeroVector(x) from boost
roigcarlo Jul 31, 2023
d5550bc
Fixing cstr cmp in text excpetion
roigcarlo Jul 31, 2023
35020c4
Fixing cstr cmp in code location
roigcarlo Jul 31, 2023
c0c3240
Test_checks now checks the checks class. Checkmate
roigcarlo Jul 31, 2023
956125b
Fixing logger test (bad copy paste)
roigcarlo Jul 31, 2023
b064b3c
Merge branch 'master' into ci/gtests
roigcarlo Aug 3, 2023
d48fa49
Min cmake version
roigcarlo Aug 22, 2023
74f10ef
Missing include
roigcarlo Aug 22, 2023
dcc5bfb
Using distributed expects
roigcarlo Aug 22, 2023
28de457
Merge branch 'master' into ci/gtests
roigcarlo Aug 25, 2023
e455d15
Removing testing_ folder
roigcarlo Aug 25, 2023
d12daff
Merge branch 'master' into ci/gtests
roigcarlo Aug 31, 2023
ea4aba4
Merge conflicts
roigcarlo Aug 31, 2023
ffbff13
Merge conflicts 2
roigcarlo Aug 31, 2023
23faf4f
Fix macros
roigcarlo Sep 6, 2023
93444ec
Fix macros
roigcarlo Sep 6, 2023
751ed09
Print info in function
roigcarlo Sep 6, 2023
05dd7ac
Fixing mpi tests 1
roigcarlo Sep 6, 2023
5f313a7
Adding tests to fluid
roigcarlo Sep 6, 2023
aedda94
Temp adding fixture to core
roigcarlo Sep 6, 2023
ae00a51
Merge remote-tracking branch 'origin' into ci/gtests
roigcarlo Apr 2, 2024
cff40b5
Decoupling the utilities from the kernel AGAIN
roigcarlo Apr 2, 2024
267e4fd
More includes and temporaly disabling exposure of testing utilities t…
roigcarlo Apr 2, 2024
9023d80
Fix compilation problems and moving files back and forth
roigcarlo Apr 2, 2024
1455fd4
Add utility to autogenerate the test binaries for applications
roigcarlo Apr 2, 2024
09845b4
Change CMakeLists of all applications with cpp test
roigcarlo Apr 2, 2024
47f9fe6
Adding mpi_expect.h
roigcarlo Apr 3, 2024
e655489
Missing change for FluidDynamics
roigcarlo Apr 3, 2024
94c117a
Clarify why this is needed
roigcarlo Apr 3, 2024
f5f97e0
Initial windows configuration
roigcarlo Apr 8, 2024
e680037
Typo
roigcarlo Apr 8, 2024
7e30d2b
Fixing invoking macro
roigcarlo Apr 8, 2024
4921a77
Setting export flag for testing tatgets
roigcarlo Apr 8, 2024
19a34f9
Missing test factories
roigcarlo Apr 8, 2024
1e2f818
Missing api expose for some geoclasses
roigcarlo Apr 8, 2024
349b0e3
Missing fixture for Structural. More to come
roigcarlo Apr 8, 2024
2393332
Correcting utilities exposure and api placement
roigcarlo Apr 8, 2024
db9b988
Missing exports
roigcarlo Apr 8, 2024
b5a6dab
Missing linking
roigcarlo Apr 8, 2024
f84dcdd
Missing export api
roigcarlo Apr 8, 2024
a0992cb
Export api position consistency
roigcarlo Apr 8, 2024
9584023
Specifying visibility
roigcarlo Apr 8, 2024
7ba113e
Moved geomechanics test suites to separate files
avdg81 Apr 9, 2024
f4cb2b8
Adding possible fix for duplicated mpi messages on gtest
roigcarlo Apr 9, 2024
8563505
Using the correct fixture
roigcarlo Apr 9, 2024
cef37c6
Added missing redefines for pass and fail
roigcarlo Apr 9, 2024
493cd56
Cosmetics
roigcarlo Apr 9, 2024
22cd089
Cosmetics
roigcarlo Apr 9, 2024
44f24ac
More non-bracer if/else corrected
roigcarlo Apr 9, 2024
5700663
Minor fix in the `KRATOS_EXPECT_VECTOR_RELATIVE_NEAR` macro
rfaasse Apr 9, 2024
9d6daf9
fixing new include dirs
roigcarlo Apr 9, 2024
7ef9d30
Making TrilinosCore dependencies public to propagate to CoreTest
roigcarlo Apr 9, 2024
b3ea783
Merge branch 'ci/gtests' of github.com:KratosMultiphysics/Kratos into…
roigcarlo Apr 9, 2024
c1564ad
Fixing mpi gtesting :) (TrilinosFixture pending)
roigcarlo Apr 9, 2024
639c887
Updated script for all applications
roigcarlo Apr 9, 2024
b9efa81
Fixing errors totaly not caused by me using a replace macro
roigcarlo Apr 9, 2024
91125db
Disabling previously added instantiation
roigcarlo Apr 10, 2024
b13ca0f
Fix missing import for geo tests and changed run_cpp_unit_tests.py fo…
rfaasse Apr 10, 2024
1dc44ca
Fix missing import for structural tests and changed run_cpp_unit_test…
rfaasse Apr 10, 2024
d144b15
Trying with dynamic build
roigcarlo Apr 10, 2024
23f83c1
Fixing structural quotes and splitting mapping mpi extension
roigcarlo Apr 10, 2024
f61bb40
Merge remote-tracking branch 'origin/ci/gtests' into ci/gtests
rfaasse Apr 10, 2024
5304cbe
Missing fixtures
roigcarlo Apr 10, 2024
bf29d65
Merge branch 'ci/gtests' of https://github.com/KratosMultiphysics/Kra…
roigcarlo Apr 10, 2024
b57f1e8
Moving dll flag to root cmake
roigcarlo Apr 10, 2024
472952a
Moving dll flag to root cmake
roigcarlo Apr 10, 2024
5de6adb
Fixing sources for mpi extension
roigcarlo Apr 10, 2024
61a8ebe
Restoring the old Testing communicator
roigcarlo Apr 10, 2024
4a2c9ed
Individual suites for applications. Some may be missing
roigcarlo Apr 10, 2024
e881f58
Missing fixture, wrong include and enabled so option by default
roigcarlo Apr 10, 2024
1b29984
Reimplemented the Python script `run_cpp_unit_tests.py`
avdg81 Apr 10, 2024
6e94874
Renaming wrong file
roigcarlo Apr 10, 2024
9947354
Restoring parallel env
roigcarlo Apr 10, 2024
68f71f8
Modify kernel initialization in the mpi fixture to be consistent with…
roigcarlo Apr 10, 2024
85fec50
Some minor fixes
avdg81 Apr 10, 2024
3943978
Moving kernel initializer to a helper class
roigcarlo Apr 10, 2024
42ff6a3
Making trilinos tests work
roigcarlo Apr 10, 2024
7d9948d
Fix export issue in variable utils
rfaasse Apr 10, 2024
d269d9d
Removing redundant '"' in geo CMakeLists.txt
rfaasse Apr 10, 2024
3234a5c
Implementing tests globaly
roigcarlo Apr 11, 2024
6553792
Merge branch 'ci/gtests' of github.com:KratosMultiphysics/Kratos into…
roigcarlo Apr 11, 2024
9a2089e
Only add a GTest target if there are any unit test source files
avdg81 Apr 11, 2024
5c229b2
Separating mapping utilities from extension and fixing mapping compil…
roigcarlo Apr 11, 2024
4eb19f9
Chanching the way linking happens to avoid problems in dependency res…
roigcarlo Apr 11, 2024
24fc1dd
Chanching default linking visibility of many symbols
roigcarlo Apr 11, 2024
249ec84
Missing suite
roigcarlo Apr 11, 2024
b534273
Merge branch 'ci/gtests' of github.com:KratosMultiphysics/Kratos into…
roigcarlo Apr 11, 2024
8b7b91f
Fixing bracers
roigcarlo Apr 11, 2024
b507f57
I suppose this was a copy paste error
roigcarlo Apr 11, 2024
1a46487
Incorrect name of the suit
roigcarlo Apr 11, 2024
52ec040
nAvoid problems when mpi libraries cannot be discovered automatically…
roigcarlo Apr 11, 2024
e134e67
Improved application suites for geo and structural mechanics
rfaasse Apr 11, 2024
c9df769
Several fixes
roigcarlo Apr 11, 2024
fb84cb5
Merge branch 'ci/gtests' of github.com:KratosMultiphysics/Kratos into…
roigcarlo Apr 11, 2024
cefe8e9
Adapting script for the new binaries
roigcarlo Apr 12, 2024
54ffb15
Excluding files because bad instantiation
roigcarlo Apr 12, 2024
1d4bf53
Merge branch 'master' into ci/gtests
roigcarlo Apr 12, 2024
ababfe6
Fixed comflicting name while compiling with merged upstream
roigcarlo Apr 12, 2024
b10d05e
Starting to revamp runners for cpp tests
roigcarlo Apr 12, 2024
840b72d
Ups :), fixed Mapping split which was done incorrectly
roigcarlo Apr 12, 2024
3bec960
System imports first, one per line, lib imports seconds, and from X i…
roigcarlo Apr 12, 2024
60ac87f
More irrelevant files
roigcarlo Apr 12, 2024
906c5ec
Fixing RANS cpp tests
roigcarlo Apr 12, 2024
304692d
Updating cpp runner for serial tests
roigcarlo Apr 12, 2024
d6bfb9e
Unifying testing scripts
roigcarlo Apr 12, 2024
39569e4
Initial support for mpi
roigcarlo Apr 12, 2024
d360440
Fixed some 'target_link_libraries' commands
avdg81 Apr 12, 2024
f1fa6f0
Fixed a few includes and added an export
avdg81 Apr 12, 2024
0c03709
Fix windows build for fluid and potential flow applications by adding…
rfaasse Apr 12, 2024
97eef25
Adding lib to path until gtest is installed on libs
roigcarlo Apr 12, 2024
897fe42
Merge branch 'ci/gtests' of github.com:KratosMultiphysics/Kratos into…
roigcarlo Apr 12, 2024
3d98234
Fixed a linker error by exporting a class
avdg81 Apr 12, 2024
821cd12
Fixing centos
roigcarlo Apr 12, 2024
20e3da9
Merge branch 'ci/gtests' of github.com:KratosMultiphysics/Kratos into…
roigcarlo Apr 12, 2024
50547d7
Fixed linker errors by exporting two classes
avdg81 Apr 12, 2024
84bbc50
Forgot to add two new files
avdg81 Apr 12, 2024
e7017aa
Fixing cpp report message
roigcarlo Apr 15, 2024
387a8c2
Extending the testing time
roigcarlo Apr 15, 2024
35fd5c7
Taking the oportunity to fix anoying warnings
roigcarlo Apr 15, 2024
3264bac
Moving default CMAKE_INSTALL_LIBS to libs to match kratos default lib…
roigcarlo Apr 17, 2024
3ca259a
Revert "Adding lib to path until gtest is installed on libs"
roigcarlo Apr 17, 2024
efac1e3
Rearanged files to move testing main outide of utilities and having o…
roigcarlo Apr 18, 2024
863a238
Updating sources for tests and test_utilities targets
roigcarlo Apr 18, 2024
df0c85d
Fixing logger test (change in output line due to the change in the te…
roigcarlo Apr 18, 2024
a5e1498
Fixing problem with unrgistered partial communicators being de-alloca…
roigcarlo Apr 18, 2024
9125201
Restore the buffers after test TearDown
roigcarlo Apr 18, 2024
486103f
Moving implt to source
roigcarlo Apr 18, 2024
822bfd3
Missing file
roigcarlo Apr 18, 2024
a495ad2
Removing duplicated KRATOS_API
roigcarlo Apr 18, 2024
19b60bb
No running cpp tests automatically from the python interface anymore.…
roigcarlo Apr 19, 2024
e2146ed
Removing old run_cpp_tests (now run over the binary) and removing ref…
roigcarlo Apr 19, 2024
e5c552d
More references to old run_cpp
roigcarlo Apr 19, 2024
fbb5eda
Fixing size of the system matrix for trilinos tests not currenly runn…
roigcarlo Apr 19, 2024
d92057c
Fixing rans linking in windows
roigcarlo Apr 19, 2024
619aaab
More run_cpp tests..
roigcarlo Apr 19, 2024
ef6e5f0
Renamed run_tests to run_python_tests and updated ci
roigcarlo Apr 19, 2024
39ab4b3
Remove cpp from run_python_tests and cleanup subprocess
roigcarlo Apr 19, 2024
57573ea
Forgot to add this in the fixing win api commit :P
roigcarlo Apr 19, 2024
6134e28
Does not need to be exported
roigcarlo Apr 19, 2024
4a5f338
Fixing Cosim. Adding flag to be able to compile with custom main. Tes…
roigcarlo Apr 23, 2024
2049a2c
Merge branch 'master' into ci/gtests
roigcarlo Apr 23, 2024
411e8a6
Do not put utilities for testing in the core :)
roigcarlo Apr 23, 2024
e7a6c35
Enable settlement test, since every test now has their own kernel
rfaasse Apr 24, 2024
0e6a648
Fix linking errors on windows for meshing, mapping and iga applicatio…
rfaasse Apr 24, 2024
a9c0402
Fixed error when linking ContactStructuralMechanicsApplication on Win…
avdg81 Apr 24, 2024
079145a
Removing last run_cpp
roigcarlo Apr 25, 2024
e9a1a9f
Remove tester
roigcarlo Apr 25, 2024
1c7c410
unifiying behaviour of testing scripts p1
roigcarlo Apr 25, 2024
218f1df
Merge branch 'master' into ci/gtests
roigcarlo Apr 25, 2024
379c578
--using-mpi flag is now passed in the subprocess
roigcarlo Apr 25, 2024
a7ea905
Passing mpi command without spaces. Please avoid shell=true at all costs
roigcarlo Apr 25, 2024
caa9eef
Format using utf-8
roigcarlo Apr 25, 2024
43bd030
consolidating cpp test runners
roigcarlo Apr 25, 2024
0e439f8
consolidating cpp test runners 2
roigcarlo Apr 25, 2024
37c67e5
Further consolidation of the testing scripts
roigcarlo Apr 25, 2024
9c8ecc9
Merge branch 'ci/gtests' of github.com:KratosMultiphysics/Kratos into…
roigcarlo Apr 25, 2024
f22c7e1
Missing info
roigcarlo Apr 25, 2024
2c92fc0
Fixing wring cast in the test
roigcarlo Apr 25, 2024
c22e087
Keep comparison consistent @philbucher check if its ok
roigcarlo Apr 26, 2024
62212a6
Disabling anoying print of the headers until verbosity is correctly i…
roigcarlo Apr 26, 2024
57db926
Fixing dependency from structural
roigcarlo Apr 26, 2024
a1313c6
Setting runtime to 5 min
roigcarlo Apr 26, 2024
aa21a3b
Enabling all tests always and importing Meshing app for mmg tests
roigcarlo Apr 26, 2024
71cfc40
Marking dependent tests as skip
roigcarlo Apr 26, 2024
f31a2f1
Passig host file correctly
roigcarlo Apr 29, 2024
042862c
Unifying return codes and ensuring no overrides are pefromed in case …
roigcarlo Apr 29, 2024
faed817
No exit inside try
roigcarlo Apr 29, 2024
f945458
Fixing mpi-flags parsing and hopefully output coherence
roigcarlo Apr 30, 2024
e0e1387
Merge branch 'master' into ci/gtests
roigcarlo May 2, 2024
38fd914
Capturing all exceptions and executing print regadless of the exit st…
roigcarlo May 2, 2024
e4a0b2a
Temporaly disabling header print for shallow?
roigcarlo May 3, 2024
820a74f
Temporaly disabling buffer redirections
roigcarlo May 3, 2024
d342dfa
Merge branch 'ci/gtests' of github.com:KratosMultiphysics/Kratos into…
roigcarlo May 3, 2024
d6b0ba5
Removing pragma once in source
roigcarlo May 3, 2024
80d89ae
Using relative paths
roigcarlo May 3, 2024
bf2cdc1
Fixing problems in mpi mapping
roigcarlo May 3, 2024
b2f88d8
Merge branch 'master' into ci/gtests
roigcarlo May 3, 2024
85f4238
Reverting asserts to check only distance
roigcarlo May 6, 2024
469a885
Revert "Using relative paths"
roigcarlo May 6, 2024
0ab5472
Setting common runtime dir
roigcarlo May 6, 2024
673e23b
Merge branch 'ci/gtests' of github.com:KratosMultiphysics/Kratos into…
roigcarlo May 6, 2024
1b33070
disabling mpi_run_cpp
roigcarlo May 6, 2024
889ea57
Passing run dir from launch script
roigcarlo May 6, 2024
0fda636
Fixing tests not launching in win
roigcarlo May 7, 2024
6b5ff60
Fixing mpi tests not launching in win (irrelevant, just in case)
roigcarlo May 7, 2024
2c7251e
Fixing install dir in win on some systems
roigcarlo May 7, 2024
62577b3
Disabled a failing C++ unit test in GeoMechanicsApplication
avdg81 May 8, 2024
dec5d61
Fixing string literal comparison
roigcarlo May 8, 2024
2aac7e1
Merge branch 'master' into ci/gtests
roigcarlo Jun 11, 2024
f2a2f22
Enabling deregistration
roigcarlo Jun 11, 2024
91e5e74
Adding missing test suite
roigcarlo Jun 11, 2024
8cfe737
Remove leftover file
roigcarlo Jun 11, 2024
5c4c5e5
Updated tests to gtests
roigcarlo Jun 11, 2024
ba6501a
Remvoing old temporal deregister from kernel
roigcarlo Jun 11, 2024
2fd5769
Prevent unsigned values to mess up with the ordering check
roigcarlo Jun 11, 2024
9add5eb
More unsigned problems
roigcarlo Jun 12, 2024
4a27e77
Kratos API
roigcarlo Jun 12, 2024
0493214
Kratos API
roigcarlo Jun 12, 2024
3d47de7
Kratos API
roigcarlo Jun 12, 2024
381f1ef
disabling misterious error test
roigcarlo Jun 13, 2024
af0b4c8
Merge branch 'master' into ci/gtests
loumalouomega Jun 14, 2024
0160902
Update base cmake with KRATOS_BASE_FOLDER
loumalouomega Jun 18, 2024
676456d
Using `KRATOS_BASE_FOLDER`
loumalouomega Jun 18, 2024
9a588d6
Remove comments
roigcarlo Jun 18, 2024
0f17e58
Initial doc
roigcarlo Jun 18, 2024
3c42827
Move test to the correct suite
jcotela Jun 19, 2024
065211e
Remove uneeded suite fixture
jcotela Jun 19, 2024
867b91d
Add class to handle importing runtime dependencies
jcotela Jun 25, 2024
5e975d2
Add some CreateApplication methods
jcotela Jun 25, 2024
013fb06
Adding demo suite
jcotela Jun 25, 2024
a0e7f60
Prefer KRATOS_COMPILED_IN_WINDOWS macro
jcotela Jun 25, 2024
31c70e6
Add CreateApplication for LinearSolversApplication
jcotela Jun 25, 2024
dc94598
Update test suite example
jcotela Jun 25, 2024
89e75be
Merge pull request #12475 from KratosMultiphysics/ci/gtest-runtime-de…
jcotela Jun 25, 2024
a557de1
Reorganizing test structure
roigcarlo Jun 26, 2024
0e3f849
Fixing mistakes and comp problems
roigcarlo Jun 27, 2024
6a0038f
Fixing mpi changes
roigcarlo Jun 27, 2024
04ca744
More mpi problems
roigcarlo Jun 27, 2024
3596255
Avoid including windows.h from a header, since it adds macros with co…
jcotela Jun 27, 2024
1ff8fc6
Add missing KRATOS_API
jcotela Jun 27, 2024
26befb4
Merge pull request #12486 from KratosMultiphysics/ci/gtests-dynload
roigcarlo Jun 27, 2024
45998b2
Merge branch 'master' into ci/gtests
roigcarlo Jun 27, 2024
2a31566
Update new tests
roigcarlo Jun 27, 2024
3ce7ff0
Missing exort api
roigcarlo Jun 28, 2024
03159b1
Merge branch 'master' into ci/gtests
roigcarlo Jul 1, 2024
cf65e62
minor
sunethwarna Jul 1, 2024
257ba2a
Temporaly disabling test
roigcarlo Jul 1, 2024
dbc189c
Merge branch 'ci/gtests' of github.com:KratosMultiphysics/Kratos into…
roigcarlo Jul 1, 2024
969a77e
Temporaly disabling test for vectors
roigcarlo Jul 2, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
101 changes: 79 additions & 22 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,16 @@ jobs:
bash configure.sh
rm -r ${GITHUB_WORKSPACE}/build

- name: Running C++ tests
shell: bash
run: |
if [ ${{ matrix.compiler }} = gcc ]; then
source /opt/intel/oneapi/setvars.sh
fi
export PYTHONPATH=${PYTHONPATH}:${GITHUB_WORKSPACE}/bin/${{ matrix.build-type }}
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${GITHUB_WORKSPACE}/bin/${{ matrix.build-type }}/libs
python3 kratos/python_scripts/testing/run_cpp_tests.py

- name: Running python tests
shell: bash
run: |
Expand All @@ -159,7 +169,7 @@ jobs:
fi
export PYTHONPATH=${PYTHONPATH}:${GITHUB_WORKSPACE}/bin/${{ matrix.build-type }}
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${GITHUB_WORKSPACE}/bin/${{ matrix.build-type }}/libs
python3 kratos/python_scripts/testing/run_tests.py -v 2 -l nightly -c python3
python3 kratos/python_scripts/testing/run_python_tests.py -v 2 -l nightly -c python3

- name: Prepare Parallel Env
shell: bash
Expand All @@ -175,7 +185,7 @@ jobs:
fi
export PYTHONPATH=${PYTHONPATH}:${GITHUB_WORKSPACE}/bin/${{ matrix.build-type }}
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${GITHUB_WORKSPACE}/bin/${{ matrix.build-type }}/libs
mpiexec -np 2 --hostfile ${GITHUB_WORKSPACE}/ci_hostfile python3 kratos/python_scripts/testing/run_cpp_mpi_tests.py --using-mpi
python3 kratos/python_scripts/testing/run_cpp_mpi_tests.py --mpi_flags "--hostfile ${GITHUB_WORKSPACE}/ci_hostfile" -n 2

- name: Running MPI C++ tests (3 Cores)
shell: bash
Expand All @@ -186,7 +196,7 @@ jobs:
fi
export PYTHONPATH=${PYTHONPATH}:${GITHUB_WORKSPACE}/bin/${{ matrix.build-type }}
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${GITHUB_WORKSPACE}/bin/${{ matrix.build-type }}/libs
mpiexec -np 3 --hostfile ${GITHUB_WORKSPACE}/ci_hostfile python3 kratos/python_scripts/testing/run_cpp_mpi_tests.py --using-mpi
python3 kratos/python_scripts/testing/run_cpp_mpi_tests.py --mpi_flags "--hostfile ${GITHUB_WORKSPACE}/ci_hostfile" -n 3

- name: Running MPI C++ tests (4 Cores)
shell: bash
Expand All @@ -197,7 +207,7 @@ jobs:
fi
export PYTHONPATH=${PYTHONPATH}:${GITHUB_WORKSPACE}/bin/${{ matrix.build-type }}
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${GITHUB_WORKSPACE}/bin/${{ matrix.build-type }}/libs
mpiexec -np 4 --hostfile ${GITHUB_WORKSPACE}/ci_hostfile python3 kratos/python_scripts/testing/run_cpp_mpi_tests.py --using-mpi
python3 kratos/python_scripts/testing/run_cpp_mpi_tests.py --mpi_flags "--hostfile ${GITHUB_WORKSPACE}/ci_hostfile" -n 4

- name: Running Python MPI tests (2 Cores)
shell: bash
Expand All @@ -208,7 +218,7 @@ jobs:
export OMP_NUM_THREADS=1
export PYTHONPATH=${PYTHONPATH}:${GITHUB_WORKSPACE}/bin/${{ matrix.build-type }}
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${GITHUB_WORKSPACE}/bin/${{ matrix.build-type }}/libs
python3 kratos/python_scripts/testing/run_python_mpi_tests.py -l mpi_nightly -n 2 --mpi_flags="--hostfile ${GITHUB_WORKSPACE}/ci_hostfile"
python3 kratos/python_scripts/testing/run_python_mpi_tests.py --mpi_flags "--hostfile ${GITHUB_WORKSPACE}/ci_hostfile" -l mpi_nightly -n 2

- name: Running Python MPI tests (3 Cores)
shell: bash
Expand All @@ -219,7 +229,7 @@ jobs:
export OMP_NUM_THREADS=1
export PYTHONPATH=${PYTHONPATH}:${GITHUB_WORKSPACE}/bin/${{ matrix.build-type }}
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${GITHUB_WORKSPACE}/bin/${{ matrix.build-type }}/libs
python3 kratos/python_scripts/testing/run_python_mpi_tests.py -l mpi_nightly -n 3 --mpi_flags="--hostfile ${GITHUB_WORKSPACE}/ci_hostfile"
python3 kratos/python_scripts/testing/run_python_mpi_tests.py --mpi_flags "--hostfile ${GITHUB_WORKSPACE}/ci_hostfile" -l mpi_nightly -n 3

- name: Running Python MPI tests (4 Cores)
shell: bash
Expand All @@ -230,7 +240,8 @@ jobs:
export OMP_NUM_THREADS=1
export PYTHONPATH=${PYTHONPATH}:${GITHUB_WORKSPACE}/bin/${{ matrix.build-type }}
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${GITHUB_WORKSPACE}/bin/${{ matrix.build-type }}/libs
python3 kratos/python_scripts/testing/run_python_mpi_tests.py -l mpi_nightly -n 4 --mpi_flags="--hostfile ${GITHUB_WORKSPACE}/ci_hostfile"
python3 kratos/python_scripts/testing/run_python_mpi_tests.py --mpi_flags "--hostfile ${GITHUB_WORKSPACE}/ci_hostfile" -l mpi_nightly -n 4


windows:
runs-on: windows-2019
Expand Down Expand Up @@ -273,12 +284,20 @@ jobs:
python kratos/python_scripts/testing/ci_utilities.py
configure.cmd

- name: Running C++ tests
shell: cmd
run: |
set PYTHONPATH=%PYTHONPATH%;%GITHUB_WORKSPACE%/bin/%KRATOS_BUILD_TYPE%
set PATH=%PATH%;%GITHUB_WORKSPACE%/bin/%KRATOS_BUILD_TYPE%/libs
python kratos/python_scripts/testing/run_cpp_tests.py

- name: Running python tests
shell: cmd
run: |
set PYTHONPATH=%PYTHONPATH%;%GITHUB_WORKSPACE%/bin/%KRATOS_BUILD_TYPE%
set PATH=%PATH%;%GITHUB_WORKSPACE%/bin/%KRATOS_BUILD_TYPE%/libs
python kratos/python_scripts/testing/run_tests.py -l nightly -c python
python kratos/python_scripts/testing/run_python_tests.py -l nightly -c python


centos:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -308,11 +327,18 @@ jobs:
cp .github/workflows/centos_configure.sh centos_configure.sh
bash centos_configure.sh

- name: Running C++ tests
run: |
export PYTHONPATH=${GITHUB_WORKSPACE}/bin/Custom
export LD_LIBRARY_PATH=${GITHUB_WORKSPACE}/bin/Custom/libs
python3.8 kratos/python_scripts/testing/run_cpp_tests.py

- name: Running python tests
run: |
export PYTHONPATH=${GITHUB_WORKSPACE}/bin/Custom
export LD_LIBRARY_PATH=${GITHUB_WORKSPACE}/bin/Custom/libs
python3.8 kratos/python_scripts/testing/run_tests.py -l nightly -c python3.8
python3.8 kratos/python_scripts/testing/run_python_tests.py -l nightly -c python3.8


ubuntu-core-without-unity:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -368,36 +394,43 @@ jobs:
# Please do not use more than 2 cores or it will produce an out of heap memory error
cmake --build "${KRATOS_BUILD}/${KRATOS_BUILD_TYPE}" --target install -- -j2

- name: Running C++ tests
shell: bash
run: |
export PYTHONPATH=${PYTHONPATH}:${GITHUB_WORKSPACE}/bin/Custom
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${GITHUB_WORKSPACE}/bin/Custom/libs
python3 kratos/python_scripts/testing/run_cpp_tests.py

- name: Running python tests
shell: bash
run: |
export PYTHONPATH=${PYTHONPATH}:${GITHUB_WORKSPACE}/bin/Custom
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${GITHUB_WORKSPACE}/bin/Custom/libs
python3 kratos/python_scripts/testing/run_tests.py -l nightly -c python3
python3 kratos/python_scripts/testing/run_python_tests.py -l nightly -c python3

- name: Running MPI C++ tests (2 Cores)
shell: bash
timeout-minutes : 10
run: |
export PYTHONPATH=${PYTHONPATH}:${GITHUB_WORKSPACE}/bin/Custom
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${GITHUB_WORKSPACE}/bin/Custom/libs
mpiexec -np 2 python3 kratos/python_scripts/testing/run_cpp_mpi_tests.py --using-mpi
python3 kratos/python_scripts/testing/run_cpp_mpi_tests.py -n 2

- name: Running MPI C++ tests (3 Cores)
shell: bash
timeout-minutes : 10
run: |
export PYTHONPATH=${PYTHONPATH}:${GITHUB_WORKSPACE}/bin/Custom
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${GITHUB_WORKSPACE}/bin/Custom/libs
mpiexec -np 3 python3 kratos/python_scripts/testing/run_cpp_mpi_tests.py --using-mpi
python3 kratos/python_scripts/testing/run_cpp_mpi_tests.py -n 3

- name: Running MPI C++ tests (4 Cores)
shell: bash
timeout-minutes : 10
run: |
export PYTHONPATH=${PYTHONPATH}:${GITHUB_WORKSPACE}/bin/Custom
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${GITHUB_WORKSPACE}/bin/Custom/libs
mpiexec -np 4 python3 kratos/python_scripts/testing/run_cpp_mpi_tests.py --using-mpi
python3 kratos/python_scripts/testing/run_cpp_mpi_tests.py -n 4

- name: Running Python MPI tests (2 Cores)
shell: bash
Expand Down Expand Up @@ -489,12 +522,19 @@ jobs:
echo Failed with error #%errorlevel%.
exit /b %errorlevel%

- name: Running C++ tests
shell: cmd
run: |
set PYTHONPATH=%PYTHONPATH%;%GITHUB_WORKSPACE%/bin/%KRATOS_BUILD_TYPE%
set PATH=%PATH%;%GITHUB_WORKSPACE%/bin/%KRATOS_BUILD_TYPE%/libs
python kratos/python_scripts/testing/run_cpp_tests.py

- name: Running python tests
shell: cmd
run: |
set PYTHONPATH=%PYTHONPATH%;%GITHUB_WORKSPACE%/bin/%KRATOS_BUILD_TYPE%
set PATH=%PATH%;%GITHUB_WORKSPACE%/bin/%KRATOS_BUILD_TYPE%/libs
python kratos/python_scripts/testing/run_tests.py -l nightly -c python
python kratos/python_scripts/testing/run_python_tests.py -l nightly -c python


ubuntu-intel-legacy:
Expand Down Expand Up @@ -529,13 +569,21 @@ jobs:
cp .github/workflows/intel_configure.sh configure.sh
bash configure.sh

- name: Running C++ tests
shell: bash
run: |
source /opt/intel/oneapi/setvars.sh
export PYTHONPATH=${PYTHONPATH}:${GITHUB_WORKSPACE}/bin/Custom
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${GITHUB_WORKSPACE}/bin/Custom/libs
python3 kratos/python_scripts/testing/run_cpp_tests.py

- name: Running python tests
shell: bash
run: |
source /opt/intel/oneapi/setvars.sh
export PYTHONPATH=${PYTHONPATH}:${GITHUB_WORKSPACE}/bin/Custom
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${GITHUB_WORKSPACE}/bin/Custom/libs
python3 kratos/python_scripts/testing/run_tests.py -l nightly -c python3
python3 kratos/python_scripts/testing/run_python_tests.py -l nightly -c python3

- name: Running MPI C++ tests (2 Cores)
shell: bash
Expand All @@ -546,7 +594,7 @@ jobs:
source /opt/intel/oneapi/setvars.sh
export PYTHONPATH=${PYTHONPATH}:${GITHUB_WORKSPACE}/bin/Custom
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${GITHUB_WORKSPACE}/bin/Custom/libs
mpiexec -np 2 python3 kratos/python_scripts/testing/run_cpp_mpi_tests.py --using-mpi
python3 kratos/python_scripts/testing/run_cpp_mpi_tests.py -n 2

- name: Running MPI C++ tests (3 Cores)
shell: bash
Expand All @@ -555,7 +603,7 @@ jobs:
source /opt/intel/oneapi/setvars.sh
export PYTHONPATH=${PYTHONPATH}:${GITHUB_WORKSPACE}/bin/Custom
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${GITHUB_WORKSPACE}/bin/Custom/libs
mpiexec -np 3 python3 kratos/python_scripts/testing/run_cpp_mpi_tests.py --using-mpi
python3 kratos/python_scripts/testing/run_cpp_mpi_tests.py -n 3

- name: Running MPI C++ tests (4 Cores)
shell: bash
Expand All @@ -564,7 +612,7 @@ jobs:
source /opt/intel/oneapi/setvars.sh
export PYTHONPATH=${PYTHONPATH}:${GITHUB_WORKSPACE}/bin/Custom
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${GITHUB_WORKSPACE}/bin/Custom/libs
mpiexec -np 4 python3 kratos/python_scripts/testing/run_cpp_mpi_tests.py --using-mpi
python3 kratos/python_scripts/testing/run_cpp_mpi_tests.py -n 4

- name: Running Python MPI tests (2 Cores)
shell: bash
Expand Down Expand Up @@ -624,14 +672,23 @@ jobs:
cp .github/workflows/intel_configure.sh configure.sh
bash configure.sh

- name: Running C++ tests
shell: bash
continue-on-error: true # TODO segfaults in cpp-tests
run: |
source /opt/intel/oneapi/setvars.sh
export PYTHONPATH=${PYTHONPATH}:${GITHUB_WORKSPACE}/bin/Custom
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${GITHUB_WORKSPACE}/bin/Custom/libs
python3 kratos/python_scripts/testing/run_cpp_tests.py

- name: Running python tests
shell: bash
continue-on-error: true # TODO segfaults in cpp-tests
run: |
source /opt/intel/oneapi/setvars.sh
export PYTHONPATH=${PYTHONPATH}:${GITHUB_WORKSPACE}/bin/Custom
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${GITHUB_WORKSPACE}/bin/Custom/libs
python3 kratos/python_scripts/testing/run_tests.py -l nightly -c python3
python3 kratos/python_scripts/testing/run_python_tests.py -l nightly -c python3

- name: Running MPI C++ tests (2 Cores)
shell: bash
Expand All @@ -640,7 +697,7 @@ jobs:
source /opt/intel/oneapi/setvars.sh
export PYTHONPATH=${PYTHONPATH}:${GITHUB_WORKSPACE}/bin/Custom
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${GITHUB_WORKSPACE}/bin/Custom/libs
mpiexec -np 2 python3 kratos/python_scripts/testing/run_cpp_mpi_tests.py --using-mpi
python3 kratos/python_scripts/testing/run_cpp_mpi_tests.py -n 2

- name: Running MPI C++ tests (3 Cores)
shell: bash
Expand All @@ -649,7 +706,7 @@ jobs:
source /opt/intel/oneapi/setvars.sh
export PYTHONPATH=${PYTHONPATH}:${GITHUB_WORKSPACE}/bin/Custom
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${GITHUB_WORKSPACE}/bin/Custom/libs
mpiexec -np 3 python3 kratos/python_scripts/testing/run_cpp_mpi_tests.py --using-mpi
python3 kratos/python_scripts/testing/run_cpp_mpi_tests.py -n 3

- name: Running MPI C++ tests (4 Cores)
shell: bash
Expand All @@ -658,7 +715,7 @@ jobs:
source /opt/intel/oneapi/setvars.sh
export PYTHONPATH=${PYTHONPATH}:${GITHUB_WORKSPACE}/bin/Custom
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${GITHUB_WORKSPACE}/bin/Custom/libs
mpiexec -np 4 python3 kratos/python_scripts/testing/run_cpp_mpi_tests.py --using-mpi
python3 kratos/python_scripts/testing/run_cpp_mpi_tests.py -n 4

- name: Running Python MPI tests (2 Cores)
shell: bash
Expand Down
Loading
Loading