fix(tests): update x.py with new runtime-* features

This commit is contained in:
Ryan Leckey 2020-12-18 21:26:16 -08:00
parent 187b7481e9
commit 58618f62a2
No known key found for this signature in database
GPG key ID: F8AA68C235AB08C9

View file

@ -91,19 +91,19 @@ for path in glob(os.path.join(os.path.dirname(__file__), "target/**/*.gc*"), rec
run("cargo c", comment="check with a default set of features", tag="check")
run(
"cargo c --no-default-features --features runtime-async-std,all-databases,all-types,offline,macros",
"cargo c --no-default-features --features runtime-async-std-native-tls,all-databases,all-types,offline,macros",
comment="check with async-std",
tag="check_async_std"
)
run(
"cargo c --no-default-features --features runtime-tokio,all-databases,all-types,offline,macros",
"cargo c --no-default-features --features runtime-tokio-native-tls,all-databases,all-types,offline,macros",
comment="check with tokio",
tag="check_tokio"
)
run(
"cargo c --no-default-features --features runtime-actix,all-databases,all-types,offline,macros",
"cargo c --no-default-features --features runtime-actix-native-tls,all-databases,all-types,offline,macros",
comment="check with actix",
tag="check_actix"
)
@ -119,7 +119,7 @@ run(
)
run(
"cargo test --no-default-features --manifest-path sqlx-core/Cargo.toml --features all-databases,all-types,runtime-tokio",
"cargo test --no-default-features --manifest-path sqlx-core/Cargo.toml --features all-databases,all-types,runtime-tokio-native-tls",
comment="unit test core",
tag="unit_tokio"
)
@ -135,7 +135,7 @@ for runtime in ["async-std", "tokio", "actix"]:
#
run(
f"cargo test --no-default-features --features macros,offline,any,all-types,sqlite,runtime-{runtime}",
f"cargo test --no-default-features --features macros,offline,any,all-types,sqlite,runtime-{runtime}-native-tls",
comment=f"test sqlite",
service="sqlite",
tag=f"sqlite" if runtime == "async-std" else f"sqlite_{runtime}",
@ -147,7 +147,7 @@ for runtime in ["async-std", "tokio", "actix"]:
for version in ["12", "10", "9_6", "9_5"]:
run(
f"cargo test --no-default-features --features macros,offline,any,all-types,postgres,runtime-{runtime}",
f"cargo test --no-default-features --features macros,offline,any,all-types,postgres,runtime-{runtime}-native-tls",
comment=f"test postgres {version}",
service=f"postgres_{version}",
tag=f"postgres_{version}" if runtime == "async-std" else f"postgres_{version}_{runtime}",
@ -156,7 +156,7 @@ for runtime in ["async-std", "tokio", "actix"]:
# +ssl
for version in ["12", "10", "9_6", "9_5"]:
run(
f"cargo test --no-default-features --features macros,offline,any,all-types,postgres,runtime-{runtime}",
f"cargo test --no-default-features --features macros,offline,any,all-types,postgres,runtime-{runtime}-native-tls",
comment=f"test postgres {version} ssl",
database_url_args="sslmode=verify-ca&sslrootcert=.%2Ftests%2Fcerts%2Fca.crt",
service=f"postgres_{version}",
@ -169,7 +169,7 @@ for runtime in ["async-std", "tokio", "actix"]:
for version in ["8", "5_7", "5_6"]:
run(
f"cargo test --no-default-features --features macros,offline,any,all-types,mysql,runtime-{runtime}",
f"cargo test --no-default-features --features macros,offline,any,all-types,mysql,runtime-{runtime}-native-tls",
comment=f"test mysql {version}",
service=f"mysql_{version}",
tag=f"mysql_{version}" if runtime == "async-std" else f"mysql_{version}_{runtime}",
@ -181,7 +181,7 @@ for runtime in ["async-std", "tokio", "actix"]:
for version in ["10_5", "10_4", "10_3", "10_2", "10_1"]:
run(
f"cargo test --no-default-features --features macros,offline,any,all-types,mysql,runtime-{runtime}",
f"cargo test --no-default-features --features macros,offline,any,all-types,mysql,runtime-{runtime}-native-tls",
comment=f"test mariadb {version}",
service=f"mariadb_{version}",
tag=f"mariadb_{version}" if runtime == "async-std" else f"mariadb_{version}_{runtime}",
@ -193,7 +193,7 @@ for runtime in ["async-std", "tokio", "actix"]:
for version in ["2019"]:
run(
f"cargo test --no-default-features --features macros,offline,any,all-types,mssql,runtime-{runtime}",
f"cargo test --no-default-features --features macros,offline,any,all-types,mssql,runtime-{runtime}-native-tls",
comment=f"test mssql {version}",
service=f"mssql_{version}",
tag=f"mssql_{version}" if runtime == "async-std" else f"mssql_{version}_{runtime}",