@@ -158,6 +158,19 @@ def downstream_test_pydantic_core(graalpy, testdir):
158158 run (['uv' , 'run' , 'pytest' , '-v' , '--tb=short' ], cwd = src )
159159
160160
161+ @downstream_test ('jiter' )
162+ def downstream_test_jiter (graalpy , testdir ):
163+ run (['git' , 'clone' , 'https://github.com/pydantic/jiter.git' , '-b' , 'main' ], cwd = testdir )
164+ src = testdir / 'jiter'
165+ venv = src / 'venv'
166+ run ([graalpy , '-m' , 'venv' , str (venv )])
167+ run_in_venv (venv , ['pip' , 'install' , '-r' , 'crates/jiter-python/tests/requirements.txt' ], cwd = src )
168+ run_in_venv (venv , ['pip' , 'install' , '-e' , 'crates/jiter-python' ,
169+ '--config-settings=build-args=--profile dev' ], cwd = src )
170+ run_in_venv (venv , ['pytest' , '-v' , '--tb=short' , 'crates/jiter-python/tests' ], cwd = src )
171+ run_in_venv (venv , ['python' , 'crates/jiter-python/bench.py' , 'jiter' , 'jiter-cache' , '--fast' ], cwd = src )
172+
173+
161174def run_downstream_test (python , project ):
162175 testdir = Path ('upstream-tests' ).absolute ()
163176 shutil .rmtree (testdir , ignore_errors = True )
0 commit comments