X-Git-Url: https://git.arvados.org/arvados-formula.git/blobdiff_plain/4bf9501a14f86845865244ee3ffb03a34707d36c..15afd641d8251dbef21171df649c3e1c56eb55cd:/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 0b69de9..9d52c12 100644 --- a/test/integration/shell/controls/packages_spec.rb +++ b/test/integration/shell/controls/packages_spec.rb @@ -1,12 +1,15 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: Apache-2.0 # frozen_string_literal: true packages_list = %w[ arvados-client arvados-src - libpam-arvados-go python3-arvados-fuse python3-arvados-python-client python3-arvados-cwl-runner + python3-crunchstat-summary shellinabox ] @@ -34,3 +37,31 @@ control 'arvados shell gems' do end end end + +control 'arvados shell gems' do + title 'should be installed' + + only_if('Skipped in Centos-7, Ubuntu-18.04 and Debian-10') do + !((os.redhat? and platform[:release].to_f.truncate == 7) or + (os.name == 'ubuntu' and platform[:release].to_f.truncate == 18) or + (os.name == 'debian' and platform[:release].to_f.truncate == 10)) + 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, Ubuntu-18.04 and Debian-10') do + (os.redhat? and platform[:release].to_f.truncate == 7) or + (os.name == 'ubuntu' and platform[:release].to_f.truncate == 18) or + (os.name == 'debian' and platform[:release].to_f.truncate == 10) + end + + describe gem('arvados-cli', '/usr/local/rvm/bin/rvm all do gem') do + it { should be_installed } + end +end