diff --git a/tests/bash_libraries/install_tools.sh b/tests/bash_libraries/install_tools.sh deleted file mode 100755 index 4d9df7a68..000000000 --- a/tests/bash_libraries/install_tools.sh +++ /dev/null @@ -1,78 +0,0 @@ -#!/bin/bash - -if ! command -v http > /dev/null; then - if [[ $(whoami) == "root" ]]; then - apt update - apt install -y httpie - else - sudo apt update - sudo apt install -y httpie - fi -fi - -if ! command -v hey > /dev/null; then - HEY_URL=https://hey-release.s3.us-east-2.amazonaws.com/hey_linux_amd64 - wget $HEY_URL -O hey - chmod +x hey - - if [[ $(whoami) == "root" ]]; then - mv hey /usr/bin/hey - else - sudo mv hey /usr/bin/hey - fi -fi - -if ! command -v loadtest > /dev/null; then - if ! command -v npm > /dev/null; then - if [[ $(whoami) == "root" ]]; then - apt update - apt install -y npm - else - sudo apt update - sudo apt install -y npm - fi - fi - - if [[ $(whoami) == "root" ]]; then - npm install -y -g loadtest - else - sudo npm install -y -g loadtest - fi -fi - -if ! command -v gnuplot > /dev/null; then - if [[ $(whoami) == "root" ]]; then - apt-get update - apt-get install -y gnuplot - else - sudo apt-get update - sudo apt-get install -y gnuplot - fi -fi - - -if ! command -v jq > /dev/null; then - if [[ $(whoami) == "root" ]]; then - apt update - apt install -y jq - else - sudo apt update - sudo apt install -y jq - fi -fi - -# For SOD: -if ! command -v imagemagick > /dev/null; then - if [ "$(whoami)" == "root" ]; then - apt-get install -y imagemagick - else - sudo apt-get install -y imagemagick - fi -fi - -# For GOCR, too many to check one-by-one, so uncomment below to install: -# if [[ "$(whoami)" == "root" ]]; then -# apt-get install -y netpbm pango1.0-tools wamerican fonts-roboto fonts-cascadia-code fonts-dejavu -# else -# sudo apt-get install -y netpbm pango1.0-tools wamerican fonts-roboto fonts-cascadia-code fonts-dejavu -# fi diff --git a/tests/cmu-sod/.gitignore b/tests/cmu-sod/.gitignore deleted file mode 100644 index 019d49180..000000000 --- a/tests/cmu-sod/.gitignore +++ /dev/null @@ -1 +0,0 @@ -out.png diff --git a/tests/cmu-sod/0_depth.png b/tests/cmu-sod/0_depth.png deleted file mode 100644 index 242a89be1..000000000 Binary files a/tests/cmu-sod/0_depth.png and /dev/null differ diff --git a/tests/cmu-sod/0_rgb.png b/tests/cmu-sod/0_rgb.png deleted file mode 100644 index 84da58aeb..000000000 Binary files a/tests/cmu-sod/0_rgb.png and /dev/null differ diff --git a/tests/cmu-sod/Makefile b/tests/cmu-sod/Makefile deleted file mode 100644 index c8d9b1a60..000000000 --- a/tests/cmu-sod/Makefile +++ /dev/null @@ -1,30 +0,0 @@ -SLEDGE_BINARY_DIR=../../runtime/bin -HOSTNAME=localhost -PORT=10000 - -default: run - -clean: - rm -rf res/* - -run: - SLEDGE_SPINLOOP_PAUSE_ENABLED=true SLEDGE_SANDBOX_PERF_LOG=perf.log LD_LIBRARY_PATH=${SLEDGE_BINARY_DIR} ${SLEDGE_BINARY_DIR}/sledgert spec.json - -debug: - SLEDGE_SPINLOOP_PAUSE_ENABLED=true SLEDGE_NWORKERS=1 LD_LIBRARY_PATH=${SLEDGE_BINARY_DIR} gdb ${SLEDGE_BINARY_DIR}/sledgert --eval-command="run spec.json" - -valgrind: - SLEDGE_DISABLE_PREEMPTION=true SLEDGE_NWORKERS=1 LD_LIBRARY_PATH=${SLEDGE_BINARY_DIR} valgrind --leak-check=full --max-stackframe=11150456 --run-libc-freeres=no --run-cxx-freeres=no ${SLEDGE_BINARY_DIR}/sledgert spec.json - -.PHONY: client -client: - cat ./0_depth.png | http "${HOSTNAME}:${PORT}/depth_to_xyz" > ./out.png - -client-cloudlab: - cat ./0_depth.png | http "c220g2-011017.wisc.cloudlab.us:${PORT}/depth_to_xyz" > ./out.png - -client-cmu: - cat ./0_depth.png | http "arena0.andrew.cmu.edu:${PORT}/depth_to_xyz" > ./out.png - -multi: - hey -n 180 -c 180 -t 0 -o csv -m POST -D "./0_depth.png" "http://${HOSTNAME}:${PORT}/depth_to_xyz" diff --git a/tests/cmu-sod/expected_result.png b/tests/cmu-sod/expected_result.png deleted file mode 100644 index 48198eaa6..000000000 Binary files a/tests/cmu-sod/expected_result.png and /dev/null differ diff --git a/tests/cmu-sod/spec.json b/tests/cmu-sod/spec.json deleted file mode 100644 index dfa543224..000000000 --- a/tests/cmu-sod/spec.json +++ /dev/null @@ -1,25 +0,0 @@ -[ - { - "name": "cmu", - "port": 10000, - "replenishment-period-us": 0, - "max-budget-us": 0, - "routes": [ - { - "route": "/fib", - "path": "fibonacci.wasm.so", - "admissions-percentile": 50, - "expected-execution-us": 6000, - "relative-deadline-us": 20000, - "http-resp-content-type": "text/plain" - }, - { - "route": "/depth_to_xyz", - "path": "depth_to_xyz.wasm.so", - "expected-execution-us": 5000, - "relative-deadline-us": 360000, - "http-resp-content-type": "img/png" - } - ] - } -] diff --git a/tests/cmu-sod/test_requests.py b/tests/cmu-sod/test_requests.py deleted file mode 100644 index c74b3289f..000000000 --- a/tests/cmu-sod/test_requests.py +++ /dev/null @@ -1,20 +0,0 @@ -import time -import requests - -url = 'http://arena0.andrew.cmu.edu:10000/depth_to_xyz' - -payload = open('0_depth.png', 'rb') - -img = None - -response = requests.post(url, data=payload) -img = response.content -time.sleep(1) -print("single request works!") - -for i in range(100): - payload = open('0_depth.png', 'rb') - response = requests.post(url, data=payload) - img = response.content - time.sleep(1) - print(f"multi request #{i} works!") diff --git a/tests/cmu-sod/test_threads.py b/tests/cmu-sod/test_threads.py deleted file mode 100644 index 3c7f5a3aa..000000000 --- a/tests/cmu-sod/test_threads.py +++ /dev/null @@ -1,31 +0,0 @@ -# import numpy as np -import requests -import threading -import time - -from flask import Flask, Response - -url = 'http://arena0.andrew.cmu.edu:10000/depth_to_xyz' - -# app = Flask(__name__) - -img = None - -def get_img(): - global img - while True: - print("start") - try: - payload = open('0_depth.png', 'rb') - response = requests.post(url, data=payload) - img = response.content - print("got img") - time.sleep(0.01) - except: - print("failed") - time.sleep(5) - -thread = threading.Thread(target=get_img) -thread.daemon = True -thread.start() -thread.join() diff --git a/tests/common/mt/mtdbf_preemption.env b/tests/common/mt/mtdbf_preemption.env deleted file mode 100644 index d415269b5..000000000 --- a/tests/common/mt/mtdbf_preemption.env +++ /dev/null @@ -1,3 +0,0 @@ -SLEDGE_SCHEDULER=MTDBF -SLEDGE_DISABLE_PREEMPTION=false -SLEDGE_SANDBOX_PERF_LOG=perf.log