File tree 3 files changed +30
-2
lines changed
3 files changed +30
-2
lines changed Original file line number Diff line number Diff line change 24
24
- name : Test
25
25
run : make test
26
26
27
+ build_mariadb :
28
+ runs-on : ubuntu-22.04
29
+ name : Build with MariaDB
30
+ steps :
31
+ - name : Setup MariaDB Repo
32
+ run : |
33
+ sudo apt-get install software-properties-common
34
+ sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8
35
+ sudo add-apt-repository 'deb [arch=amd64] https://ftp.nluug.nl/db/mariadb/repo/11.0/ubuntu jammy main'
36
+ - name : Setup MariaDB Libs
37
+ run : sudo apt install libmariadb-dev libmariadb-dev-compat
38
+ - name : Checkout
39
+ uses : actions/checkout@v3
40
+ - name : Autogen
41
+ run : ./autogen.sh
42
+ - name : Configure
43
+ run : ./configure --with-mysql --with-pgsql
44
+ - name : Build
45
+ run : make
46
+ - name : MariaDB version
47
+ run : mariadb_config --version
48
+ - name : Sysbench version
49
+ run : ./src/sysbench --version
50
+ - name : Test
51
+ run : make test
Original file line number Diff line number Diff line change @@ -109,7 +109,9 @@ typedef struct
109
109
const char * ssl_ca ;
110
110
const char * ssl_cipher ;
111
111
unsigned char use_compression ;
112
+ #ifdef MYSQL_OPT_COMPRESSION_ALGORITHMS
112
113
const char * compression_alg ;
114
+ #endif
113
115
unsigned char debug ;
114
116
sb_list_t * ignored_errors ;
115
117
unsigned int dry_run ;
@@ -337,7 +339,9 @@ int mysql_drv_init(void)
337
339
#endif
338
340
339
341
args .use_compression = sb_get_value_flag ("mysql-compression" );
342
+ #ifdef MYSQL_OPT_COMPRESSION_ALGORITHMS
340
343
args .compression_alg = sb_get_value_string ("mysql-compression-algorithms" );
344
+ #endif
341
345
342
346
args .debug = sb_get_value_flag ("mysql-debug" );
343
347
if (args .debug )
Original file line number Diff line number Diff line change @@ -8,15 +8,14 @@ Skip test if the MySQL driver is not available.
8
8
$ sysbench --help | grep -- ' --db-driver'
9
9
--db-driver=STRING specifies database driver to use (' help' to get list of available drivers) [mysql]
10
10
11
- $ sysbench --help | sed -n ' /mysql options:/,/^$/p'
11
+ $ sysbench --help | sed -n ' /mysql options:/,/^$/p' | grep -v ' mysql-ssl[=\[] '
12
12
mysql options:
13
13
--mysql-host=[LIST,...] MySQL server host [localhost]
14
14
--mysql-port=[LIST,...] MySQL server port [3306]
15
15
--mysql-socket =[LIST,...] MySQL socket
16
16
--mysql-user=STRING MySQL user [sbtest]
17
17
--mysql-password=STRING MySQL password []
18
18
--mysql-db=STRING MySQL database name [sbtest]
19
- --mysql-ssl=STRING SSL mode. This accepts the same values as the --ssl-mode option in the MySQL client utilities. Disabled by default [disabled]
20
19
--mysql-ssl-key=STRING path name of the client private key file
21
20
--mysql-ssl-ca=STRING path name of the CA file
22
21
--mysql-ssl-cert=STRING path name of the client public key certificate file
You can’t perform that action at this time.
0 commit comments