Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

add support for QNX 7.1/8.0#548

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
pkleymonov-qnx wants to merge1 commit intoCorvusoft:master
base:master
Choose a base branch
Loading
fromqnx-ports:qnx-4.8

Conversation

pkleymonov-qnx
Copy link

@pkleymonov-qnxpkleymonov-qnx commentedMar 21, 2025
edited
Loading

These changes facilitate porting of Restbed for QNX7.1/8.0.#549
Build files are available athttps://github.com/qnx-ports/build-files/tree/main/ports/restbed

NOTE: QNX ports are only supported from a Linux host operating system

Create a workspace

mkdir -p~/qnx_workspace&&cd~/qnx_workspacegit clone https://github.com/qnx-ports/build-files.git

Clone Restbed repository from tested release version

git clone https://github.com/qnx-ports/restbed.git

Or clone it from original repository

git clone https://github.com/Corvusoft/restbed.git

Update 3rdParty dependencies

cd restbedgit submodule update --init --recursivecd -

Pre-requisite:

Setup a Docker container

# Build the Docker image and create a containercd build-files/docker./docker-build-qnx-image.sh./docker-create-container.sh# Now you are in the Docker container

Or setup Ubuntu host

# source qnxsdp-env.shsource~/qnx800/qnxsdp-env.sh

Compile the port for QNX

cd~/qnx_workspace# Build Restbed and install it in sysroot (QNX SDP)make -C build-files/ports/restbed install JLEVEL=$(nproc)# Or build Restbed and install it in a staging areamake -C build-files/ports/restbed install JLEVEL=$(nproc) INSTALL_ROOT_nto=<PATH_TO_YOUR_STAGING_AREA> USE_INSTALL_ROOT=true

How to run tests

Copy (scp) Restbed tests in to the QNX target.

cd~/qnx_workspace# Build restbed and all testsmake -C build-files/ports/restbed check JLEVEL=$(nproc)# define target IP addressTARGET_HOST=<target-ip-address-or-hostname># remove old test dir on targetssh qnxuser@$TARGET_HOST"rm -rf restbed_tests"# create new test dir on targetssh qnxuser@$TARGET_HOST"mkdir restbed_tests"# copy restbed build tree to your QNX targetscp -r build-files/ports/restbed/nto-aarch64-le/build/* qnxuser@$TARGET_HOST:/data/home/qnxuser/restbed_tests/# orscp -r build-files/ports/restbed/nto-x86_64-o/build/* qnxuser@$TARGET_HOST:/data/home/qnxuser/restbed_tests/

Run tests on the target.

# ssh into the targetssh qnxuser@$TARGET_HOST## Run testscd /data/home/qnxuser/restbed_tests/python ./base_testsuite.py

Tips and triks.

With your spd you can create and run virtual x86_64 TARGET of QNX.

# source qnxsdp-env.shsource~/qnx800/qnxsdp-env.sh# Install on linux host virtual machine like qemu/vxbox/vmware# Create and run virtual target of QNX# qemumkqnximage --type=qemu --arch=x86_64 --clean --run --force --python=yes --data-size=500 --data-inodes=20000# or vmwaremkqnximage --type=vmware --arch=x86_64 --clean --run --force --python=yes --data-size=500 --data-inodes=20000# or virtual boxmkqnximage --type=vbox --arch=x86_64 --clean --run --force --python=yes --data-size=500 --data-inodes=20000

Note: All tests have to return no error.

...======================================================Tests suites summaryfor Restbed 4.8======================================================# test/unit        - ALL:10 PASS:10 FAIL:0 SKIP:0 [0:00:00.115737]# test/feature     - ALL:65 PASS:65 FAIL:0 SKIP:0 [0:00:14.513149]# test/regression  - ALL:31 PASS:31 FAIL:0 SKIP:0 [0:00:08.603444]# test/integration - ALL:10 PASS:10 FAIL:0 SKIP:0 [0:00:00.114280]# TOTAL: 116 [0:00:23.346610]# PASS: 116# FAIL: 0# SKIP: 0======================================================

@pkleymonov-qnxpkleymonov-qnx marked this pull request as ready for reviewApril 3, 2025 11:23
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@ben-crowhurstben-crowhurstben-crowhurst approved these changes

Assignees

@pkleymonov-qnxpkleymonov-qnx

Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@pkleymonov-qnx@ben-crowhurst

[8]ページ先頭

©2009-2025 Movatter.jp