generate only mj-msc.pdf
mj-msc-all is harder and meaningless
This commit is contained in:
parent
56318e1596
commit
b81ff210f4
@ -1,12 +1,13 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
dir=$(mktemp -d)
|
dir=$(mktemp -d)
|
||||||
fname=${1:-mj-msc-all.pdf}
|
src=${1:-mj-msc-all.pdf}
|
||||||
echo "Extracting $fname to $dir/" && pdfdetach -saveall -o "$dir" "$fname"
|
dst=${2:-mj-msc.pdf}
|
||||||
echo "Generating $dir/$fname ..."
|
echo "Extracting $src to $dir/" && pdfdetach -saveall -o "$dir" "$src"
|
||||||
make -j $(nproc) -C "$dir" "$fname" &> "$dir/make.log" || {
|
echo "Generating $dir/$dst ..."
|
||||||
|
make -j $(nproc) -C "$dir" "$dst" &> "$dir/make.log" || {
|
||||||
echo "Generation failed. Log extract:" && tail -20 "$dir/make.log"
|
echo "Generation failed. Log extract:" && tail -20 "$dir/make.log"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
echo "Opening $dir/$fname ..." && xdg-open "$dir/$fname"
|
echo "Opening $dir/$dst ..." && xdg-open "$dir/$dst"
|
||||||
echo "File has been closed. Removing $dir" && rm -fr "$dir"
|
echo "File has been closed. Removing $dir" && rm -fr "$dir"
|
||||||
|
@ -200,10 +200,6 @@ results have been manually calculated. The test suite executes parts of the
|
|||||||
algorithm against a predefined set of geometries, and asserts that the output
|
algorithm against a predefined set of geometries, and asserts that the output
|
||||||
matches the resulting hand-calculated geometry.
|
matches the resulting hand-calculated geometry.
|
||||||
|
|
||||||
The full test suite can be executed with a single command, and completes in a
|
|
||||||
few seconds. Having an easily accessible test suite boosts confidence that no
|
|
||||||
unexpected regressions have been added while modifying the algorithm.
|
|
||||||
|
|
||||||
\begin{figure}[H]
|
\begin{figure}[H]
|
||||||
\centering
|
\centering
|
||||||
\includegraphics[width=\linewidth]{test-figures}
|
\includegraphics[width=\linewidth]{test-figures}
|
||||||
@ -211,6 +207,10 @@ unexpected regressions have been added while modifying the algorithm.
|
|||||||
\label{fig:test-figures}
|
\label{fig:test-figures}
|
||||||
\end{figure}
|
\end{figure}
|
||||||
|
|
||||||
|
The full test suite can be executed with a single command, and completes in a
|
||||||
|
few seconds. Having an easily accessible test suite boosts confidence that no
|
||||||
|
unexpected regressions have been added while modifying the algorithm.
|
||||||
|
|
||||||
\section{Description of the implementation}
|
\section{Description of the implementation}
|
||||||
|
|
||||||
\subsection{Definition of a Bend}
|
\subsection{Definition of a Bend}
|
||||||
|
Loading…
Reference in New Issue
Block a user