Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document CI integration and testsuite Docker usage #125

Open
ioquatix opened this issue Feb 3, 2023 · 3 comments
Open

Document CI integration and testsuite Docker usage #125

ioquatix opened this issue Feb 3, 2023 · 3 comments

Comments

@ioquatix
Copy link

ioquatix commented Feb 3, 2023

It would be good to have instructions about how to use this with GitHub Actions.

@ioquatix
Copy link
Author

ioquatix commented Feb 3, 2023

I could not get the instructions to work without explicitly specifying the spec file:

docker run -it --rm -v "$(pwd)/config:/config" -v "$(pwd)/reports:/reports" -p 9001 --name wstest crossbario/autobahn-testsuite wstest -m fuzzingclient -s /config/fuzzingclient.json

Even thought config/fuzzingclient.json exists, without -s /config/fuzzingclient.json it won't load it.

@oberstet
Copy link
Contributor

oberstet commented Feb 4, 2023

for non-Dockerized CI, you might have a look at:

https://github.com/crossbario/autobahn-python/blob/master/wstest/Makefile
https://github.com/crossbario/autobahn-python/blob/master/.github/workflows/wstest.yml

the testees are run non-Dockerized, but the testsuite is Dockerized:

https://github.com/crossbario/autobahn-python/blob/49c41440e16528ee6ab267df0f9989fb1ed81f7c/wstest/Makefile#L131

@ioquatix
Copy link
Author

ioquatix commented Feb 4, 2023

I figured out how to do it:

Here is the actions file: https://github.com/socketry/protocol-websocket/blob/main/.github/workflows/autobahn-server-tests.yaml

Here is the executable that runs docker and the tests:

https://github.com/socketry/protocol-websocket/blob/58f0d15c6c5b44d224fd7a6eb237ce331bd8a587/autobahn-tests/autobahn-server-tests.rb

@ioquatix ioquatix closed this as completed Feb 4, 2023
@oberstet oberstet changed the title Documentation about how to use with GitHub Actions Document CI integration and testsuite Docker usage Feb 4, 2023
@oberstet oberstet reopened this Feb 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants