<feed xmlns='http://www.w3.org/2005/Atom'>
<title>sisudoc-spine/org/test_shell_script_ssp_document_abstraction.org, branch main</title>
<subtitle>SiSU Spine: document publishing and search (in D) 2015</subtitle>
<link rel='alternate' type='text/html' href='https://git.sisudoc.org/sisudoc-spine/'/>
<entry>
<title>.ssp: doc structure related fixes (&amp; to epub toc_nav)</title>
<updated>2026-08-29T00:15:35+00:00</updated>
<author>
<name>Ralph Amissah</name>
<email>ralph.amissah@gmail.com</email>
</author>
<published>2026-08-28T23:07:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sisudoc.org/sisudoc-spine/commit/?id=45a73e4464fb662d481d31ebf8d3ef204296159a'/>
<id>45a73e4464fb662d481d31ebf8d3ef204296159a</id>
<content type='text'>
for document abstraction and its .ssp output, removed the
requirement of including --abstraction &amp; --serial flags to produce
correct output (for: .dom_status, .dom_status_collapsed &amp;
.last_descendant)

- meta_processing_xml_dom() includes show_abstraction, so --pod2
  and --show-abstraction run the dom pass; last_descendant is
  derived from that pass via after_doc_get_descendants()

The accumulators are now verified as eight wide locals of
docAbstraction(), so each document starts clean and no two threads
share one.
- bug: the four dom accumulators were template scope (shared) and
  nine wide, while their end of document reset was eight wide, so
  the first document of a run differed from the rest and parallel
  runs raced on one buffer, (which also mis-nested epub toc_nav)

test/ reference .ssp regenerated: accelerando only, trailing zero
dropped.
test-abstraction-ssp.sh now runs parallel and diffs output against
a serial run.

(assisted by Claude-Code)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
for document abstraction and its .ssp output, removed the
requirement of including --abstraction &amp; --serial flags to produce
correct output (for: .dom_status, .dom_status_collapsed &amp;
.last_descendant)

- meta_processing_xml_dom() includes show_abstraction, so --pod2
  and --show-abstraction run the dom pass; last_descendant is
  derived from that pass via after_doc_get_descendants()

The accumulators are now verified as eight wide locals of
docAbstraction(), so each document starts clean and no two threads
share one.
- bug: the four dom accumulators were template scope (shared) and
  nine wide, while their end of document reset was eight wide, so
  the first document of a run differed from the rest and parallel
  runs raced on one buffer, (which also mis-nested epub toc_nav)

test/ reference .ssp regenerated: accelerando only, trailing zero
dropped.
test-abstraction-ssp.sh now runs parallel and diffs output against
a serial run.

(assisted by Claude-Code)
</pre>
</div>
</content>
</entry>
<entry>
<title>test build .ssp requires --serial (--no-parallel) run</title>
<updated>2026-08-29T00:15:35+00:00</updated>
<author>
<name>Ralph Amissah</name>
<email>ralph.amissah@gmail.com</email>
</author>
<published>2026-08-28T19:32:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sisudoc.org/sisudoc-spine/commit/?id=b52e78dac6179fbc43217a8993889a6fabebc9dc'/>
<id>b52e78dac6179fbc43217a8993889a6fabebc9dc</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>test build .ssp requires --abstraction to be run</title>
<updated>2026-08-29T00:15:35+00:00</updated>
<author>
<name>Ralph Amissah</name>
<email>ralph.amissah@gmail.com</email>
</author>
<published>2026-08-28T19:30:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sisudoc.org/sisudoc-spine/commit/?id=bf4c8f3d12cbe388998a4a975ee380b57e2178da'/>
<id>bf4c8f3d12cbe388998a4a975ee380b57e2178da</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>test-abstraction-ssp.sh: fail if $SpinePOD is unset</title>
<updated>2026-08-28T14:37:10+00:00</updated>
<author>
<name>Ralph Amissah</name>
<email>ralph.amissah@gmail.com</email>
</author>
<published>2026-08-27T17:56:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sisudoc.org/sisudoc-spine/commit/?id=45e9fbe26925d64ad3da4ff4a2a53ffcc5df4c0d'/>
<id>45e9fbe26925d64ad3da4ff4a2a53ffcc5df4c0d</id>
<content type='text'>
test-abstraction-ssp.sh should fail if $SpinePOD is unset.

SAMPLES_RAW="$SPINE_DIR/$SpinePOD" resolves to the spine directory
itself when the variable is unset. That directory exists, so the
"sample documents not found" check did not fire and spine was
handed every file in the spine tree.

