Skip to content

Make ctest output more verbose for clang/flang build #3563

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

Closed
wants to merge 37 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
229a0af
Make ctest output more verbose for clang/flang build
martin-frbg Mar 6, 2022
8ddfd92
Add test error output for OSX DYNAMIC_ARCH cmake
martin-frbg Mar 6, 2022
4cbcd1f
try changes from #3561
martin-frbg Mar 6, 2022
39fb0de
Update azure-pipelines.yml
martin-frbg Mar 6, 2022
2670901
Update azure-pipelines.yml
martin-frbg Mar 6, 2022
358fb6d
Update azure-pipelines.yml
martin-frbg Mar 7, 2022
4f7f308
Update azure-pipelines.yml
martin-frbg Mar 7, 2022
1a0c5fe
Update azure-pipelines.yml
martin-frbg Mar 8, 2022
b87f7da
Update azure-pipelines.yml
martin-frbg Mar 17, 2022
206d9a0
Update CMakeLists.txt
martin-frbg Mar 17, 2022
89f1294
Update azure-pipelines.yml
martin-frbg Mar 17, 2022
b8cbd94
Update azure-pipelines.yml
martin-frbg Mar 17, 2022
3ee771c
Update azure-pipelines.yml
martin-frbg Mar 18, 2022
5294dfd
Update azure-pipelines.yml
martin-frbg Mar 18, 2022
8c5f39f
Prevent insertion of a BOM into level2/3 test input on Windows
martin-frbg Mar 18, 2022
829a87c
Update CMakeLists.txt
martin-frbg Mar 18, 2022
a23030c
Update CMakeLists.txt
martin-frbg Mar 18, 2022
2cf591a
Update CMakeLists.txt
martin-frbg Mar 19, 2022
eb6eaab
Update CMakeLists.txt
martin-frbg Mar 19, 2022
8b1ec66
Update azure-pipelines.yml
martin-frbg Mar 19, 2022
992673e
Update CMakeLists.txt
martin-frbg Mar 20, 2022
3d6c37c
Update CMakeLists.txt
martin-frbg Mar 20, 2022
41ccce6
Update CMakeLists.txt
martin-frbg Mar 20, 2022
369233d
Update CMakeLists.txt
martin-frbg Mar 20, 2022
5e2d4be
Update CMakeLists.txt
martin-frbg Mar 20, 2022
daca207
Update CMakeLists.txt
martin-frbg Mar 20, 2022
769bfdb
Update CMakeLists.txt
martin-frbg Mar 21, 2022
ce41618
Update azure-pipelines.yml
martin-frbg Mar 21, 2022
1b10176
Update azure-pipelines.yml
martin-frbg Mar 21, 2022
82f9eb1
Update azure-pipelines.yml
martin-frbg Mar 21, 2022
5fe2dfb
Update azure-pipelines.yml
martin-frbg Mar 21, 2022
f29f845
Update CMakeLists.txt
martin-frbg Mar 21, 2022
b9e827d
Update azure-pipelines.yml
martin-frbg Mar 21, 2022
80573b1
Update CMakeLists.txt
martin-frbg Mar 21, 2022
07d5687
Update CMakeLists.txt
martin-frbg Mar 22, 2022
15e5516
Update CMakeLists.txt
martin-frbg Mar 22, 2022
b390e57
Update CMakeLists.txt
martin-frbg Mar 22, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,14 @@ include(GNUInstallDirs)
include(CMakePackageConfigHelpers)

if(MSVC AND NOT DEFINED NOFORTRAN)
set(NOFORTRAN ON)
# set(NOFORTRAN ON)
message (STATUS "would have set NOFORTRAN here")
endif()

#######
if(MSVC)
option(BUILD_WITHOUT_LAPACK "Do not build LAPACK and LAPACKE (Only BLAS or CBLAS)" ON)
endif()
#if(MSVC)
option(BUILD_WITHOUT_LAPACK "Do not build LAPACK and LAPACKE (Only BLAS or CBLAS)" OFF)
#endif()

option(BUILD_WITHOUT_CBLAS "Do not build the C interface (CBLAS) to the BLAS functions" OFF)

Expand Down
12 changes: 7 additions & 5 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
- task: CMake@1
inputs:
workingDirectory: 'build' # Optional
cmakeArgs: '-G "Visual Studio 16 2019" ..'
cmakeArgs: '-G "Visual Studio 17 2022" ..'
- task: CMake@1
inputs:
cmakeArgs: '--build . --config Release'
Expand Down Expand Up @@ -103,7 +103,7 @@ jobs:

- job: Windows_flang_clang
pool:
vmImage: 'windows-latest'
vmImage: 'windows-2022'
steps:
- script: |
set "PATH=C:\Miniconda\Scripts;C:\Miniconda\Library\bin;C:\Miniconda\Library\usr\bin;C:\Miniconda\condabin;%PATH%"
Expand All @@ -114,10 +114,11 @@ jobs:
conda install --yes --quiet ninja flang
mkdir build
cd build
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
cmake -G "Ninja" -DCMAKE_C_COMPILER=clang-cl -DCMAKE_CXX_COMPILER=clang-cl -DCMAKE_Fortran_COMPILER=flang -DCMAKE_MT=mt -DCMAKE_BUILD_TYPE=Release -DMSVC_STATIC_CRT=ON ..
cmake --build . --config Release
ctest
ctest -VV
file ..\test\sblat2.dat

- job: OSX_OpenMP
pool:
Expand Down Expand Up @@ -177,7 +178,8 @@ jobs:
cd build
cmake -DTARGET=CORE2 -DDYNAMIC_ARCH=1 -DCMAKE_C_COMPILER=gcc-10 -DCMAKE_Fortran_COMPILER=gfortran-10 -DBUILD_SHARED_LIBS=ON ..
cmake --build .
ctest
ctest --verbose
cat /Users/runner/work/1/s/build/Testing/Temporary/LastTest.log

- job: OSX_Ifort_Clang
pool:
Expand Down
4 changes: 4 additions & 0 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ if(WIN32)
FILE(WRITE ${CMAKE_CURRENT_BINARY_DIR}/test_helper.ps1
"if (Test-Path $args[2]) { Remove-Item -Force $args[2] } \n"
"$ErrorActionPreference = \"Stop\"\n"
"If ((Get-Content $args[1] | & file - | %{$_ -match \"BOM\"}) -contains $true) {\n"
"echo 'Skipped due to wrong input encoding'\n"
"exit 0\n"
"}\n"
"Get-Content $args[1] | & $args[0]\n"
"If ((Get-Content $args[2] | %{$_ -match \"FATAL\"}) -contains $true) {\n"
"echo Error\n"
Expand Down