f72a315986
- Add tests/live: a `wp eval-file` runner (PASS/FAIL/XFAIL/XPASS/SKIP) with fixtures that override entity modes in process (pre_option) and read native / flat values with plain SQL, so WP core meta flows run for real - shadow_write suite reproduces the dev36 finding: in shadow_read, update_*_meta returns false and native meta is never written (3 XFAIL marked for PR-056); the dual_write control passes - Move the dev36 integration harness into tests/live/tools; outputs go to cwd / $TMDO_LIVE_OUT, site URL and path are env-configurable - Verify: wp --path=<dev36> eval-file tests/live/run.php shadow_write → 1 passed, 3 xfail; unit 658 OK, integration 480 OK, phpcs (phpcs.xml) 0, stan OK - PR: PR-052
20 lines
1.1 KiB
Bash
20 lines
1.1 KiB
Bash
#!/bin/bash
|
|
# usage: fe.sh <label> — front-end HivePress/WC search probe, 5 runs each, median ms
|
|
B="${TMDO_LIVE_URL:-https://dev36.2meet.pro}"
|
|
URLS=(
|
|
"/?post_type=hp_listing&s=&price[]=10000&price[]=20000"
|
|
"/?post_type=hp_listing&s=&price[]=10000&price[]=20000&_sort=price__asc"
|
|
"/?post_type=hp_listing&s=&hourly_rate[]=10&hourly_rate[]=50&_sort=hourly_rate__desc"
|
|
"/?post_type=hp_listing&s=&_sort=rating__desc"
|
|
"/?post_type=hp_listing&s=Taipei&price[]=1000&price[]=30000"
|
|
"/?post_type=hp_vendor&s=&hourly_rate[]=100&hourly_rate[]=200"
|
|
"/?post_type=hp_request&s="
|
|
"/shop/?min_price=1000&max_price=5000"
|
|
"/shop/?orderby=price-desc"
|
|
)
|
|
for u in "${URLS[@]}"; do
|
|
ms=(); for i in 1 2 3 4 5; do h=$(curl -s -o /dev/null -D - -H "X-S36-Probe: 1" "$B$u"); ms+=($(echo "$h" | grep -i x-s36-ms | awk "{print \$2}" | tr -dc 0-9)); done
|
|
med=$(printf "%s\n" "${ms[@]}" | sort -n | sed -n 3p)
|
|
echo "$u|$(echo "$h" | grep -i x-s36-found | awk "{print \$2}" | tr -dc 0-9)|$(echo "$h" | grep -i x-s36-ids | cut -d' ' -f2 | tr -d '\r')|$(echo "$h" | grep -i x-s36-queries | awk "{print \$2}" | tr -dc 0-9)|$med"
|
|
done
|