summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/overseer/template/custom/cmake_test.lua
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/lua/overseer/template/custom/cmake_test.lua')
-rw-r--r--.config/nvim/lua/overseer/template/custom/cmake_test.lua28
1 files changed, 0 insertions, 28 deletions
diff --git a/.config/nvim/lua/overseer/template/custom/cmake_test.lua b/.config/nvim/lua/overseer/template/custom/cmake_test.lua
deleted file mode 100644
index 7591cc9..0000000
--- a/.config/nvim/lua/overseer/template/custom/cmake_test.lua
+++ /dev/null
@@ -1,28 +0,0 @@
-local overseer = require('overseer')
-local root_pattern = require('lspconfig/util').root_pattern('CMakePresets.json', 'CTestConfig.cmake', 'build', 'cmake')
-return {
- name = 'Test Cmake Project',
- builder = function(_)
- local filename = vim.fn.expand('%:p')
- local root_dir = root_pattern(filename)
-
- return {
- name = 'Cmake Tests',
- cmd = 'ctest --output-on-failure',
- cwd = root_dir .. '/build',
- }
- end,
- tags = { overseer.TAG.TEST },
- priority = 42,
- condition = {
- callback = function()
- local filename = vim.fn.expand('%:p')
- local root_dir = root_pattern(filename)
- if not root_dir then
- return false, 'Unable to detect root directory of cmake project'
- end
-
- return true
- end,
- },
-}