Add autopkgtest
Sophie Brun
3 years ago
|
0 |
Test-Command: debian/tests/runtests.sh
|
|
1 |
Restrictions: needs-root, isolation-container, superficial, allow-stderr
|
|
0 |
#!/bin/sh
|
|
1 |
|
|
2 |
set -e
|
|
3 |
|
|
4 |
echo "Start postgresql service to init database"
|
|
5 |
systemctl start postgresql
|
|
6 |
|
|
7 |
echo "Init database"
|
|
8 |
sudo faraday-manage initdb
|
|
9 |
sleep 10
|
|
10 |
|
|
11 |
echo "Start faraday service"
|
|
12 |
sudo systemctl start faraday
|
|
13 |
|
|
14 |
echo "Check if faraday service is active"
|
|
15 |
if ! systemctl is-active -q faraday; then
|
|
16 |
echo "the service faraday is not active"
|
|
17 |
exit 1
|
|
18 |
fi
|