mirror of
https://github.com/vagrant-libvirt/vagrant-libvirt.git
synced 2025-02-25 18:55:27 -06:00
Add support for video resolution hinting tests
make sure all tests pass
This commit is contained in:
@@ -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 -%>
|
||||||
|
|||||||
@@ -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'>
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user