Преглед на файлове

Test/update nightly installation tests (#2278)

* Updating the nightly installation tests

---------

Co-authored-by: Pavel_Shilin <[email protected]>
Pavel Shilin преди 1 година
родител
ревизия
41a765bd34

+ 1 - 0
.gitignore

@@ -75,6 +75,7 @@
 /test/clt-tests/**/*.deb
 /clt
 /test/clt-tests/*repo.noarch.deb.*
+/test/clt-tests/**/*.cmp
 
 # /test/ql/
 /test/ql/data/*.log

+ 13 - 1
test/clt-tests/installation/deb-dev-install.rec

@@ -37,9 +37,21 @@ Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com)
 ––– input –––
 manticore-executor -v
 ––– output –––
-PHP %{SEMVER} (cli) (built: #!/[a-zA-Z]{3}/!# #!/[0-9]+/!# %{YEAR} %{TIME}) (NTS)
+PHP %{SEMVER} (cli) (built: #!/[a-zA-Z]{3}/!# #!/[0-9]{1,2}/!# %{YEAR} %{TIME}) (NTS)
 Copyright (c) The PHP Group
 Zend Engine %{SEMVER}, Copyright (c) Zend Technologies
 ––– block: start-searchd-dev –––
 ––– block: check-searchd-process –––
 ––– block: check-backup –––
+––– input –––
+apt-get remove -y 'manticore*' > /dev/null 2>&1; echo $?
+––– output –––
+0
+––– input –––
+dpkg -l | grep ^rc | awk '/^rc/ && /manticore/ { print $2 }'
+––– output –––
+manticore-common
+manticore-repo
+manticore-server
+manticore-server-core
+manticore-tools

+ 13 - 0
test/clt-tests/installation/deb-dev-update.rec

@@ -78,3 +78,16 @@ debconf: delaying package configuration, since apt-utils is not installed
 ––– block: start-searchd-dev –––
 ––– block: check-version/export-new-version –––
 ––– block: check-version/comparison-version –––
+––– block: check-backup –––
+––– input –––
+apt-get remove -y 'manticore*' > /dev/null 2>&1; echo $?
+––– output –––
+0
+––– input –––
+dpkg -l | grep ^rc | awk '/^rc/ && /manticore/ { print $2 }'
+––– output –––
+manticore-common
+manticore-repo
+manticore-server
+manticore-server-core
+manticore-tools

+ 12 - 0
test/clt-tests/installation/deb-release-install.rec

@@ -43,3 +43,15 @@ Zend Engine %{SEMVER}, Copyright (c) Zend Technologies
 ––– block: start-searchd-release –––
 ––– block: check-searchd-process –––
 ––– block: check-backup –––
+––– input –––
+apt-get remove -y 'manticore*' > /dev/null 2>&1; echo $?
+––– output –––
+0
+––– input –––
+dpkg -l | grep ^rc | awk '/^rc/ && /manticore/ { print $2 }'
+––– output –––
+manticore-common
+manticore-repo
+manticore-server
+manticore-server-core
+manticore-tools

+ 7 - 0
test/clt-tests/installation/rhel-dev-install.rec

@@ -26,3 +26,10 @@ Zend Engine #!/v[0-9]+\.[0-9]+\.[0-9]+/!#, Copyright (c) Zend Technologies
 ––– block: start-searchd-dev –––
 ––– block: check-searchd-process –––
 ––– block: check-backup –––
+––– input –––
+yum remove -y 'manticore*' > /dev/null 2>&1; echo $?
+––– output –––
+0
+––– input –––
+rpm -qa | grep manticore
+––– output –––

+ 7 - 0
test/clt-tests/installation/rhel-dev-update.rec

@@ -18,3 +18,10 @@ yum -y --enablerepo manticore-dev install manticore manticore-extra manticore-co
 ––– block: stop-searchd-dev –––
 ––– block: start-searchd-dev –––
 ––– block: check-version/export-new-version –––
+––– input –––
+yum remove -y 'manticore*' > /dev/null 2>&1; echo $?
+––– output –––
+0
+––– input –––
+rpm -qa | grep manticore
+––– output –––

+ 8 - 0
test/clt-tests/installation/rhel-release-install.rec

@@ -26,3 +26,11 @@ Zend Engine #!/v[0-9]+\.[0-9]+\.[0-9]+/!#, Copyright (c) Zend Technologies
 ––– block: start-searchd-release –––
 ––– block: check-searchd-process –––
 ––– block: check-backup –––
+––– input –––
+yum remove -y 'manticore*' > /dev/null 2>&1; echo $?
+––– output –––
+1
+––– input –––
+rpm -qa | grep manticore | awk -F'_' '{print $1}'
+––– output –––
+manticore-tools-6.3.0