-
Notifications
You must be signed in to change notification settings - Fork 528
84 lines (81 loc) · 3.77 KB
/
package.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
name: package
on:
pull_request:
workflow_dispatch:
workflow_call:
inputs:
branch:
description: "ref branch for this workflow"
default: "master"
required: true
type: string
env:
CARGO_TERM_COLOR: always
jobs:
test-flask-windows-pwsh:
runs-on: windows-latest
defaults:
run:
shell: pwsh
steps:
- name: debug
run: |
Write-Host "======== etc/hosts"
Get-ChildItem -Path C:\ -Filter hosts -Recurse -ErrorAction SilentlyContinue
Get-ChildItem -Path D:\ -Filter hosts -Recurse -ErrorAction SilentlyContinue
exit
- name: Checkout repository
uses: actions/checkout@v4.2.2
with:
persist-credentials: false
ref: ${{ inputs.branch }}
- name: Install prerequisites
run: .\bin\install_prerequisites_windows.ps1
- name: Install Python 3.11
uses: actions/setup-python@v5.3.0
with:
python-version: '3.11'
- name: test
run: |
.\bin\activate_python3_venv.ps1
.\bin\test\test_prerequisites.ps1
choco install -y hurl
Write-Host "======== Get-NetIPInterface"
Get-NetIPInterface
ping localhost
Write-Host "======== curl ipv6 resolution time google"
Get-Date -Format "yyyy-MM-dd HH:mm:ss.fff"
curl --location -6 -w "DNS: %{time_namelookup}s\nConnect: %{time_connect}s\nStart Transfer: %{time_starttransfer}s\nTotal: %{time_total}s\n" -o null -s https://google.fr
Get-Date -Format "yyyy-MM-dd HH:mm:ss.fff"
Write-Host "======== curl ipv4 resolution time google"
Get-Date -Format "yyyy-MM-dd HH:mm:ss.fff"
curl --location -4 -w "DNS: %{time_namelookup}s\nConnect: %{time_connect}s\nStart Transfer: %{time_starttransfer}s\nTotal: %{time_total}s\n" -o null -s https://google.fr
Get-Date -Format "yyyy-MM-dd HH:mm:ss.fff"
Write-Host "======== curl ipv6 resolution time"
Get-Date -Format "yyyy-MM-dd HH:mm:ss.fff"
curl -6 -w "DNS: %{time_namelookup}s\nConnect: %{time_connect}s\nStart Transfer: %{time_starttransfer}s\nTotal: %{time_total}s\n" -o null -s http://localhost:8000/hello
Get-Date -Format "yyyy-MM-dd HH:mm:ss.fff"
Write-Host "======== curl ipv4 resolution time"
Get-Date -Format "yyyy-MM-dd HH:mm:ss.fff"
curl -4 -w "DNS: %{time_namelookup}s\nConnect: %{time_connect}s\nStart Transfer: %{time_starttransfer}s\nTotal: %{time_total}s\n" -o null -s http://127.0.0.1:8000/hello
Get-Date -Format "yyyy-MM-dd HH:mm:ss.fff"
Write-Host "======== echo | hurl 127.0.0.1"
Get-Date -Format "yyyy-MM-dd HH:mm:ss.fff"
pwsh -Command "echo 'GET http://127.0.0.1:8000/hello' | hurl --test --very-verbose"
Get-Date -Format "yyyy-MM-dd HH:mm:ss.fff"
Write-Host "======== echo | hurl localhost"
Get-Date -Format "yyyy-MM-dd HH:mm:ss.fff"
pwsh -Command "echo 'GET http://localhost:8000/hello' | hurl --test --very-verbose"
Get-Date -Format "yyyy-MM-dd HH:mm:ss.fff"
Write-Host "======== hurl bench.hurl ipv4"
Get-Date -Format "yyyy-MM-dd HH:mm:ss.fff"
pwsh -Command "hurl --ipv4 --test integration/hurl/tests_ok/bench.hurl"
Get-Date -Format "yyyy-MM-dd HH:mm:ss.fff"
Write-Host "======== hurl bench.hurl ipv6"
Get-Date -Format "yyyy-MM-dd HH:mm:ss.fff"
pwsh -Command "hurl --ipv6 --test integration/hurl/tests_ok/bench.hurl"
Get-Date -Format "yyyy-MM-dd HH:mm:ss.fff"
Write-Host "======== by ps1"
Get-Date -Format "yyyy-MM-dd HH:mm:ss.fff"
pwsh -Command "integration/hurl/tests_ok/bench.ps1"
Get-Date -Format "yyyy-MM-dd HH:mm:ss.fff"