Skip to content

Commit

Permalink
Merge pull request #69 from cytopia/release-0.0.15
Browse files Browse the repository at this point in the history
Release v0.0.15-alpha
  • Loading branch information
cytopia authored May 10, 2020
2 parents 2544b96 + f510dfd commit 4ae360f
Show file tree
Hide file tree
Showing 31 changed files with 2,241 additions and 649 deletions.
120 changes: 100 additions & 20 deletions .github/workflows/test-x64-macos-2.7.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,23 @@ jobs:
shell: bash
run: |
retry() {
_make=${1}
_target=${2}
_host=${3:-localhost}
_port=${4:-4444}
_wait=${5:-8}
_runs=${6:-1}
for n in $(seq ${RETRIES}); do
echo "[${n}/${RETRIES}] ${*}";
if eval "${*}"; then
_port=$(( _port + n ))
echo "[${n}/${RETRIES}] make ${_target} ${_host} ${_port} ${_wait} ${_runs}";
if "${_make}" "${_target}" "TEST_PWNCAT_HOST=${_host}" "TEST_PWNCAT_PORT=${_port}" "TEST_PWNCAT_WAIT=${_wait}" "TEST_PWNCAT_RUNS=${_runs}"; then
return 0;
fi;
sleep 10;
done;
return 1;
}
retry make _test-behaviour-quit--client
env:
RETRIES: 5
Expand All @@ -58,15 +66,23 @@ jobs:
shell: bash
run: |
retry() {
_make=${1}
_target=${2}
_host=${3:-localhost}
_port=${4:-4444}
_wait=${5:-8}
_runs=${6:-1}
for n in $(seq ${RETRIES}); do
echo "[${n}/${RETRIES}] ${*}";
if eval "${*}"; then
_port=$(( _port + n ))
echo "[${n}/${RETRIES}] make ${_target} ${_host} ${_port} ${_wait} ${_runs}";
if "${_make}" "${_target}" "TEST_PWNCAT_HOST=${_host}" "TEST_PWNCAT_PORT=${_port}" "TEST_PWNCAT_WAIT=${_wait}" "TEST_PWNCAT_RUNS=${_runs}"; then
return 0;
fi;
sleep 10;
done;
return 1;
}
retry make _test-behaviour-quit--server
env:
RETRIES: 5
Expand All @@ -79,15 +95,23 @@ jobs:
shell: bash
run: |
retry() {
_make=${1}
_target=${2}
_host=${3:-localhost}
_port=${4:-4444}
_wait=${5:-8}
_runs=${6:-1}
for n in $(seq ${RETRIES}); do
echo "[${n}/${RETRIES}] ${*}";
if eval "${*}"; then
_port=$(( _port + n ))
echo "[${n}/${RETRIES}] make ${_target} ${_host} ${_port} ${_wait} ${_runs}";
if "${_make}" "${_target}" "TEST_PWNCAT_HOST=${_host}" "TEST_PWNCAT_PORT=${_port}" "TEST_PWNCAT_WAIT=${_wait}" "TEST_PWNCAT_RUNS=${_runs}"; then
return 0;
fi;
sleep 10;
done;
return 1;
}
retry make _test-mode--local_forward
env:
RETRIES: 5
Expand All @@ -96,15 +120,23 @@ jobs:
shell: bash
run: |
retry() {
_make=${1}
_target=${2}
_host=${3:-localhost}
_port=${4:-4444}
_wait=${5:-8}
_runs=${6:-1}
for n in $(seq ${RETRIES}); do
echo "[${n}/${RETRIES}] ${*}";
if eval "${*}"; then
_port=$(( _port + n ))
echo "[${n}/${RETRIES}] make ${_target} ${_host} ${_port} ${_wait} ${_runs}";
if "${_make}" "${_target}" "TEST_PWNCAT_HOST=${_host}" "TEST_PWNCAT_PORT=${_port}" "TEST_PWNCAT_WAIT=${_wait}" "TEST_PWNCAT_RUNS=${_runs}"; then
return 0;
fi;
sleep 10;
done;
return 1;
}
retry make _test-mode--remote_forward
env:
RETRIES: 5
Expand All @@ -117,15 +149,23 @@ jobs:
shell: bash
run: |
retry() {
_make=${1}
_target=${2}
_host=${3:-localhost}
_port=${4:-4444}
_wait=${5:-8}
_runs=${6:-1}
for n in $(seq ${RETRIES}); do
echo "[${n}/${RETRIES}] ${*}";
if eval "${*}"; then
_port=$(( _port + n ))
echo "[${n}/${RETRIES}] make ${_target} ${_host} ${_port} ${_wait} ${_runs}";
if "${_make}" "${_target}" "TEST_PWNCAT_HOST=${_host}" "TEST_PWNCAT_PORT=${_port}" "TEST_PWNCAT_WAIT=${_wait}" "TEST_PWNCAT_RUNS=${_runs}"; then
return 0;
fi;
sleep 10;
done;
return 1;
}
retry make _test-options--nodns
env:
RETRIES: 5
Expand All @@ -134,15 +174,23 @@ jobs:
shell: bash
run: |
retry() {
_make=${1}
_target=${2}
_host=${3:-localhost}
_port=${4:-4444}
_wait=${5:-8}
_runs=${6:-1}
for n in $(seq ${RETRIES}); do
echo "[${n}/${RETRIES}] ${*}";
if eval "${*}"; then
_port=$(( _port + n ))
echo "[${n}/${RETRIES}] make ${_target} ${_host} ${_port} ${_wait} ${_runs}";
if "${_make}" "${_target}" "TEST_PWNCAT_HOST=${_host}" "TEST_PWNCAT_PORT=${_port}" "TEST_PWNCAT_WAIT=${_wait}" "TEST_PWNCAT_RUNS=${_runs}"; then
return 0;
fi;
sleep 10;
done;
return 1;
}
retry make _test-options--crlf
env:
RETRIES: 5
Expand All @@ -151,15 +199,23 @@ jobs:
shell: bash
run: |
retry() {
_make=${1}
_target=${2}
_host=${3:-localhost}
_port=${4:-4444}
_wait=${5:-8}
_runs=${6:-1}
for n in $(seq ${RETRIES}); do
echo "[${n}/${RETRIES}] ${*}";
if eval "${*}"; then
_port=$(( _port + n ))
echo "[${n}/${RETRIES}] make ${_target} ${_host} ${_port} ${_wait} ${_runs}";
if "${_make}" "${_target}" "TEST_PWNCAT_HOST=${_host}" "TEST_PWNCAT_PORT=${_port}" "TEST_PWNCAT_WAIT=${_wait}" "TEST_PWNCAT_RUNS=${_runs}"; then
return 0;
fi;
sleep 10;
done;
return 1;
}
retry make _test-options--keep_open
env:
RETRIES: 5
Expand All @@ -168,15 +224,23 @@ jobs:
shell: bash
run: |
retry() {
_make=${1}
_target=${2}
_host=${3:-localhost}
_port=${4:-4444}
_wait=${5:-8}
_runs=${6:-1}
for n in $(seq ${RETRIES}); do
echo "[${n}/${RETRIES}] ${*}";
if eval "${*}"; then
_port=$(( _port + n ))
echo "[${n}/${RETRIES}] make ${_target} ${_host} ${_port} ${_wait} ${_runs}";
if "${_make}" "${_target}" "TEST_PWNCAT_HOST=${_host}" "TEST_PWNCAT_PORT=${_port}" "TEST_PWNCAT_WAIT=${_wait}" "TEST_PWNCAT_RUNS=${_runs}"; then
return 0;
fi;
sleep 10;
done;
return 1;
}
retry make _test-options--reconn
env:
RETRIES: 5
Expand All @@ -185,15 +249,23 @@ jobs:
shell: bash
run: |
retry() {
_make=${1}
_target=${2}
_host=${3:-localhost}
_port=${4:-4444}
_wait=${5:-8}
_runs=${6:-1}
for n in $(seq ${RETRIES}); do
echo "[${n}/${RETRIES}] ${*}";
if eval "${*}"; then
_port=$(( _port + n ))
echo "[${n}/${RETRIES}] make ${_target} ${_host} ${_port} ${_wait} ${_runs}";
if "${_make}" "${_target}" "TEST_PWNCAT_HOST=${_host}" "TEST_PWNCAT_PORT=${_port}" "TEST_PWNCAT_WAIT=${_wait}" "TEST_PWNCAT_RUNS=${_runs}"; then
return 0;
fi;
sleep 10;
done;
return 1;
}
retry make _test-options--ping_intvl
env:
RETRIES: 5
Expand All @@ -202,15 +274,23 @@ jobs:
shell: bash
run: |
retry() {
_make=${1}
_target=${2}
_host=${3:-localhost}
_port=${4:-4444}
_wait=${5:-8}
_runs=${6:-1}
for n in $(seq ${RETRIES}); do
echo "[${n}/${RETRIES}] ${*}";
if eval "${*}"; then
_port=$(( _port + n ))
echo "[${n}/${RETRIES}] make ${_target} ${_host} ${_port} ${_wait} ${_runs}";
if "${_make}" "${_target}" "TEST_PWNCAT_HOST=${_host}" "TEST_PWNCAT_PORT=${_port}" "TEST_PWNCAT_WAIT=${_wait}" "TEST_PWNCAT_RUNS=${_runs}"; then
return 0;
fi;
sleep 10;
done;
return 1;
}
retry make _test-options--ping_word
env:
RETRIES: 5
Loading

0 comments on commit 4ae360f

Please sign in to comment.