Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,15 @@ jobs:

- name: Run tests
run: cargo test --verbose

test-linux-ipv4:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build
run: docker build -t sacn-tests -f docker-linux/Dockerfile .
- name: Run tests
run: docker run --cap-add=NET_ADMIN sacn-tests

test-windows:
runs-on: windows-latest
Expand Down
3 changes: 1 addition & 2 deletions docker-linux/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,4 @@ RUN chmod +x run_tests.sh
# RUN cargo test

# default command runs your multicast suite; tweak if needed
CMD ["./run_tests.sh"]

CMD ["./run_tests.sh"]
2 changes: 1 addition & 1 deletion docker-linux/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ ip a show dev lo
# sysctl -p

cargo test
cargo test ipv4 -- --ignored --nocapture
cargo test --test ipv4_tests -- --ignored --nocapture --test-threads=1
1 change: 0 additions & 1 deletion tests/ipv4_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ use socket2::{Socket, Domain, Type};
/// For some tests to work multiple instances of the protocol must be on the same network with the same port for example to test multiple simultaneous receivers, this means multiple IP's are needed.
/// This is achieved by assigning multiple static IP's to the test machine and theses IP's are specified below.
/// Theses must be changed depending on the network that the test machine is on.
// pub const TEST_NETWORK_INTERFACE_IPV4: [&'static str; 3] = ["192.168.0.6", "192.168.0.7", "192.168.0.8"];
pub const TEST_NETWORK_INTERFACE_IPV4: [&'static str; 3] = ["192.168.0.6", "192.168.0.7", "192.168.0.8"];


Expand Down