feat(xce-harness-component): add /xce-build harness, decouple from controller
Add a harness) case to src/tools/xce-build.sh following the same three-part template (setup_build / meson compile / conditional meson test) already used by scheduler)/worker), building all 6 harness targets (xce_test plus its 5 test binaries) and running suite harness. Remove controller/xce_test from the controller) case's compile target list -- it no longer exists as a controller target. Add harness to the script's usage/component-list text. Verified both directions: `/xce-build harness` alone produces xce_test and all 5 test binaries (4/20/5/12/132 tests, 0 failures); `/xce-build controller` alone no longer produces controller/xce_test while controller_unit_test stays green at 1199 tests. Task 3.1 of xce-harness-component. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RLSNJhNoULvVcUhXEFafQC
This commit is contained in:
parent
49cf25aa23
commit
9a4f1aa942
3 changed files with 13 additions and 4 deletions
|
|
@ -221,7 +221,7 @@ MESON_OPTS+=(-Dcommit_id="$commit_id" -Dbuild_time="$build_time" -Ddirty_fingerp
|
|||
|
||||
usage() {
|
||||
echo "Usage: $0 [component] [profile|build_dir] [build_dir] [--incremental] [--jobs N]"
|
||||
echo "Components: all (default), lib, controller, scheduler, worker, apiserver, xcecli, xceadmin"
|
||||
echo "Components: all (default), lib, controller, harness, scheduler, worker, apiserver, xcecli, xceadmin"
|
||||
echo "Profiles: asan (default), debug (non-ASAN -O0 -g3, for gdb/cores), release"
|
||||
echo "--incremental: reconfigure the existing build dir in place instead of a full"
|
||||
echo " rm -rf + fresh setup -- preserves other already-built components in the same"
|
||||
|
|
@ -292,12 +292,21 @@ case "$COMPONENT" in
|
|||
controller)
|
||||
setup_build
|
||||
echo "=== Building lib + controller + tests ==="
|
||||
meson compile -C "$BUILD_DIR" "${MESON_COMPILE_JOB_OPTS[@]}" xce_controller controller_unit_test controller/xce_test
|
||||
meson compile -C "$BUILD_DIR" "${MESON_COMPILE_JOB_OPTS[@]}" xce_controller controller_unit_test
|
||||
if [ "$RUN_TESTS" = 1 ]; then
|
||||
echo "=== Running controller tests ==="
|
||||
meson test -C "$BUILD_DIR" "${MESON_TEST_JOB_OPTS[@]}" --suite controller --print-errorlogs
|
||||
fi
|
||||
;;
|
||||
harness)
|
||||
setup_build
|
||||
echo "=== Building lib + harness + tests ==="
|
||||
meson compile -C "$BUILD_DIR" "${MESON_COMPILE_JOB_OPTS[@]}" xce_test harness_unit_test resval_typeresolve_unit_test joblist_display_unit_test join_worker_args_unit_test listrow_json_unit_test
|
||||
if [ "$RUN_TESTS" = 1 ]; then
|
||||
echo "=== Running harness tests ==="
|
||||
meson test -C "$BUILD_DIR" "${MESON_TEST_JOB_OPTS[@]}" --suite harness --print-errorlogs
|
||||
fi
|
||||
;;
|
||||
scheduler)
|
||||
setup_build
|
||||
echo "=== Building lib + scheduler + tests ==="
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue