aboutsummaryrefslogtreecommitdiffstats
path: root/service/tests
diff options
context:
space:
mode:
Diffstat (limited to 'service/tests')
-rw-r--r--service/tests/test.sh18
1 files changed, 16 insertions, 2 deletions
diff --git a/service/tests/test.sh b/service/tests/test.sh
index ddefa03..1edd979 100644
--- a/service/tests/test.sh
+++ b/service/tests/test.sh
@@ -47,10 +47,13 @@ connect() {
fi
}
-[ ! -z "$RESULTDIR" ] && rm -rf "$RESULTDIR"
-mkdir -p "$RESULTDIR"
+cleanuploads() {
+ [ ! -z "$RESULTDIR" ] && rm -rf "$RESULTDIR"
+ mkdir -p "$RESULTDIR"
+}
if [ "$1" == "stl" ]; then
+ cleanuploads
announce "Testing ASCII STL Parsing"
(
@@ -71,6 +74,7 @@ if [ "$1" == "stl" ]; then
) | checkleaks
elif [ "$1" == "vuln1" ]; then
+ cleanuploads
announce "Testing Flagstore 1"
@@ -121,6 +125,7 @@ elif [ "$1" == "vuln1" ]; then
) | connect
elif [ "$1" == "vuln2" ]; then
+ cleanuploads
announce "Testing Flagstore 2"
@@ -145,6 +150,8 @@ elif [ "$1" == "vuln2" ]; then
) | connect
elif [ "$1" == "authupload" ]; then
+ cleanuploads
+
(
echo "echo"
@@ -153,7 +160,14 @@ elif [ "$1" == "authupload" ]; then
cat "$TESTDATA/sample-ascii.stl" | wc -c
cat "$TESTDATA/sample-ascii.stl"
echo "testname"
+ ) | connect
+
+ (
+ echo "echo"
+
+ echo "auth test"
echo "list"
+ echo "search testname"
) | connect
else
connect