Skip to content

Commit

Permalink
Merge pull request #207 from c410-f3r/misc
Browse files Browse the repository at this point in the history
Add support for gRPC
  • Loading branch information
c410-f3r authored Aug 19, 2024
2 parents 0ae3783 + 435186c commit a211f68
Show file tree
Hide file tree
Showing 212 changed files with 2,480 additions and 2,231 deletions.
4 changes: 2 additions & 2 deletions .scripts/autobahn-fuzzingclient.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ if [ "$ARG" != "ci" ]; then
trap "trap - SIGTERM && kill -- -$$" SIGINT SIGTERM EXIT
fi;

cargo build --bin autobahn-server --features flate2,optimization,pool,tokio,web-socket-handshake --release
cargo run --bin autobahn-server --features flate2,optimization,pool,tokio,web-socket-handshake --release & cargo_pid=$!
cargo build --example autobahn-server --features flate2,optimization,pool,tokio,web-socket-handshake --release
cargo run --example autobahn-server --features flate2,optimization,pool,tokio,web-socket-handshake --release & cargo_pid=$!
sleep 1
mkdir -p .scripts/autobahn/reports/fuzzingclient
podman run \
Expand Down
4 changes: 2 additions & 2 deletions .scripts/autobahn-fuzzingserver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ if [ "$ARG" != "ci" ]; then
trap "trap - SIGTERM && kill -- -$$" SIGINT SIGTERM EXIT
fi;

cargo build --bin autobahn-client --features flate2,optimization,tokio,web-socket-handshake --release
cargo build --example autobahn-client --features flate2,optimization,tokio,web-socket-handshake --release
mkdir -p .scripts/autobahn/reports/fuzzingserver
podman run \
-d \
Expand All @@ -16,7 +16,7 @@ podman run \
--net=host \
docker.io/crossbario/autobahn-testsuite:0.8.2 wstest -m fuzzingserver -s fuzzingserver.json
sleep 5
cargo run --bin autobahn-client --features flate2,optimization,tokio,web-socket-handshake --release
cargo run --example autobahn-client --features flate2,optimization,tokio,web-socket-handshake --release
podman rm --force --ignore fuzzingserver

if [ $(grep -ci "failed" .scripts/autobahn/reports/fuzzingserver/index.json) -gt 0 ]
Expand Down
10 changes: 7 additions & 3 deletions .scripts/h2spec.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ if [ "$ARG" != "ci" ]; then
trap "trap - SIGTERM && kill -- -$$" SIGINT SIGTERM EXIT
fi;

cargo build --bin h2spec-server --features="http2,tokio"
cargo run --bin h2spec-server --features="http2,tokio" &> /tmp/h2spec-server.txt & cargo_pid=$!
cargo build --example h2spec-server --features="http2,tokio" --release
cargo run --example h2spec-server --features="http2,tokio" --release &> /tmp/h2spec-server.txt & cargo_pid=$!
sleep 1
touch /tmp/h2spec-server.xml

Expand All @@ -17,7 +17,11 @@ podman run \
--rm \
docker.io/summerwind/h2spec:2.6.0 h2spec -j "/tmp/h2spec-server.xml" --max-header-length 800 -p 9000 -v \
generic/1 \
generic/2 \
generic/2/1 \
generic/2/2 \
generic/2/3 \
`#generic/2/4 - Streams are immediately forgotten when closed` \
generic/2/5 \
generic/3.1 \
generic/3.2/1 \
generic/3.2/2 \
Expand Down
2 changes: 0 additions & 2 deletions .scripts/integration-tests.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#!/usr/bin/env bash

. "$(dirname "$0")/common.sh" --source-only

export DATABASE_URI='postgres://wtx_scram:wtx@localhost:5432/wtx'

cargo test --all-features --release -- --test-threads=1
Expand Down
12 changes: 5 additions & 7 deletions .scripts/internal-tests-0.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
. "$(dirname "$0")/common.sh" --source-only

$rt rustfmt
$rt clippy
$rt clippy -Aclippy::unneeded_field_pattern,-Aclippy::enum_variant_names,-Aclippy::else_if_without_else

cargo miri test -p wtx

Expand All @@ -19,21 +19,23 @@ $rt test-with-features wtx chrono
$rt test-with-features wtx cl-aux
$rt test-with-features wtx client-api-framework
$rt test-with-features wtx crypto-common
$rt test-with-features wtx data-transformation
$rt test-with-features wtx database
$rt test-with-features wtx digest
$rt test-with-features wtx fastrand
$rt test-with-features wtx flate2
$rt test-with-features wtx grpc
$rt test-with-features wtx hashbrown
$rt test-with-features wtx hmac
$rt test-with-features wtx http2
$rt test-with-features wtx http-client-framework
$rt test-with-features wtx http-server-framework
$rt test-with-features wtx http2
$rt test-with-features wtx httparse
$rt test-with-features wtx memchr
$rt test-with-features wtx pool
$rt test-with-features wtx postgres
$rt test-with-features wtx proptest
$rt test-with-features wtx protobuf
$rt test-with-features wtx quick-protobuf
$rt test-with-features wtx rand
$rt test-with-features wtx ring
$rt test-with-features wtx rkyv,_hack
Expand All @@ -44,7 +46,6 @@ $rt test-with-features wtx serde
$rt test-with-features wtx serde_json
$rt test-with-features wtx sha1
$rt test-with-features wtx sha2
$rt test-with-features wtx simd-json
$rt test-with-features wtx simdutf8
$rt test-with-features wtx std
$rt test-with-features wtx test-strategy
Expand All @@ -59,7 +60,6 @@ $rt test-with-features wtx x509-certificate
$rt check-with-features wtx _bench
$rt check-with-features wtx _hack
$rt check-with-features wtx _integration-tests
$rt check-with-features wtx _tokio-rustls-client
$rt check-with-features wtx _tracing-tree
$rt test-with-features wtx _proptest

Expand All @@ -75,5 +75,3 @@ $rt test-with-features wtx-ui schema-manager
$rt test-with-features wtx-ui schema-manager-dev
$rt test-with-features wtx-ui http-client
$rt test-with-features wtx-ui web-socket

cargo check --all-features --all-targets
4 changes: 3 additions & 1 deletion .scripts/internal-tests-1.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/usr/bin/env bash

. "$(dirname "$0")/common.sh" --source-only
# WTX

cargo check --all-features --all-targets

# WTX Docs

Expand Down
Loading

0 comments on commit a211f68

Please sign in to comment.