mirror of
https://github.com/projectdiscovery/httpx
synced 2026-06-08 16:50:17 +00:00
24 lines
646 B
Bash
Executable File
24 lines
646 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# reading os type from arguments
|
|
CURRENT_OS=$1
|
|
|
|
if [ "${CURRENT_OS}" == "windows-latest" ];then
|
|
extension=.exe
|
|
fi
|
|
|
|
echo "::group::Building functional-test binary"
|
|
go build -o functional-test$extension
|
|
echo "::endgroup::"
|
|
|
|
echo "::group::Building httpx binary from current branch"
|
|
go build -o httpx_dev$extension ../httpx
|
|
echo "::endgroup::"
|
|
|
|
echo "::group::Building latest release of httpx"
|
|
go build -o httpx$extension -v github.com/projectdiscovery/httpx/cmd/httpx
|
|
echo "::endgroup::"
|
|
|
|
echo 'Starting httpx functional test'
|
|
./functional-test$extension -main ./httpx$extension -dev ./httpx_dev$extension -testcases testcases.txt
|