Browse Source

Add rci as dev dependency and skip impossible tests in CI environment

circle-ci
Andreas Linz 5 years ago
parent
commit
7a7ec3db23
3 changed files with 15 additions and 0 deletions
  1. +3
    -0
      Cargo.toml
  2. +6
    -0
      tests/basic.rs
  3. +6
    -0
      tests/stream.rs

+ 3
- 0
Cargo.toml View File

@ -15,3 +15,6 @@ build = "build.rs"
[build-dependencies]
pkg-config = "0.3.7"
[dev-dependencies]
rci = "0.1.*"

+ 6
- 0
tests/basic.rs View File

@ -1,7 +1,13 @@
extern crate rsoundio;
extern crate rci;
use rci::Ci;
#[test]
fn test_soundio() {
if Ci::new().is_some() {
return
}
let sio = rsoundio::SoundIo::new();
assert!(sio.backend_count() > 0);
assert!(sio.backend(0).is_some());

+ 6
- 0
tests/stream.rs View File

@ -1,10 +1,16 @@
extern crate rsoundio;
extern crate rci;
use rci::Ci;
use std::thread;
use std::time::Duration;
#[test]
fn test_outstream() {
if Ci::new().is_some() {
return
}
let sio = rsoundio::SoundIo::new();
sio.connect_backend(rsoundio::SioBackend::Dummy).unwrap();
let current_backend = sio.current_backend().unwrap();

Loading…
Cancel
Save