freechat/server/tests/curl-admin.sh

27 lines
625 B
Bash

#!/bin/sh
# Details for our bs user when testing things
export id=1
export secret=secret
export name=godrah
export joindate=123
export status=1
export permissions=69
# This script is basically just a convenient launch pad script for running all
# the tests at once
# Most tests should be runnable by doing ./script.sh name_of_test
# First the 'good' input tests
# This is to say that we get input that:
# 1. is properly formatted
# 2. has all the info we need & none we don't
# 3. has basically nothing malicious about it
sh ./tests/verify_basic_cases.sh
sh ./tests/verify_err_cases.sh
sh ./tests/verify_mal_cases.sh