summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoru <u@billy>2023-05-29 18:16:32 -0400
committeru <u@billy>2023-05-29 18:21:01 -0400
commit05ec0ee9aed68851c75a13e2199f6fb7828f2f8a (patch)
treea84ae6f58cb1864517f6dca06bf521001922aed0 /src
parentc5999bad17c7ccda1bab698261dbb822c2c7e3ad (diff)
endofossil testing as a service
Diffstat (limited to 'src')
-rw-r--r--src/fossil-test@.service12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/fossil-test@.service b/src/fossil-test@.service
new file mode 100644
index 0000000..c1ad063
--- /dev/null
+++ b/src/fossil-test@.service
@@ -0,0 +1,12 @@
1[Unit]
2Description = Test Endofossil by attempting a clone
3
4[Service]
5Type = oneshot
6RuntimeDirectory = fossil-test-%i
7WorkingDirectory = /run/fossil-test-%i
8ExecStart = sh -xc 'mkdir .ssh'
9ExecStart = sh -xc 'ssh-keygen -t ed25519 -f .ssh/id_ed25519 -N ""'
10ExecStart = sh -xc 'HOME=. ssh %i@localhost fossil test-http src/fossil/db'
11ExecStart = sh -xc 'HOME=. fossil clone ssh://%i@localhost/src/fossil/db db~$(date -Ins).fossil'
12