﻿<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ja">
	<id>https://wiki.blender.jp/index.php?action=history&amp;feed=atom&amp;title=Dev%3ADoc%2FTools%2FTests%2FSetup</id>
	<title>Dev:Doc/Tools/Tests/Setup - 版の履歴</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.blender.jp/index.php?action=history&amp;feed=atom&amp;title=Dev%3ADoc%2FTools%2FTests%2FSetup"/>
	<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=Dev:Doc/Tools/Tests/Setup&amp;action=history"/>
	<updated>2026-07-04T03:37:51Z</updated>
	<subtitle>このウィキのこのページに関する変更履歴</subtitle>
	<generator>MediaWiki 1.31.0</generator>
	<entry>
		<id>https://wiki.blender.jp/index.php?title=Dev:Doc/Tools/Tests/Setup&amp;diff=153341&amp;oldid=prev</id>
		<title>Yamyam: 1版 をインポートしました</title>
		<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=Dev:Doc/Tools/Tests/Setup&amp;diff=153341&amp;oldid=prev"/>
		<updated>2018-06-28T21:22:36Z</updated>

		<summary type="html">&lt;p&gt;1版 をインポートしました&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ja&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← 古い版&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;2018年6月28日 (木) 21:22時点における版&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;ja&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(相違点なし)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Yamyam</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.blender.jp/index.php?title=Dev:Doc/Tools/Tests/Setup&amp;diff=153340&amp;oldid=prev</id>
		<title>wiki&gt;Brecht: /* Test Setup */</title>
		<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=Dev:Doc/Tools/Tests/Setup&amp;diff=153340&amp;oldid=prev"/>
		<updated>2018-02-21T00:44:50Z</updated>

		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Test Setup&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新規ページ&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Test Setup =&lt;br /&gt;
&lt;br /&gt;
Blender uses the CMake testing framework to build Python and GTest tests. Only a small fraction of Blender's code base is covered, developers are highly encouraged to add more tests.&lt;br /&gt;
&lt;br /&gt;
This document assumes you have built blender using the [https://wiki.blender.org/index.php/Dev:Doc/Building_Blender official build instructions].&lt;br /&gt;
&lt;br /&gt;
* blender source in '''~/blender-git/blender'''&lt;br /&gt;
* blender build in '''~/blender-git/build'''&lt;br /&gt;
&lt;br /&gt;
== Dependencies ==&lt;br /&gt;
&lt;br /&gt;
External binary files are needed for running some Blender tests. They are available through a SVN repository.&lt;br /&gt;
Run these commands to get them (assumes SVN being available):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cd ~/blender-git&lt;br /&gt;
mkdir lib&lt;br /&gt;
cd lib&lt;br /&gt;
svn checkout https://svn.blender.org/svnroot/bf-blender/trunk/lib/tests&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Running the tests ==&lt;br /&gt;
&lt;br /&gt;
At least once you need to run the complete make command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cd ~/blender-git/build&lt;br /&gt;
make test&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will run all the available tests. If you want to run a specific test, you can cancel '''make test''' as soon as it starts running tests.&lt;br /&gt;
This step is further required to make newly added tests executable.&lt;br /&gt;
&lt;br /&gt;
Running multiple tests with a similar name is possible using the -R option:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
ctest -R render_layer&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If a specific test fails, you can re-run it with verbose options to get more information:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
ctest -R render_layer_evaluation_render_settings_a -VV&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Regression Tests ==&lt;br /&gt;
&lt;br /&gt;
Cycles and opengl drawing tests produce a HTML file to show the result of running regression tests, comparing renders and screenshots against a reference image. These can be found at:&lt;br /&gt;
* '''~/blender-git/build/tests/cycles/report.html'''&lt;br /&gt;
* '''~/blender-git/build/tests/opengl_draw/report.html'''&lt;br /&gt;
&lt;br /&gt;
When there are benign test failures due to intentional changes, the reference images can be updated as follows:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
BLENDER_TEST_UPDATE=1 ctest -R cycles&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>wiki&gt;Brecht</name></author>
		
	</entry>
</feed>