Adding new test for making sure native extension gem is installed without error.

This commit is contained in:
Iveta Wiedermann 2022-11-24 12:22:25 +01:00
commit a83361d922
2 changed files with 28 additions and 0 deletions

View file

@ -0,0 +1,7 @@
summary: native extension gem is installed without error
test: ./test.sh
framework: beakerlib
require:
- ruby-devel
- gcc
- rubygems

View file

@ -0,0 +1,21 @@
#!/bin/bash
# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k
. /usr/share/beakerlib/beakerlib.sh || exit 1
rlJournalStart
rlPhaseStartSetup
rlRun "tmp=\$(mktemp -d)" 0 "Create tmp directory"
rlRun "pushd $tmp"
rlRun "set -o pipefail"
rlPhaseEnd
rlPhaseStartTest
rlRun "gem install byebug" 0 "Try to install byebug gem"
rlPhaseEnd
rlPhaseStartCleanup
rlRun "gem uninstall byebug" 0 "Uninstalling gem byebug"
rlRun "popd"
rlRun "rm -r $tmp" 0 "Remove tmp directory"
rlPhaseEnd
rlJournalEnd