|
| 1 | +case=help |
| 2 | +argv= --help |
| 3 | +exit=0 |
| 4 | +stdout<<EOF |
| 5 | +Usage: |
| 6 | + node scripts/e2e/automerge.mjs [options] |
| 7 | + |
| 8 | +Description: |
| 9 | + Runs the production automerge planner, executor, publisher, applicator, and |
| 10 | + exact-head comment-router merger against stateful GitHub/Codex simulators and |
| 11 | + a real local Git remote. |
| 12 | + |
| 13 | +Options: |
| 14 | + --scenario <name> Scenario to run; use all for the full suite |
| 15 | + (default: happy-path) |
| 16 | + --fixture <name> tiny, openclaw-shaped, or all (default: tiny) |
| 17 | + --expect <outcome> success or setup-identity-failure (default: success); |
| 18 | + failure proof supports the historical regression and |
| 19 | + openclaw-shaped happy-path |
| 20 | + --list-scenarios Print supported scenario names |
| 21 | + --list-fixtures Print supported target fixture names |
| 22 | + --candidate-root <dir> Built ClawSweeper checkout to validate (default: cwd) |
| 23 | + --output <dir> Failure and proof artifact root |
| 24 | + --keep Keep the temporary scenario workspace |
| 25 | + -h, --help Show this help |
| 26 | + |
| 27 | +Outputs: |
| 28 | + <output>/<fixture>/<scenario>/summary.json and one stdout/stderr log per production step. |
| 29 | + Exit code 0 means all terminal-state and token-boundary assertions passed. |
| 30 | + |
| 31 | +Examples: |
| 32 | + pnpm e2e:automerge |
| 33 | + pnpm e2e:automerge -- --scenario all --fixture all --output test-results/automerge |
| 34 | + pnpm e2e:automerge -- --scenario ci-regression-29623139111 --candidate-root ../clawsweeper-ci-regression --expect setup-identity-failure |
| 35 | + pnpm e2e:automerge -- --scenario happy-path --fixture openclaw-shaped --candidate-root ../clawsweeper-before-fix --expect setup-identity-failure |
| 36 | +EOF |
| 37 | +stderr_contract<<EOF |
| 38 | +EOF |
| 39 | +case=separator-help |
| 40 | +argv= -- --help |
| 41 | +exit=0 |
| 42 | +stdout<<EOF |
| 43 | +Usage: |
| 44 | + node scripts/e2e/automerge.mjs [options] |
| 45 | + |
| 46 | +Description: |
| 47 | + Runs the production automerge planner, executor, publisher, applicator, and |
| 48 | + exact-head comment-router merger against stateful GitHub/Codex simulators and |
| 49 | + a real local Git remote. |
| 50 | + |
| 51 | +Options: |
| 52 | + --scenario <name> Scenario to run; use all for the full suite |
| 53 | + (default: happy-path) |
| 54 | + --fixture <name> tiny, openclaw-shaped, or all (default: tiny) |
| 55 | + --expect <outcome> success or setup-identity-failure (default: success); |
| 56 | + failure proof supports the historical regression and |
| 57 | + openclaw-shaped happy-path |
| 58 | + --list-scenarios Print supported scenario names |
| 59 | + --list-fixtures Print supported target fixture names |
| 60 | + --candidate-root <dir> Built ClawSweeper checkout to validate (default: cwd) |
| 61 | + --output <dir> Failure and proof artifact root |
| 62 | + --keep Keep the temporary scenario workspace |
| 63 | + -h, --help Show this help |
| 64 | + |
| 65 | +Outputs: |
| 66 | + <output>/<fixture>/<scenario>/summary.json and one stdout/stderr log per production step. |
| 67 | + Exit code 0 means all terminal-state and token-boundary assertions passed. |
| 68 | + |
| 69 | +Examples: |
| 70 | + pnpm e2e:automerge |
| 71 | + pnpm e2e:automerge -- --scenario all --fixture all --output test-results/automerge |
| 72 | + pnpm e2e:automerge -- --scenario ci-regression-29623139111 --candidate-root ../clawsweeper-ci-regression --expect setup-identity-failure |
| 73 | + pnpm e2e:automerge -- --scenario happy-path --fixture openclaw-shaped --candidate-root ../clawsweeper-before-fix --expect setup-identity-failure |
| 74 | +EOF |
| 75 | +stderr_contract<<EOF |
| 76 | +EOF |
| 77 | +case=repeated-help |
| 78 | +argv= --scenario first --scenario second --help |
| 79 | +exit=0 |
| 80 | +stdout<<EOF |
| 81 | +Usage: |
| 82 | + node scripts/e2e/automerge.mjs [options] |
| 83 | + |
| 84 | +Description: |
| 85 | + Runs the production automerge planner, executor, publisher, applicator, and |
| 86 | + exact-head comment-router merger against stateful GitHub/Codex simulators and |
| 87 | + a real local Git remote. |
| 88 | + |
| 89 | +Options: |
| 90 | + --scenario <name> Scenario to run; use all for the full suite |
| 91 | + (default: happy-path) |
| 92 | + --fixture <name> tiny, openclaw-shaped, or all (default: tiny) |
| 93 | + --expect <outcome> success or setup-identity-failure (default: success); |
| 94 | + failure proof supports the historical regression and |
| 95 | + openclaw-shaped happy-path |
| 96 | + --list-scenarios Print supported scenario names |
| 97 | + --list-fixtures Print supported target fixture names |
| 98 | + --candidate-root <dir> Built ClawSweeper checkout to validate (default: cwd) |
| 99 | + --output <dir> Failure and proof artifact root |
| 100 | + --keep Keep the temporary scenario workspace |
| 101 | + -h, --help Show this help |
| 102 | + |
| 103 | +Outputs: |
| 104 | + <output>/<fixture>/<scenario>/summary.json and one stdout/stderr log per production step. |
| 105 | + Exit code 0 means all terminal-state and token-boundary assertions passed. |
| 106 | + |
| 107 | +Examples: |
| 108 | + pnpm e2e:automerge |
| 109 | + pnpm e2e:automerge -- --scenario all --fixture all --output test-results/automerge |
| 110 | + pnpm e2e:automerge -- --scenario ci-regression-29623139111 --candidate-root ../clawsweeper-ci-regression --expect setup-identity-failure |
| 111 | + pnpm e2e:automerge -- --scenario happy-path --fixture openclaw-shaped --candidate-root ../clawsweeper-before-fix --expect setup-identity-failure |
| 112 | +EOF |
| 113 | +stderr_contract<<EOF |
| 114 | +EOF |
| 115 | +case=unknown |
| 116 | +argv= --unknown |
| 117 | +exit=1 |
| 118 | +stdout<<EOF |
| 119 | +EOF |
| 120 | +stderr_contract<<EOF |
| 121 | +Error: unknown option: --unknown; use --help for usage |
| 122 | +EOF |
| 123 | +case=missing-value |
| 124 | +argv= --scenario |
| 125 | +exit=1 |
| 126 | +stdout<<EOF |
| 127 | +EOF |
| 128 | +stderr_contract<<EOF |
| 129 | +Error: --scenario requires a value |
| 130 | +EOF |
0 commit comments