Commit f12214c
Convert e2e suite to vendored shUnit2
The e2e script was a flat set -e sequence: one failed assertion aborted
the run and masked the rest, and checks were unlabeled. Rewrite it as a
shUnit2 suite: the one-shot install moves to oneTimeSetUp, each behavior
is a definition-ordered test_* function (state-mutating checks last).
shUnit2 reports every check instead of stopping at the first failure.
Scope nullglob to the .deb glob: left on, it breaks shUnit2's unquoted
${_SHUNIT_LINENO_} expansion and spams "unexpected EOF" on every assert.
Vendor shUnit2 from master (pinned @ f39734a; no release since 2.1.8)
so the egrep→grep -E fix comes from upstream. One local patch remains:
stub scripts resolve sh via PATH (Termux has no /bin/sh), submitted
upstream as kward/shunit2#189.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent b74da71 commit f12214c
3 files changed
Lines changed: 1867 additions & 161 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| 67 | + | |
67 | 68 | | |
68 | 69 | | |
69 | 70 | | |
| |||
132 | 133 | | |
133 | 134 | | |
134 | 135 | | |
135 | | - | |
136 | | - | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
137 | 141 | | |
138 | 142 | | |
139 | 143 | | |
| |||
0 commit comments