Fail early instead, naming the variable and giving the path the
samples are usually at.

(assisted by Claude-Code)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
test-abstraction-ssp.sh should fail if $SpinePOD is unset.

SAMPLES_RAW="$SPINE_DIR/$SpinePOD" resolves to the spine directory
itself when the variable is unset. That directory exists, so the
"sample documents not found" check did not fire and spine was
handed every file in the spine tree.

Fail early instead, naming the variable and giving the path the
samples are usually at.

(assisted by Claude-Code)
</pre>
</div>
</content>
</entry>
<entry>
<title>ssp test-abstraction-ssp.sh script minor</title>
<updated>2026-05-15T23:25:14+00:00</updated>
<author>
<name>Ralph Amissah</name>
<email>ralph.amissah@gmail.com</email>
</author>
<published>2026-05-15T21:37:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sisudoc.org/sisudoc-spine/commit/?id=28a30710fafeb423acaa7dad82f9daf009023b4c'/>
<id>28a30710fafeb423acaa7dad82f9daf009023b4c</id>
<content type='text'>
- test/test-abstraction-ssp.sh script minor improvement

- result change reflects content corrections: name spelling &amp; a markup
  error, document abstracton, ssp verified ok (may be considered a test)

(assisted by Claude-Code)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- test/test-abstraction-ssp.sh script minor improvement

- result change reflects content corrections: name spelling &amp; a markup
  error, document abstracton, ssp verified ok (may be considered a test)

(assisted by Claude-Code)
</pre>
</div>
</content>
</entry>
<entry>
<title>org files cosmetic, remove word BUG</title>
<updated>2026-05-05T22:38:24+00:00</updated>
<author>
<name>Ralph Amissah</name>
<email>ralph.amissah@gmail.com</email>
</author>
<published>2026-05-05T22:38:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sisudoc.org/sisudoc-spine/commit/?id=b321e212521b80e5c6d66a00e8f9cd3c4bc117e8'/>
<id>b321e212521b80e5c6d66a00e8f9cd3c4bc117e8</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>org headers rearranged (&amp; odd hilighting issue)</title>
<updated>2026-05-04T16:12:12+00:00</updated>
<author>
<name>Ralph Amissah</name>
<email>ralph.amissah@gmail.com</email>
</author>
<published>2026-05-04T15:46:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sisudoc.org/sisudoc-spine/commit/?id=c81bb010f45b732f97d7fbecd812ecae28f2be7d'/>
<id>c81bb010f45b732f97d7fbecd812ecae28f2be7d</id>
<content type='text'>
- odd hilighting issue ... must result from my org config, but "fix"
  makes things easier for me.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- odd hilighting issue ... must result from my org config, but "fix"
  makes things easier for me.
</pre>
</div>
</content>
</entry>
<entry>
<title>add .ssp regression test script and reference files</title>
<updated>2026-04-23T02:10:49+00:00</updated>
<author>
<name>Ralph Amissah</name>
<email>ralph.amissah@gmail.com</email>
</author>
<published>2026-04-23T00:25:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sisudoc.org/sisudoc-spine/commit/?id=3e60254927f7b7bc271586146f9f49dc756b4027'/>
<id>3e60254927f7b7bc271586146f9f49dc756b4027</id>
<content type='text'>
test/test-abstraction-ssp.sh: shell script that generates
.ssp files for all sample documents and diffs against
committed reference files in test/reference/abstraction/.

Usage:
  ./test/test-abstraction-ssp.sh --generate ./bin/spine-ldc
  ./test/test-abstraction-ssp.sh ./bin/spine-ldc

Exits 0 if all .ssp files match, 1 if differences found.
Reports changed, missing, and new files.

test/reference/abstraction/: 35 reference .ssp files
generated from the current abstraction, covering all
sample documents including 9-language live-manual.

Co-Authored-By: Anthropic Claude Opus 4.6 (1M context)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
test/test-abstraction-ssp.sh: shell script that generates
.ssp files for all sample documents and diffs against
committed reference files in test/reference/abstraction/.

Usage:
  ./test/test-abstraction-ssp.sh --generate ./bin/spine-ldc
  ./test/test-abstraction-ssp.sh ./bin/spine-ldc

Exits 0 if all .ssp files match, 1 if differences found.
Reports changed, missing, and new files.

test/reference/abstraction/: 35 reference .ssp files
generated from the current abstraction, covering all
sample documents including 9-language live-manual.

Co-Authored-By: Anthropic Claude Opus 4.6 (1M context)
</pre>
</div>
</content>
</entry>
</feed>
