From 3ee8745440cd94a45e1165339f112944aa796bc8 Mon Sep 17 00:00:00 2001 From: Lynnesbian Date: Thu, 23 Sep 2021 02:34:10 +1000 Subject: [PATCH] test.py hasn't been testing the json feature 0uo i've had it enabled on the gitlab CI runner, but not in my test.py script that i use for local testing stuff... --- src/tests/mod.rs | 2 ++ test.py | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/tests/mod.rs b/src/tests/mod.rs index ab596e4..3b2d536 100644 --- a/src/tests/mod.rs +++ b/src/tests/mod.rs @@ -474,4 +474,6 @@ fn validate_string_type() { SmartString::from("A long and therefore heap-allocated string"), StdString::from("A long and therefore heap-allocated string") ); + // uncomment if i ever update to smartstring >= 0.2.9 + // smartstring::validate(); } diff --git a/test.py b/test.py index e4bf3e3..79fde34 100755 --- a/test.py +++ b/test.py @@ -11,7 +11,7 @@ def test_archs(): for arch in archs: print(f"Testing {arch} ({upto} of {target})") - subprocess.run(f"cross test --features=infer-backend --target {arch}-unknown-linux-gnu".split(" ")).check_returncode() + subprocess.run(f"cross test --features=json,infer-backend --target {arch}-unknown-linux-gnu".split(" ")).check_returncode() upto += 1 def test_versions(): @@ -33,11 +33,11 @@ def test_versions(): for version in versions: for backend in backends: print(f"[{version}, {backend}] Tests ({upto} of {target})") - subprocess.run(f"cargo +{version} test --features={backend}-backend".split(" ")).check_returncode() + subprocess.run(f"cargo +{version} test --features=json,{backend}-backend".split(" ")).check_returncode() upto += 1 print(f"[{version}, {backend}] Scanning imgs ({upto} of {target})") - subprocess.run(f"cargo +{version} run --release --features={backend}-backend -- imgs".split(" ")).check_returncode() + subprocess.run(f"cargo +{version} run --release --features=json,{backend}-backend -- imgs".split(" ")).check_returncode() upto += 1 def main():