X-Git-Url: https://git.arvados.org/arvados-formula.git/blobdiff_plain/6a74357bfb81a895e4f770ebd643895398675ada..f71042048fef29103a138b6b27e3d7515b327077:/test/integration/shell/controls/packages_spec.rb diff --git a/test/integration/shell/controls/packages_spec.rb b/test/integration/shell/controls/packages_spec.rb index 7ce0f2d..ac58157 100644 --- a/test/integration/shell/controls/packages_spec.rb +++ b/test/integration/shell/controls/packages_spec.rb @@ -37,3 +37,29 @@ control 'arvados shell gems' do end end end + +control 'arvados shell gems' do + title 'should be installed' + + only_if('Skipped in Centos-7 and Ubuntu-18.04') do + !((os.redhat? and platform[:release].to_f.truncate == 7) or + (os.name == 'ubuntu' and platform[:release].to_f.truncate == 18)) + end + + describe gem('arvados-cli') do + it { should be_installed } + end +end + +control 'RVM arvados shell gems' do + title 'should be installed' + + only_if('Forced requirement for Centos-7 and Ubuntu-18.04') do + (os.redhat? and platform[:release].to_f.truncate == 7) or + (os.name == 'ubuntu' and platform[:release].to_f.truncate == 18) + end + + describe gem('arvados-cli', '/usr/local/rvm/bin/rvm all do gem') do + it { should be_installed } + end +end