#!/bin/sh
SKIPPED_TESTS="     --ignore *TestBarrier.test_timeout     --ignore ExecutorDeadlockTest     --ignore ExecutorShutdownTest     --ignore ProcessPoolShutdownTest     --ignore ThreadPoolShutdownTest     --ignore test_active_children     --ignore test_default_timeout     --ignore test_input_no_stdout_fileno     --ignore test_many_processes     --ignore test_only_active_thread     --ignore test_process_time     --ignore test_storlines     --ignore test_thread_time     --ignore test_wait_integer     --ignore test_write_read_append       --ignore test_find_library_with_gcc     --ignore test_find_library_with_ld       --ignore test_sysconfigdata_json       --ignore test.test_remote_pdb.PdbAttachTestCase.test_attach_to_process_with_colors     --ignore test.test_remote_pdb.PdbAttachTestCase.test_attach_to_process_without_colors       --ignore test.test_asyncio.test_taskgroups.TestTaskGroup.test_taskgroup_23       --ignore test.test_asyncio.test_eager_task_factory.PyEagerTaskFactoryLoopTests.test_staggered_race_with_eager_tasks     --ignore test.test_asyncio.test_eager_task_factory.CEagerTaskFactoryLoopTests.test_staggered_race_with_eager_tasks       --ignore test_shutdown_no_wait_max_tasks_gh119592      --ignore TimerfdTests      --ignore test.test_readline.TestHistoryManipulation.test_append_limited_history     --ignore test.test_readline.TestHistoryManipulation.test_write_read_append "
{ SETUPTOOLS_USE_DISTUTILS=nonlocal python3 -m test $SKIPPED_TESTS -v -j 4 || echo "FAIL: python3" ; } | sed -u -e '/\.\.\. ok/ s/^/PASS: /g' -r -e '/\.\.\. (ERROR|FAIL)/ s/^/FAIL: /g' -e '/\.\.\. skipped/ s/^/SKIP: /g' -e 's/ \.\.\. ok//g' -e 's/ \.\.\. ERROR//g' -e 's/ \.\.\. FAIL//g' -e 's/ \.\.\. skipped//g'
