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'/>
</graphics><% end -%>
<video>
<model type='<%= @video_type %>'
vram='<%= @video_vram %>'
heads='1'>
<% 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>
<model type='<%= @video_type %>' vram='<%= @video_vram %>' heads='1'<% if not @video_accel3d and not (@video_resolution_x and @video_resolution_y)%>/><% else %>>
<% 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><% end %>
</video>
<%#End Video -%>
<%- end -%>

View File

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

View File

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