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
15 lines
716 B
Bash
15 lines
716 B
Bash
#!/bin/bash
|
|
# usage: run_batch.sh <batch-tag> <scale-divisor>
|
|
S="$(cd "$(dirname "$0")" && pwd)/seed.php"
|
|
cd "${TMDO_LIVE_WP_PATH:-/var/www/Studio/wp-local-dev36}"
|
|
B=$1; D=${2:-1}; OUT=${TMDO_LIVE_OUT:-/tmp}; LOG=$OUT/batch_$B.log
|
|
run(){ wp eval-file $S "$@" 2>>$OUT/batch_${B}_err.log | grep SEED >> $LOG; }
|
|
echo "== start $(date +%T)" >> $LOG
|
|
run terms $((100/D)) ${B}
|
|
for p in 1 2 3 4; do run vendors $((250/D)) ${B}p$p & done; wait
|
|
for p in 1 2 3 4; do run listings $((1000/D)) ${B}p$p & done
|
|
run requests $((500/D)) ${B} & run products $((1000/D)) ${B} & wait
|
|
for p in 1 2; do run reviews $((2000/D)) ${B}p$p & done
|
|
for p in 1 2; do run orders $((750/D)) ${B}p$p & done; wait
|
|
echo "== end $(date +%T)" >> $LOG
|