File: doctest

package info (click to toggle)
pg8000 1.31.5-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 836 kB
  • sloc: python: 8,273; sh: 25; makefile: 9
file content (14 lines) | stat: -rw-r--r-- 391 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

set -e -u

sudo -u postgres psql -c "ALTER USER postgres WITH PASSWORD 'cpsnow';"

CLEAN_USER=$(echo "$USER" | tr -dc '[a-z]')
sudo -u postgres psql -c "CREATE USER $CLEAN_USER WITH PASSWORD 'cpsnow';"
sudo -u postgres createdb -O "$CLEAN_USER" "$CLEAN_USER"

for py in $(py3versions -s); do
    echo "Running testsuite with $py:"
    $py -m pytest -x -v test/test_readme.py
done