mirror of
https://github.com/Orange-OpenSource/hurl.git
synced 2024-11-23 09:44:22 +03:00
Move bench integration test.
This commit is contained in:
parent
132257a579
commit
b83741d9ef
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
@ -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() }}
|
||||
|
@ -1,9 +0,0 @@
|
||||
# Bench Suite
|
||||
|
||||
# Start Server
|
||||
python server.py
|
||||
|
||||
# Run Bench Suite
|
||||
./run.sh
|
||||
|
||||
|
@ -1,5 +0,0 @@
|
||||
#!/bin/bash
|
||||
set -Eeuo pipefail
|
||||
|
||||
time hurl tests/hello_1000.hurl
|
||||
|
@ -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)
|
@ -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
|
||||
|
1
integration/hurl/tests_ok/bench.out
Normal file
1
integration/hurl/tests_ok/bench.out
Normal file
@ -0,0 +1 @@
|
||||
Hello World!
|
4
integration/hurl/tests_ok/bench.ps1
Normal file
4
integration/hurl/tests_ok/bench.ps1
Normal file
@ -0,0 +1,4 @@
|
||||
Set-StrictMode -Version latest
|
||||
$ErrorActionPreference = 'Stop'
|
||||
|
||||
hurl tests_ok/bench.hurl
|
4
integration/hurl/tests_ok/bench.sh
Executable file
4
integration/hurl/tests_ok/bench.sh
Executable file
@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
set -Eeuo pipefail
|
||||
|
||||
hurl tests_ok/bench.hurl
|
Loading…
Reference in New Issue
Block a user