-
Notifications
You must be signed in to change notification settings - Fork 0
/
mariadb_demodular_test.sh
executable file
·82 lines (80 loc) · 2.93 KB
/
mariadb_demodular_test.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
#!/bin/bash
ARRAY=( "mariadb:0"
"mariadb mariadb-common:0"
"mariadb mariadb10.5-common:1"
"mariadb10.11:0"
"mariadb mariadb10.11:0"
"mariadb-server:0"
"mariadb-server mariadb10.11-server:0"
"mariadb10.11-server:0"
"mariadb-server mariadb:0"
"mariadb-server mariadb10.5:1"
"mariadb-server-galera:0"
"mariadb-server-galera mariadb-server:0"
"mariadb-server-galera mariadb10.5-server:1"
"mariadb-server-utils:0"
"mariadb-server-utils mariadb-server:0"
"mariadb-server-utils mariadb-server10.5:1"
"mariadb mariadb-errmsg:0"
"mariadb mariadb10.11-errmsg:0"
"mariadb mariadb10.5-errmsg:1"
"mariadb mariadb-common:0"
"mariadb mariadb10.11-common:0"
"mariadb mariadb10.5-common:1"
"mariadb-backup:0"
"mariadb-backup mariadb-server:0"
"mariadb-backup mariadb10.11-server:0"
"mariadb-backup mariadb10.5-server:1"
"mariadb-connect-engine:0"
"mariadb-connect-engine mariadb-server:0"
"mariadb-connect-engine mariadb10.11-server:0"
"mariadb-connect-engine mariadb10.5-server:1"
"mariadb-cracklib-password-check:0"
"mariadb-cracklib-password-check mariadb-server:0"
"mariadb-cracklib-password-check mariadb10.5-server:1"
"mariadb-devel:0"
"mariadb-devel mysql-devel:1"
"mariadb-embedded:0"
"mariadb-embedded-devel:0"
"mariadb-embedded-devel mariadb10.5-embedded-devel:1"
"mariadb-errmsg:0"
"mariadb-errmsg mysql-errmsg:1"
"mariadb-gssapi-server:0"
"mariadb-gssapi-server mariadb-server:0"
"mariadb-gssapi-server mariadb10.5-server:1"
"mariadb-oqgraph-engine:0"
"mariadb-oqgraph-engine mariadb-server:0"
"mariadb-oqgraph-engine mariadb10.5-server:1"
"mariadb-pam:0"
"mariadb-pam mariadb-server:0"
"mariadb-pam mariadb10.5-server:1"
"mariadb-rocksdb-engine:0"
"mariadb-rocksdb-engine mariadb-server:0"
"mariadb-rocksdb-engine mariadb10.5-server:1"
"mariadb-s3-engine:0"
"mariadb-s3-engine mariadb-server:0"
"mariadb-s3-engine mariadb10.5-server:1"
"mariadb-sphinx-engine:0"
"mariadb-sphinx-engine mariadb-server:0"
"mariadb-sphinx-engine mariadb10.5-server:1"
"mariadb-test:0"
"mariadb-test mariadb-common:0"
"mariadb-test mariadb-server:0"
"mariadb-test mariadb10.5-common:1"
"mariadb-test mariadb10.5-server:1"
)
for item in "${ARRAY[@]}" ; do
PACKAGES="${item%%:*}"
VALUE="${item##*:}"
printf "installing %s test result: " "$PACKAGES"
dnf install $PACKAGES -y &>>log
RESULT=$?
if [ "$RESULT" == "$VALUE" ]
then
echo "OK"
else
echo "FAIL"
fi
echo "---------------------------------\n-------------------------" >>log
dnf remove 'mariadb*' -y &>/dev/null
done