Compare commits
No commits in common. "c8-beta" and "a2f6f8c30b32d0c395019f4dfa7137db53167580" have entirely different histories.
c8-beta
...
a2f6f8c30b
1
.fmf/version
Normal file
1
.fmf/version
Normal file
@ -0,0 +1 @@
|
|||||||
|
1
|
17
.gitignore
vendored
17
.gitignore
vendored
@ -1 +1,16 @@
|
|||||||
SOURCES/PyMySQL-1.1.0.tar.gz
|
/PyMySQL-0.6.6.tar.gz
|
||||||
|
/PyMySQL-0.6.7.tar.gz
|
||||||
|
/PyMySQL-0.7.9.tar.gz
|
||||||
|
/PyMySQL-0.7.10.tar.gz
|
||||||
|
/PyMySQL-0.7.11.tar.gz
|
||||||
|
/PyMySQL-0.8.0.tar.gz
|
||||||
|
/PyMySQL-0.8.1.tar.gz
|
||||||
|
/PyMySQL-0.9.0.tar.gz
|
||||||
|
/PyMySQL-0.9.1.tar.gz
|
||||||
|
/PyMySQL-0.9.2.tar.gz
|
||||||
|
/PyMySQL-0.9.3.tar.gz
|
||||||
|
/PyMySQL-0.10.0.tar.gz
|
||||||
|
/PyMySQL-0.10.1.tar.gz
|
||||||
|
/PyMySQL-1.0.2.tar.gz
|
||||||
|
/PyMySQL-1.0.3.tar.gz
|
||||||
|
/PyMySQL-1.1.0.tar.gz
|
||||||
|
@ -1 +0,0 @@
|
|||||||
6d1caef3b6f1b699816a578a1033d98a436627a9 SOURCES/PyMySQL-1.1.0.tar.gz
|
|
7
gating.yaml
Normal file
7
gating.yaml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
--- !Policy
|
||||||
|
|
||||||
|
product_versions:
|
||||||
|
- rhel-9
|
||||||
|
decision_context: osci_compose_gate
|
||||||
|
rules:
|
||||||
|
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}
|
8
plan.fmf
Normal file
8
plan.fmf
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
execute:
|
||||||
|
how: tmt
|
||||||
|
discover:
|
||||||
|
- how: shell
|
||||||
|
tests:
|
||||||
|
- name: simple import
|
||||||
|
test: python3.12 -c 'import pymysql'
|
||||||
|
- how: fmf
|
1
sources
Normal file
1
sources
Normal file
@ -0,0 +1 @@
|
|||||||
|
SHA512 (PyMySQL-1.1.0.tar.gz) = 51dddc92e766183ab5d93717121d853415561dc81abc7ec8299a73610cae5bc22b6070006d6ea24405ab31bc1ea68be61466a3477c0f84d47435f78ffc60d31e
|
8
tests/smoke_test.fmf
Normal file
8
tests/smoke_test.fmf
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
require:
|
||||||
|
- mariadb-server
|
||||||
|
- python3.12-PyMySQL
|
||||||
|
|
||||||
|
test: |
|
||||||
|
systemctl start mariadb &&
|
||||||
|
python3.12 smoke_test.py &&
|
||||||
|
systemctl stop mariadb
|
12
tests/smoke_test.py
Normal file
12
tests/smoke_test.py
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
#!/usr/bin/python3
|
||||||
|
# Modified from
|
||||||
|
# https://github.com/PyMySQL/PyMySQL/blob/v1.0.2/example.py
|
||||||
|
|
||||||
|
import pymysql
|
||||||
|
connection = pymysql.connect(unix_socket="/var/lib/mysql/mysql.sock", db="mysql")
|
||||||
|
cursor = connection.cursor()
|
||||||
|
cursor.execute("SELECT Host,User FROM user")
|
||||||
|
print(cursor.description)
|
||||||
|
|
||||||
|
cursor.close()
|
||||||
|
connection.close()
|
Loading…
Reference in New Issue
Block a user