File: testsuite3

package info (click to toggle)
parallax 1.0.8-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 204 kB
  • sloc: python: 1,213; sh: 53; makefile: 8
file content (14 lines) | stat: -rwxr-xr-x 440 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

set -e

HOMEDIR=$AUTOPKGTEST_TMP/home
adduser --home $HOMEDIR --disabled-password --gecos autopkgtest parallax

mkdir -m 700 $HOMEDIR/.ssh
ssh-keyscan localhost > $HOMEDIR/.ssh/known_hosts 2>/dev/null
ssh-keygen -q -N '' -f $HOMEDIR/.ssh/id_rsa
cp $HOMEDIR/.ssh/id_rsa.pub $HOMEDIR/.ssh/authorized_keys
chown -R parallax: $HOMEDIR/.ssh/

su -c "env TEST_HOSTS=localhost TEST_USER=parallax python3 test/test_api.py" parallax 2>&1