#!/bin/bash
tests="by_http wh_lambda http_keys http_forgot \
api wh_cloud pr_anon wh_http ssh http_totp totp git_log1 \
http_admin http_bug \
http_create_account http_login http_settings http_csrf http_top \
token util log state cache prof event rights keys user repo git \
bug hook_update git2 source"
failed=""
add=""
for t in ${tests}; do
if [ -r "state/${t}" ]; then
continue
fi
echo
echo "${t}: Running..."
if [ -r "${t}.sh" ]; then
./${t}.sh
else
php ${t}.php
fi
if [ "${?}" != "0" ]; then
failed="${failed}${add}${t}"
add=" "
echo "${t}: FAILED!"
else
touch "state/${t}"
fi
done
echo "${failed}" > _run_tests.failed
echo
if [ "${failed}" = "" ]; then
exit 0
fi
echo "Some tests failed: ${failed}"
exit 1
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"
Clone this repository using HTTP(S):
git clone https://code.reversed.top/user/xaizek/rocketgit
Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@code.reversed.top/user/xaizek/rocketgit
You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a
pull request:
... clone the repository ...
... make some changes and some commits ...
git push origin master