moved common common func off to main

This commit is contained in:
shockrah 2020-07-27 15:43:00 -07:00
parent f536674e73
commit fb63007a85
2 changed files with 20 additions and 4 deletions

View File

@ -1,3 +1,4 @@
#!/bin/sh
# Details for our bs user when testing things
export id=1
export secret=secret

View File

@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
# This script is basically just a convenient launch pad script for running all
# the tests at once
@ -10,9 +10,24 @@
# 1. is properly formatted
# 2. has all the info we need & none we don't
# 3. has basically nothing malicious about it
show_discrepancy() {
expect=$1
actual=$2
result=$3
sh ./tests/verify_basic_cases.sh
if [ $expect != $actual ];then
echo ==========
echo "$result"
echo ==========
fi
}
sh ./tests/verify_err_cases.sh
source ./common.sh
export -f show_discrepancy
echo TestName ExpectedCode ActualCode
sh ./tests/verify_mal_cases.sh
bash ./verify_basic_cases.sh
bash ./verify_err_cases.sh
bash ./verify_mal_cases.sh