You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs(verify): a doctor control, the lock file named, and a dependency project
Section D reads a clean store first, then requires the finding's label and
the seeded lock file's name, and after --fix requires the reinstalled
payload: no seeded file and */mcpp.toml present. Section C2 emits the build
database of section B's project: the dependency's set, no watched store
path, the S1 SHOULD fields, and an unchanged tree with target/ present.
Sections that need python3 say so when it is missing.
Refs #636
strip_ansi() { sed 's/\x1b\[[0-9;]*[A-Za-z]//g'; }
117
151
if [ -n"$cmd" ];then
152
+
# The control: the store section B produced has no finding of this kind.
153
+
XLINGS_HOME="$REG""$REG/bin/xlings" self doctor 2>&1| strip_ansi >"$root/doctor0.log"
154
+
grep -qi 'swept payload'"$root/doctor0.log"&& { fail "self doctor reports a swept payload before any was seeded"; grep -i -A2 'swept'"$root/doctor0.log"| head -6; } || ok "the fresh store has no swept-payload finding"
155
+
# The downloader's shape: an archive beside its zero-length lock.
XLINGS_HOME="$REG""$REG/bin/xlings" self doctor >"$root/doctor.log"2>&1
120
-
grep -qi 'intruder\|swept\|download'"$root/doctor.log"&& ok "self doctor reports the swept payload"|| { fail "self doctor did not report it"; tail -8 "$root/doctor.log"; }
121
-
XLINGS_HOME="$REG""$REG/bin/xlings" self doctor --fix >"$root/fix.log"2>&1
122
-
[ !-e"$cmd/intruder-1.0-linux-x86_64.tar.gz.lock" ] && ok "self doctor --fix leaves no download sidecar in the payload"|| { fail "the sidecar is still there after --fix"; tail -8 "$root/fix.log"; }
157
+
XLINGS_HOME="$REG""$REG/bin/xlings" self doctor 2>&1| strip_ansi >"$root/doctor.log"
158
+
if grep -qi 'swept payload'"$root/doctor.log"&& grep -qF "intruder-1.0-linux-x86_64.tar.gz.lock""$root/doctor.log";then
159
+
ok "self doctor reports the swept payload and names the lock file"
160
+
else
161
+
fail "self doctor did not report the seeded payload"; tail -12 "$root/doctor.log"
162
+
fi
163
+
XLINGS_HOME="$REG""$REG/bin/xlings" self doctor --fix 2>&1| strip_ansi >"$root/fix.log"
0 commit comments