forked from wolfSSL/wolfssl
-
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.
clean up trailing whitespace and misplaced CRLFs, add missing final n…
…ewlines, remove stray UTF8 nonprintables (BOMs) and ASCIIfy stray homoglyphs (spaces and apostrophes), guided by expanded coverage in wolfssl-multi-test check-source-text.
- Loading branch information
Showing
194 changed files
with
1,264 additions
and
1,269 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
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
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 |
---|---|---|
|
@@ -79,4 +79,3 @@ jobs: | |
run: | | ||
ldd src/ipmitool | grep wolfssl | ||
ldd src/ipmievd | grep wolfssl | ||
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,98 +1,98 @@ | ||
name: mosquitto Tests | ||
|
||
# START OF COMMON SECTION | ||
on: | ||
push: | ||
branches: [ 'master', 'main', 'release/**' ] | ||
pull_request: | ||
branches: [ '*' ] | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
# END OF COMMON SECTION | ||
|
||
jobs: | ||
build_wolfssl: | ||
name: Build wolfSSL | ||
# Just to keep it the same as the testing target | ||
runs-on: ubuntu-latest | ||
# This should be a safe limit for the tests to run. | ||
timeout-minutes: 4 | ||
steps: | ||
- name: Build wolfSSL | ||
uses: wolfSSL/actions-build-autotools-project@v1 | ||
with: | ||
path: wolfssl | ||
configure: --enable-mosquitto CFLAGS="-DALLOW_INVALID_CERTSIGN" | ||
install: true | ||
|
||
- name: tar build-dir | ||
run: tar -zcf build-dir.tgz build-dir | ||
|
||
- name: Upload built lib | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: wolf-install-mosquitto | ||
path: build-dir.tgz | ||
retention-days: 5 | ||
|
||
mosquitto_check: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
ref: [ 2.0.18 ] | ||
name: ${{ matrix.ref }} | ||
runs-on: ubuntu-latest | ||
# This should be a safe limit for the tests to run. | ||
timeout-minutes: 4 | ||
needs: build_wolfssl | ||
steps: | ||
- name: Download lib | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: wolf-install-mosquitto | ||
|
||
- name: untar build-dir | ||
run: tar -xf build-dir.tgz | ||
|
||
- name: Checkout OSP | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: wolfssl/osp | ||
path: osp | ||
|
||
- name: Install dependencies | ||
run: | | ||
export DEBIAN_FRONTEND=noninteractive | ||
sudo apt-get update | ||
sudo apt-get install -y build-essential libev-dev libssl-dev automake python3-docutils libcunit1 libcunit1-doc libcunit1-dev pkg-config make | ||
sudo pip install --upgrade psutil | ||
- name: Checkout mosquitto | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: eclipse/mosquitto | ||
ref: v${{ matrix.ref }} | ||
path: mosquitto | ||
|
||
- name: Configure and build mosquitto | ||
run: | | ||
cd $GITHUB_WORKSPACE/mosquitto/ | ||
patch -p1 < $GITHUB_WORKSPACE/osp/mosquitto/${{ matrix.ref }}.patch | ||
make WITH_TLS=wolfssl WITH_CJSON=no WITH_DOCS=no WOLFSSLDIR=$GITHUB_WORKSPACE/build-dir | ||
- name: Run mosquitto tests | ||
working-directory: ./mosquitto | ||
run: | | ||
# Retry up to five times | ||
for i in {1..5}; do | ||
TEST_RES=0 | ||
make WITH_TLS=wolfssl WITH_CJSON=no WITH_DOCS=no WOLFSSLDIR=$GITHUB_WORKSPACE/build-dir ptest || TEST_RES=$? | ||
if [ "$TEST_RES" -eq "0" ]; then | ||
break | ||
fi | ||
done | ||
if [ "$TEST_RES" -ne "0" ]; then | ||
exit $TEST_RES | ||
fi | ||
name: mosquitto Tests | ||
|
||
# START OF COMMON SECTION | ||
on: | ||
push: | ||
branches: [ 'master', 'main', 'release/**' ] | ||
pull_request: | ||
branches: [ '*' ] | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
# END OF COMMON SECTION | ||
|
||
jobs: | ||
build_wolfssl: | ||
name: Build wolfSSL | ||
# Just to keep it the same as the testing target | ||
runs-on: ubuntu-latest | ||
# This should be a safe limit for the tests to run. | ||
timeout-minutes: 4 | ||
steps: | ||
- name: Build wolfSSL | ||
uses: wolfSSL/actions-build-autotools-project@v1 | ||
with: | ||
path: wolfssl | ||
configure: --enable-mosquitto CFLAGS="-DALLOW_INVALID_CERTSIGN" | ||
install: true | ||
|
||
- name: tar build-dir | ||
run: tar -zcf build-dir.tgz build-dir | ||
|
||
- name: Upload built lib | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: wolf-install-mosquitto | ||
path: build-dir.tgz | ||
retention-days: 5 | ||
|
||
mosquitto_check: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
ref: [ 2.0.18 ] | ||
name: ${{ matrix.ref }} | ||
runs-on: ubuntu-latest | ||
# This should be a safe limit for the tests to run. | ||
timeout-minutes: 4 | ||
needs: build_wolfssl | ||
steps: | ||
- name: Download lib | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: wolf-install-mosquitto | ||
|
||
- name: untar build-dir | ||
run: tar -xf build-dir.tgz | ||
|
||
- name: Checkout OSP | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: wolfssl/osp | ||
path: osp | ||
|
||
- name: Install dependencies | ||
run: | | ||
export DEBIAN_FRONTEND=noninteractive | ||
sudo apt-get update | ||
sudo apt-get install -y build-essential libev-dev libssl-dev automake python3-docutils libcunit1 libcunit1-doc libcunit1-dev pkg-config make | ||
sudo pip install --upgrade psutil | ||
- name: Checkout mosquitto | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: eclipse/mosquitto | ||
ref: v${{ matrix.ref }} | ||
path: mosquitto | ||
|
||
- name: Configure and build mosquitto | ||
run: | | ||
cd $GITHUB_WORKSPACE/mosquitto/ | ||
patch -p1 < $GITHUB_WORKSPACE/osp/mosquitto/${{ matrix.ref }}.patch | ||
make WITH_TLS=wolfssl WITH_CJSON=no WITH_DOCS=no WOLFSSLDIR=$GITHUB_WORKSPACE/build-dir | ||
- name: Run mosquitto tests | ||
working-directory: ./mosquitto | ||
run: | | ||
# Retry up to five times | ||
for i in {1..5}; do | ||
TEST_RES=0 | ||
make WITH_TLS=wolfssl WITH_CJSON=no WITH_DOCS=no WOLFSSLDIR=$GITHUB_WORKSPACE/build-dir ptest || TEST_RES=$? | ||
if [ "$TEST_RES" -eq "0" ]; then | ||
break | ||
fi | ||
done | ||
if [ "$TEST_RES" -ne "0" ]; then | ||
exit $TEST_RES | ||
fi |
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
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 |
---|---|---|
|
@@ -89,4 +89,3 @@ jobs: | |
./configure --with-wolfssl=$GITHUB_WORKSPACE/build-dir | ||
make -j | ||
make -j check | ||
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.