Files
Wallenc/Report/testing-export/scripts/build.sh

33 lines
946 B
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/usr/bin/env bash
# Сборка четырёх PDF для загрузки по критериям тестирования.
set -euo pipefail
REPORT="$(cd "$(dirname "$0")/../.." && pwd)"
EXPORT="$(cd "$(dirname "$0")/.." && pwd)"
cd "$REPORT"
python3 scripts/gen_test_listings.py
stems=(
01_plan_testing
02_test_sets
03_automation_code
04_test_report
)
pdfs=(
"КТбо4-9_ПытковРЕ_1.1_План_тестирования.pdf"
"КТбо4-9_ПытковРЕ_1.2_Наборы_тестов.pdf"
"КТбо4-9_ПытковРЕ_1.3_Автоматизированноеестирование.pdf"
"КТбо4-9_ПытковРЕ_1.4_Отчёт_о_проведении_тестирования.pdf"
)
for i in "${!stems[@]}"; do
stem="${stems[$i]}"
pdf="${pdfs[$i]}"
echo "Compiling $stem.typ → $pdf ..."
typst compile --root .. "$EXPORT/$stem.typ" "$EXPORT/$pdf"
done
echo "Done:"
printf ' %s\n' "${pdfs[@]}"