Skip to content

Commit 9258cbe

Browse files
meiji163Copilot
andauthored
Add sysbench localtest (#1590)
* add sysbench localtest * fix table name * Apply suggestion from @Copilot Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * ensure cleanup --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent b897def commit 9258cbe

File tree

3 files changed

+311
-225
lines changed

3 files changed

+311
-225
lines changed

‎.github/workflows/replica-tests.yml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ jobs:
1515
steps:
1616
- uses: actions/checkout@v4
1717

18+
- name: Install sysbench
19+
run: |
20+
sudo apt-get update
21+
sudo apt-get install -y sysbench
22+
1823
- name: Setup environment
1924
run: script/docker-gh-ost-replica-tests up
2025

‎localtests/sysbench/create.sql‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/* This table will get created by `sysbench prepare` */
2+
/*
3+
CREATE TABLE `sbtest1` (
4+
`id` int NOT NULL AUTO_INCREMENT,
5+
`k` int NOT NULL DEFAULT '0',
6+
`c` char(120) NOT NULL DEFAULT '',
7+
`pad` char(60) NOT NULL DEFAULT '',
8+
PRIMARY KEY (`id`),
9+
KEY `k_1` (`k`)
10+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
11+
*/
12+
13+
DROP TABLE IF EXISTS `sbtest1`;

0 commit comments

Comments
 (0)