altocompta/unit-test/create-dossier-test.sh
2023-04-30 19:10:07 +02:00

15 lines
246 B
Bash
Executable file

#!/bin/bash
export PGCLUSTER=12/main
DOSSIER_TEST=rel91dossier25
FILE_TEST=dossier25.sql
dropdb $DOSSIER_TEST
if [ $? -ne 0 ] ; then
echo cannot drop $DOSSIER_TEST
exit 1
fi
createdb $DOSSIER_TEST
psql -X $DOSSIER_TEST < db/$FILE_TEST