mirror of
https://github.com/openwrt/packages.git
synced 2026-04-15 19:02:09 +00:00
Bump version 25.9.1 -> 26.4.0. Add test.sh to verify greenlet spawning and joining. Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
21 lines
350 B
Bash
21 lines
350 B
Bash
#!/bin/sh
|
|
|
|
[ "$1" = python3-gevent ] || exit 0
|
|
|
|
python3 - << 'EOF'
|
|
import gevent
|
|
from gevent import sleep, spawn, joinall
|
|
|
|
results = []
|
|
|
|
def worker(n):
|
|
sleep(0)
|
|
results.append(n)
|
|
|
|
jobs = [spawn(worker, i) for i in range(3)]
|
|
joinall(jobs)
|
|
|
|
assert sorted(results) == [0, 1, 2], f"Expected [0,1,2], got {results}"
|
|
|
|
print("python3-gevent OK")
|
|
EOF |