-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- changes: - Change install directory and library names. See readme.md for details - "listener" naming is replaced by "server" - improvements: - Extend test scope: Check TLS connection with RSA and EC certificates - Improvement of example. Not needed to install libraries to execute example - bug fixes: - Immediately flush out stream when receiving messages in forwarding mode
- Loading branch information
Showing
34 changed files
with
780 additions
and
522 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,38 @@ | ||
name: release | ||
|
||
on: | ||
push: | ||
tags: | ||
- "v*" | ||
push: | ||
tags: | ||
- "v*" | ||
|
||
jobs: | ||
release: | ||
name: release | ||
runs-on: ubuntu-latest | ||
steps: | ||
release: | ||
name: release | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Get tag name | ||
id: tag-name | ||
run: echo "out=$(basename $GITHUB_REF)" >> $GITHUB_OUTPUT | ||
- name: Get tag name | ||
id: tag-name | ||
run: echo "out=$(basename $GITHUB_REF)" >> $GITHUB_OUTPUT | ||
|
||
- name: Get tag message | ||
id: tag-message | ||
run: | | ||
TAG_MSG=$(git tag -l --format='%(contents)' ${{ steps.tag-name.outputs.out }}) | ||
echo "TAG_MSG<<EOF" >> $GITHUB_ENV | ||
echo "$TAG_MSG" >> $GITHUB_ENV | ||
echo "EOF" >> $GITHUB_ENV | ||
- name: Get tag message | ||
id: tag-message | ||
run: | | ||
TAG_MSG=$(git tag -l --format='%(contents)' ${{ steps.tag-name.outputs.out }}) | ||
echo "TAG_MSG<<EOF" >> $GITHUB_ENV | ||
echo "$TAG_MSG" >> $GITHUB_ENV | ||
echo "EOF" >> $GITHUB_ENV | ||
- name: Create release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ steps.tag-name.outputs.out }} | ||
release_name: ${{ steps.tag-name.outputs.out }} | ||
body: ${{ env.TAG_MSG }} | ||
draft: false | ||
prerelease: false | ||
- name: Create release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ steps.tag-name.outputs.out }} | ||
release_name: ${{ steps.tag-name.outputs.out }} | ||
body: ${{ env.TAG_MSG }} | ||
draft: false | ||
prerelease: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,59 @@ | ||
name: test | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
gtest: | ||
name: gtest | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: Install dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y build-essential cmake libssl-dev openssl | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Run tests | ||
run: ./RunAllTests.sh | ||
working-directory: test/gtest | ||
|
||
- name: Upload test results | ||
if: always() | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: test-results-gtest | ||
path: test/gtest/results.json | ||
if-no-files-found: error | ||
gtest: | ||
name: gtest | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: Install dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y build-essential cmake libssl-dev openssl | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Install GoogleTest | ||
run: | | ||
mkdir build | ||
cd build | ||
cmake .. | ||
sudo make install | ||
working-directory: test/gtest/googletest | ||
|
||
- name: Build | ||
run: | | ||
mkdir build | ||
cd build | ||
cmake .. | ||
make -j4 | ||
working-directory: test/gtest | ||
|
||
- name: Run tests | ||
run: ./RunFilteredTests.sh ${{ matrix.protocol }} ${{ matrix.mode }} ${{ matrix.certType }} | ||
working-directory: test/gtest | ||
|
||
- name: Upload test results | ||
if: always() | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: test-results-gtest_${{ matrix.protocol }}-${{ matrix.mode }}-${{ matrix.certType }} | ||
path: test/gtest/results.json | ||
if-no-files-found: error | ||
|
||
strategy: | ||
matrix: | ||
protocol: ["tcp", "tls"] | ||
mode: ["continuous", "fragmentation", "general"] | ||
certType: ["ec", "rsa"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
cmake_minimum_required(VERSION 3.10) | ||
# For debugging please use the command "cmake -DCMAKE_BUILD_TYPE=Debug .." | ||
|
||
project(TCP_ServerClient)# Not used | ||
cmake_minimum_required(VERSION 3.10) | ||
|
||
add_subdirectory(Server) | ||
add_subdirectory(Client) | ||
project(tcp) # Never used | ||
add_subdirectory(Server) # Compile server library | ||
add_subdirectory(Client) # Compile client library |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.