diff options
author | Dmitry Ilvokhin <d@ilvokhin.com> | 2024-02-04 14:34:38 +0000 |
---|---|---|
committer | Dmitry Ilvokhin <d@ilvokhin.com> | 2024-02-04 14:34:38 +0000 |
commit | f982a578c8c5543740ff5a6db91eccf2c6d23e72 (patch) | |
tree | f07ba5921e441671ca3eefd1dd7b9a5e483f7953 /misc/tests/git-server-http-protocol.sh | |
parent | e10b784369bb4c20fc39bfb779a1ed5206a806d2 (diff) | |
download | infra-f982a578c8c5543740ff5a6db91eccf2c6d23e72.tar.gz infra-f982a578c8c5543740ff5a6db91eccf2c6d23e72.tar.bz2 infra-f982a578c8c5543740ff5a6db91eccf2c6d23e72.zip |
Add simple test scripts to test git server
Diffstat (limited to 'misc/tests/git-server-http-protocol.sh')
-rwxr-xr-x | misc/tests/git-server-http-protocol.sh | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/misc/tests/git-server-http-protocol.sh b/misc/tests/git-server-http-protocol.sh new file mode 100755 index 0000000..818412d --- /dev/null +++ b/misc/tests/git-server-http-protocol.sh @@ -0,0 +1,28 @@ +#! /usr/bin/env bash + +tmp=`mktemp -d` + +cd $tmp + +# HTTP protocol +git clone http://git.ilvokhin.com/infra.git > /dev/null 2>&1 + +if [ $? -eq 0 ]; then + echo "http: OK" + rm -rf infra +else + echo "http: FAIL" +fi + +# HTTPS protocol +git clone https://git.ilvokhin.com/infra.git > /dev/null 2>&1 + +if [ $? -eq 0 ]; then + echo "https: OK" + rm -rf infra +else + echo "https: FAIL" +fi + +cd - > /dev/null +rm -rf $tmp |