summaryrefslogtreecommitdiff
path: root/src/fossil-test@.service
blob: 849873306862695a6b5d80e52411ac355519ce99 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
[Unit]
Description = Test Endofossil by attempting a clone

[Service]
Type = oneshot
DynamicUser = yes
User = fossil-test-user-%i
PrivateUsers = yes
RuntimeDirectory = fossil-test-%i
WorkingDirectory = /run/fossil-test-%i
Environment = HOME=/run/fossil-test-%i
BindPaths = /run/fossil-test-%i:/root

ExecStart = sh -xc 'mkdir .ssh'
ExecStart = sh -xc 'fakeroot ssh-keygen -t ed25519 -f .ssh/id_ed25519 -N ""'
ExecStart = sh -xc 'fakeroot ssh -o UserKnownHostsFile=.ssh/known_hosts -o StrictHostKeyChecking=accept-new -i .ssh/id_ed25519 %i@localhost fossil test-http src/fossil/db'
ExecStart = sh -xc 'fakeroot fossil clone ssh://%i@localhost/src/fossil/db db~$(date -Ins).fossil'