Skip to content

Commit

Permalink
chore: remove comments, and add perm to test.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
devworlds committed Jan 6, 2025
1 parent 636ab78 commit b07f667
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions scripts/workflows/test.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,46 +1,37 @@
#!/bin/bash

# Instala toolchain e componentes
cargo build --manifest-path=benches/Cargo.toml
cargo build --manifest-path=common/Cargo.toml
cargo build --manifest-path=protocols/Cargo.toml
cargo build --manifest-path=roles/Cargo.toml
cargo build --manifest-path=utils/Cargo.toml

# Testes de Integração de Roles
cargo test --manifest-path=roles/Cargo.toml --verbose --test '*' -- --nocapture

# Executa o exemplo de client_and_server
cargo run --manifest-path=examples/sv1-client-and-server/Cargo.toml --bin client_and_server -- 60

# Teste de Interop (somente no Ubuntu)
if [ "$CI_OS" == "ubuntu-latest" ]; then
./run.sh 30
else
echo "Skipping interop-test on $CI_OS - not supported"
fi
cd examples/interop-cpp/ || exit

# Teste de fuzz (somente no Ubuntu)
if [ "$CI_OS" == "ubuntu-latest" ]; then
./run.sh 30
else
echo "Skipping fuzz test on $CI_OS - not supported"
fi
cd utils/buffer/fuzz || exit

# Testes gerais
cargo test --manifest-path=benches/Cargo.toml
cargo test --manifest-path=common/Cargo.toml
cargo test --manifest-path=protocols/Cargo.toml
cargo test --manifest-path=roles/Cargo.toml
cargo test --manifest-path=utils/Cargo.toml

# Testes baseados em propriedades
cargo test --manifest-path=protocols/Cargo.toml --features prop_test

# Executa o exemplo de ping-pong-with-noise
cargo run --manifest-path=examples/ping-pong-with-noise/Cargo.toml --bin ping_pong_with_noise -- 10

# Executa o exemplo de ping-pong-without-noise
cargo run --manifest-path=examples/ping-pong-without-noise/Cargo.toml --bin ping_pong_without_noise -- 10

0 comments on commit b07f667

Please sign in to comment.