- Sel template berisi tabel contoh bersarang kini dibersihkan saat ditimpa: dokumen sah OOXML, Word tidak lagi menganggapnya rusak lalu mengacak tata letak - Blok naratif (Peta CPL-CPMK, Deskripsi, Bahan Kajian, Pustaka, Media, Pengampu, Prasyarat) ditulis ke baris template asli, bukan indeks yang bergeser setelah daftar CPL/CPMK/Sub digandakan - Komponen penilaian tanpa bobot & Sub-CPMK tidak dicetak; template rps_untan.docx versi rapi - Portofolio: kolom NIM - tests/uji_unduh_rps.py: ke-10 RPS produksi sah & label sejajar (generator lama: 10/10 gagal) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
20 lines
1.3 KiB
Bash
20 lines
1.3 KiB
Bash
#!/usr/bin/env bash
|
|
# Jalankan seluruh uji pada SALINAN data/app.db (data asli tidak tersentuh).
|
|
# bash tests/jalankan.sh → semua uji
|
|
# bash tests/jalankan.sh path/ke/produksi.db → + gladi migrasi DB produksi OBE-Mapping
|
|
cd "$(dirname "$0")/.." || exit 1
|
|
ROOT="$(pwd -W 2>/dev/null || pwd)"
|
|
gagal=0
|
|
for u in uji_peran uji_autosave uji_simpan uji_klinik3 uji_cqi uji_impor uji_siklus uji_kurikulum; do
|
|
cp data/app.db tests/uji.db
|
|
if PYTHONIOENCODING=utf-8 python "tests/$u.py" "$ROOT" > "tests/$u.log" 2>&1; then echo "OK $u"; else echo "GAGAL $u (lihat tests/$u.log)"; gagal=1; fi
|
|
done
|
|
if [ -n "$1" ]; then
|
|
rm -f tests/migrasi.db
|
|
if PYTHONIOENCODING=utf-8 python tests/uji_migrasi_prod.py "$ROOT" "$1" > tests/uji_migrasi_prod.log 2>&1; then echo "OK uji_migrasi_prod"; else echo "GAGAL uji_migrasi_prod"; gagal=1; fi
|
|
# memakai tests/migrasi.db hasil gladi di atas
|
|
if PYTHONIOENCODING=utf-8 python tests/uji_rps_kustom.py "$ROOT" > tests/uji_rps_kustom.log 2>&1; then echo "OK uji_rps_kustom"; else echo "GAGAL uji_rps_kustom"; gagal=1; fi
|
|
if PYTHONIOENCODING=utf-8 python tests/uji_unduh_rps.py "$ROOT" > tests/uji_unduh_rps.log 2>&1; then echo "OK uji_unduh_rps"; else echo "GAGAL uji_unduh_rps"; gagal=1; fi
|
|
fi
|
|
exit $gagal
|