diff --git a/R/sysreqs2.R b/R/sysreqs2.R index 66df5fa8..9cad649a 100644 --- a/R/sysreqs2.R +++ b/R/sysreqs2.R @@ -18,6 +18,17 @@ sysreqs2_cmds <- utils::read.table( 'Red Hat Enterprise Linux' linux redhat 6 NA 'yum install -y' rpm 'Red Hat Enterprise Linux' linux redhat 7 NA 'yum install -y' rpm 'Red Hat Enterprise Linux' linux redhat * NA 'dnf install -y' rpm + 'Red Hat Enterprise Linux' linux rhel 7.0 NA 'yum install -y' rpm + 'Red Hat Enterprise Linux' linux rhel 7.1 NA 'yum install -y' rpm + 'Red Hat Enterprise Linux' linux rhel 7.2 NA 'yum install -y' rpm + 'Red Hat Enterprise Linux' linux rhel 7.3 NA 'yum install -y' rpm + 'Red Hat Enterprise Linux' linux rhel 7.4 NA 'yum install -y' rpm + 'Red Hat Enterprise Linux' linux rhel 7.5 NA 'yum install -y' rpm + 'Red Hat Enterprise Linux' linux rhel 7.6 NA 'yum install -y' rpm + 'Red Hat Enterprise Linux' linux rhel 7.7 NA 'yum install -y' rpm + 'Red Hat Enterprise Linux' linux rhel 7.8 NA 'yum install -y' rpm + 'Red Hat Enterprise Linux' linux rhel 7.9 NA 'yum install -y' rpm + 'Red Hat Enterprise Linux' linux rhel * NA 'dnf install -y' rpm 'Fedora Linux' linux fedora * NA 'dnf install -y' rpm 'openSUSE Linux' linux opensuse * NA 'zypper --non-interactive install' rpm 'SUSE Linux Enterprise' linux sle * NA 'zypper --non-interactive install' rpm diff --git a/tests/testthat/_snaps/sysreqs.md b/tests/testthat/_snaps/sysreqs.md index 45ce5bbe..8ca6f5a1 100644 --- a/tests/testthat/_snaps/sysreqs.md +++ b/tests/testthat/_snaps/sysreqs.md @@ -1,9 +1,9 @@ # sysreqs_platforms Code - sysreqs_platforms() + print(sysreqs_platforms(), n = Inf) Output - # A data frame: 11 x 7 + # A data frame: 22 x 7 name os distribution version update_command install_command query_command 1 Ubun~ linux ubuntu * apt-get -y up~ apt-get -y ins~ dpkg-query @@ -13,10 +13,21 @@ 5 Red ~ linux redhat 6 yum install -y rpm 6 Red ~ linux redhat 7 yum install -y rpm 7 Red ~ linux redhat * dnf install -y rpm - 8 Fedo~ linux fedora * dnf install -y rpm - 9 open~ linux opensuse * zypper --non-i~ rpm - 10 SUSE~ linux sle * zypper --non-i~ rpm - 11 Alpi~ linux alpine * apk add --no-c~ apk + 8 Red ~ linux rhel 7.0 yum install -y rpm + 9 Red ~ linux rhel 7.1 yum install -y rpm + 10 Red ~ linux rhel 7.2 yum install -y rpm + 11 Red ~ linux rhel 7.3 yum install -y rpm + 12 Red ~ linux rhel 7.4 yum install -y rpm + 13 Red ~ linux rhel 7.5 yum install -y rpm + 14 Red ~ linux rhel 7.6 yum install -y rpm + 15 Red ~ linux rhel 7.7 yum install -y rpm + 16 Red ~ linux rhel 7.8 yum install -y rpm + 17 Red ~ linux rhel 7.9 yum install -y rpm + 18 Red ~ linux rhel * dnf install -y rpm + 19 Fedo~ linux fedora * dnf install -y rpm + 20 open~ linux opensuse * zypper --non-i~ rpm + 21 SUSE~ linux sle * zypper --non-i~ rpm + 22 Alpi~ linux alpine * apk add --no-c~ apk # sysreqs_db_list diff --git a/tests/testthat/test-sysreqs.R b/tests/testthat/test-sysreqs.R index cd33717b..bd63c78f 100644 --- a/tests/testthat/test-sysreqs.R +++ b/tests/testthat/test-sysreqs.R @@ -1,6 +1,6 @@ test_that("sysreqs_platforms", { - expect_snapshot(sysreqs_platforms()) + expect_snapshot(print(sysreqs_platforms(), n = Inf)) }) test_that("sysreqs_db_list", {