Move bench integration test.

This commit is contained in:
Jean-Christophe Amiel 2024-06-19 13:02:08 +02:00 committed by hurl-bot
parent 132257a579
commit b83741d9ef
No known key found for this signature in database
GPG Key ID: 1283A2B4A0DCAF8D
9 changed files with 9 additions and 47 deletions

View File

@ -40,8 +40,6 @@ jobs:
run: |
bin/release/release.sh
echo "PATH=${PWD}/target/release:$PATH" >> "${GITHUB_ENV}"
- name: Bench Suite
run: bin/test/bench.sh
- name: Archive artifacts
uses: actions/upload-artifact@v4.3.3
if: ${{ always() }}

View File

@ -1,9 +0,0 @@
# Bench Suite
# Start Server
python server.py
# Run Bench Suite
./run.sh

View File

@ -1,5 +0,0 @@
#!/bin/bash
set -Eeuo pipefail
time hurl tests/hello_1000.hurl

View File

@ -1,12 +0,0 @@
from flask import Flask
from flask import request
app = Flask(__name__)
@app.route("/hello")
def hello():
return "Hello World!"
app.run(host="0.0.0.0", port=8000)

View File

@ -1,19 +0,0 @@
#!/bin/bash
set -Eeuo pipefail
echo "----- Bench suite -----"
# hurl infos
command -v hurl || (echo "ERROR - hurl not found" ; exit 1)
command -v hurlfmt || (echo "ERROR - hurlfmt not found" ; exit 1)
hurl --version
hurlfmt --version
# bench
python3 -m pip install --requirement bin/requirements-frozen.txt
cd bench
python3 server.py > server.log 2>&1 &
sleep 5
netstat -anpe | grep 8000
./run.sh

View File

@ -0,0 +1 @@
Hello World!

View File

@ -0,0 +1,4 @@
Set-StrictMode -Version latest
$ErrorActionPreference = 'Stop'
hurl tests_ok/bench.hurl

View File

@ -0,0 +1,4 @@
#!/bin/bash
set -Eeuo pipefail
hurl tests_ok/bench.hurl