Skip to content

Commit c080bdb

Browse files
committed
all tests passed
1 parent 81c4f14 commit c080bdb

File tree

4 files changed

+12
-16
lines changed

4 files changed

+12
-16
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,11 @@ env:
1111

1212
jobs:
1313
build:
14-
1514
runs-on: ubuntu-latest
16-
1715
steps:
1816
- uses: actions/checkout@v5
1917
- run: sudo apt-get install -y protobuf-compiler clang nasm pkg-config
20-
- name: Build
21-
run: cargo build --verbose
2218
- name: Run tests
23-
run: cargo test --verbose
19+
run: make test-all
2420
- name: Run simulation tests
25-
run: cargo test -p pulsebeam-simulator
21+
run: make test-sim

Cargo.toml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,3 @@ members = [
6060
"pulsebeam-runtime",
6161
"pulsebeam-simulator",
6262
]
63-
64-
# default-members = [
65-
# "pulsebeam",
66-
# "pulsebeam-agent",
67-
# "pulsebeam-cli",
68-
# "pulsebeam-runtime",
69-
# ]

Makefile

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,19 @@ dev:
2121
$(CARGO_CMD) run -p pulsebeam -- --dev
2222

2323
build:
24-
$(CARGO_CMD) build --profile profiling -p pulsebeam
24+
$(CARGO_CMD) build
2525

2626
release:
2727
$(CARGO_CMD) build --verbose --release -p pulsebeam
2828

29-
profile: build
29+
profile:
30+
$(CARGO_CMD) build --profile profiling -p pulsebeam
31+
32+
test-all:
33+
cargo test --workspace --exclude pulsebeam-simulator
34+
35+
test-sim:
36+
cargo test -p pulsebeam-simulator
3037

3138
flamegraph: profile
3239
taskset -c 2-5 $(CARGO_CMD) flamegraph --profile profiling -p pulsebeam --bin pulsebeam

pulsebeam-runtime/src/net/tcp.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ fn handle_new_connection(
317317
});
318318
}
319319

320-
#[cfg(test)]
320+
#[cfg(all(test, not(feature = "sim")))]
321321
mod tests {
322322
use super::*;
323323
use std::time::Duration;

0 commit comments

Comments
 (0)