1# vi: set ft=conf23# start soft serve4exec soft serve &5# wait for SSH server to start6ensureserverrunning SSH_PORT78# test repositories tab9ui '" q"'10cp stdout home.txt11grep 'Test Soft Serve' home.txt12grep '• Repositories' home.txt13grep 'No items' home.txt1415# test about tab16ui '"\t q"'17cp stdout about.txt18grep 'Create a `.soft-serve` repository and add a `README.md` file' about.txt1920# add a new repo21soft repo create .soft-serve -n 'Config' -d '"Test Soft Serve"'22soft repo description .soft-serve23stdout 'Test Soft Serve'24soft repo project-name .soft-serve25stdout 'Config'2627# clone repo28git clone ssh://localhost:$SSH_PORT/.soft-serve config2930# create readme file31mkfile ./config/README.md '# Hello World\nTest Soft Serve'32git -C config add -A33git -C config commit -m 'Initial commit'34git -C config push origin HEAD3536# test repositories tab37ui '" q"'38cp stdout home2.txt39grep 'Config' home2.txt40grep 'Test Soft Serve' home2.txt41grep 'git clone ssh://localhost:.*/.soft-serve' home2.txt4243# test about tab44ui '"\t q"'45cp stdout about2.txt46grep '• About' about2.txt47grep 'Hello World' about2.txt48grep 'Test Soft Serve' about2.txt4950# stop the server51[windows] stopserver52[windows] ! stderr .53