Add support for video resolution hinting tests

make sure all tests pass
This commit is contained in:
Andreas Jonsson
2023-11-05 18:31:58 +01:00
parent 77604a143b
commit 5296bde844
3 changed files with 6 additions and 7 deletions

View File

@@ -285,12 +285,9 @@
<gl enable='yes'/> <gl enable='yes'/>
</graphics><% end -%> </graphics><% end -%>
<video> <video>
<model type='<%= @video_type %>' <model type='<%= @video_type %>' vram='<%= @video_vram %>' heads='1'<% if not @video_accel3d and not (@video_resolution_x and @video_resolution_y)%>/><% else %>>
vram='<%= @video_vram %>' <% if @video_accel3d %><acceleration accel3d='yes'/><% end %><% if @video_resolution_x and @video_resolution_y %><resolution x='<%= @video_resolution_x %>' y='<%= @video_resolution_y %>'/><% end %>
heads='1'> </model><% end %>
<% if @video_accel3d %><acceleration accel3d='yes'/><%- end -%>
<% if @video_resolution_x and @video_resolution_y %><resolution x='<%= @video_resolution_x %>' y='<%= @video_resolution_y %>'/><%- end -%>
</model>
</video> </video>
<%#End Video -%> <%#End Video -%>
<%- end -%> <%- end -%>

View File

@@ -129,7 +129,7 @@
</graphics> </graphics>
<video> <video>
<model type='virtio' vram='16384' heads='1'> <model type='virtio' vram='16384' heads='1'>
<acceleration accel3d='yes'/> <acceleration accel3d='yes'/><resolution x='1920' y='1080'/>
</model> </model>
</video> </video>
<rng model='virtio'> <rng model='virtio'>

View File

@@ -136,6 +136,8 @@ describe 'templates/domain' do
domain.nodeset = '1-4,^3,6' domain.nodeset = '1-4,^3,6'
domain.video_accel3d = true domain.video_accel3d = true
domain.video_resolution_x = 1920
domain.video_resolution_y = 1080
end end
let(:test_file) { 'domain_all_settings.xml' } let(:test_file) { 'domain_all_settings.xml' }
it 'renders template' do it 'renders template' do