<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.abuissa.net/index.php?action=history&amp;feed=atom&amp;title=Blog%3A_2023-08-24</id>
	<title>Blog: 2023-08-24 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.abuissa.net/index.php?action=history&amp;feed=atom&amp;title=Blog%3A_2023-08-24"/>
	<link rel="alternate" type="text/html" href="https://wiki.abuissa.net/index.php?title=Blog:_2023-08-24&amp;action=history"/>
	<updated>2026-04-06T23:13:27Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.13</generator>
	<entry>
		<id>https://wiki.abuissa.net/index.php?title=Blog:_2023-08-24&amp;diff=703&amp;oldid=prev</id>
		<title>Razzi at 03:14, 24 August 2023</title>
		<link rel="alternate" type="text/html" href="https://wiki.abuissa.net/index.php?title=Blog:_2023-08-24&amp;diff=703&amp;oldid=prev"/>
		<updated>2023-08-24T03:14:11Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;a href=&quot;https://wiki.abuissa.net/index.php?title=Blog:_2023-08-24&amp;amp;diff=703&amp;amp;oldid=702&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>Razzi</name></author>
	</entry>
	<entry>
		<id>https://wiki.abuissa.net/index.php?title=Blog:_2023-08-24&amp;diff=702&amp;oldid=prev</id>
		<title>Razzi: Created page with &quot;Trying to figure out how to run single test in fish  Makefile:  &lt;pre&gt; .PHONY: test test: build/fish 	$(CMAKE) --build build --target test &lt;/pre&gt;  Tests.cmake:  &lt;pre&gt; # CMake b...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.abuissa.net/index.php?title=Blog:_2023-08-24&amp;diff=702&amp;oldid=prev"/>
		<updated>2023-08-24T02:46:46Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Trying to figure out how to run single test in fish  Makefile:  &amp;lt;pre&amp;gt; .PHONY: test test: build/fish 	$(CMAKE) --build build --target test &amp;lt;/pre&amp;gt;  Tests.cmake:  &amp;lt;pre&amp;gt; # CMake b...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Trying to figure out how to run single test in fish&lt;br /&gt;
&lt;br /&gt;
Makefile:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
.PHONY: test&lt;br /&gt;
test: build/fish&lt;br /&gt;
	$(CMAKE) --build build --target test&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tests.cmake:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# CMake being CMake, you can&amp;#039;t just add a DEPENDS argument to add_test to make it depend on any of&lt;br /&gt;
# your binaries actually being built before `make test` is executed (requiring `make all` first),&lt;br /&gt;
# and the only dependency a test can have is on another test. So we make building fish and&lt;br /&gt;
# `fish_tests` prerequisites to our entire top-level `test` target.&lt;br /&gt;
function(add_test_target NAME)&lt;br /&gt;
  string(REPLACE &amp;quot;/&amp;quot; &amp;quot;-&amp;quot; NAME ${NAME})&lt;br /&gt;
  add_custom_target(&amp;quot;test_${NAME}&amp;quot; COMMAND ${CMAKE_CTEST_COMMAND} --output-on-failure -R &amp;quot;^${NAME}$$&amp;quot;&lt;br /&gt;
    DEPENDS fish_tests tests_buildroot_target USES_TERMINAL )&lt;br /&gt;
endfunction()&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Aha, the -R argument.&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
&lt;br /&gt;
 cmake --build build --target test_tmux-complete.fish&lt;br /&gt;
&lt;br /&gt;
For a test name tmux-complete.fish.&lt;/div&gt;</summary>
		<author><name>Razzi</name></author>
	</entry>
</feed>