Skip to content

Commit 9193587

Browse files
author
Jonas Heinle
committed
added perf tests to cicd
1 parent 3320025 commit 9193587

File tree

4 files changed

+8
-70
lines changed

4 files changed

+8
-70
lines changed

.github/workflows/Linux.yml

+7
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,13 @@ jobs:
9191
llvm-profdata merge -sparse ${{github.workspace}}/build/Test/compile/default.profraw -o ${{github.workspace}}/build/compileTestSuite.profdata
9292
llvm-cov report ${{github.workspace}}/build/compileTestSuite -instr-profile=${{github.workspace}}/build/compileTestSuite.profdata
9393
llvm-cov export ${{github.workspace}}/build/compileTestSuite -format=text -instr-profile=${{github.workspace}}/build/compileTestSuite.profdata > ${{github.workspace}}/build/coverage.json
94+
- name: Run profiling
95+
run: |
96+
cd build
97+
LLVM_PROFILE_FILE="${{github.workspace}}/build/engine.profraw" ./GraphicsEngine
98+
llvm-profdata merge -sparse ${{github.workspace}}/build/engine.profraw -o ${{github.workspace}}/build/engine.profdata
99+
llvm-cov show ./GraphicsEngine -instr-profile=${{github.workspace}}/build/engine.profdata -format=text
100+
94101
- name: Codecov
95102
uses: codecov/[email protected]
96103
with:

CMakeLists.txt

+1-2
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,13 @@ foreach(Shader ${PATH_TRACING_SHADER_FILTER})
5252
endforeach()
5353

5454
if(NOT WINDOWS_CI)
55+
include(CTest)
5556
enable_testing()
5657
message(STATUS "WINDOWS_CI is OFF or not defined.")
5758
else()
5859
message(STATUS "WINDOWS_CI is OFF or not defined.")
5960
endif()
6061

61-
include(CTest)
62-
6362
if(BUILD_TESTING)
6463
message(STATUS "Tests are enabled.!")
6564
add_subdirectory(Test/commit)

ExternalLib/CMakeLists.txt

-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@ target_include_directories(glad SYSTEM
100100
# https://stackoverflow.com/questions/49591804/clang-tidy-cmake-exclude-file-from-check/49591908#49591908
101101
# with this trick IMGUI will be excluded from time consuming static code analysis
102102
# we do not want to analyze imgui ...
103-
# include(cmake/CreateProjectFilesToTestLib.cmake)
104103
# and we will not to all this for our testing executable again :)
105104
add_library(
106105
IMGUI

cmake/CreateProjectFilesToTestLib.cmake

-67
This file was deleted.

0 commit comments

Comments
 (0)