From d7865cd884aaee24a7b41f8d52b9990d2cae41bb Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Mon, 4 Nov 2013 09:09:11 -0800 Subject: [PATCH] Switch over to rustpkg test Range and json tests have to be completely ignored for now :( --- .travis.yml | 3 +-- test.rs | 11 +++++------ 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index c5b48654..d70e9207 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,5 +6,4 @@ install: before_script: - ./travis/setup.sh script: - - rustc --test --cfg travis test.rs - - ./test + - rustpkg test diff --git a/test.rs b/test.rs index 02c4215c..f5738ce2 100644 --- a/test.rs +++ b/test.rs @@ -6,7 +6,6 @@ use extra::comm::DuplexStream; use extra::future::Future; use extra::time; use extra::time::Timespec; -#[cfg(not(travis))] // Travis uses Postgres 9.1 use extra::json; use extra::uuid::Uuid; use std::f32; @@ -311,7 +310,7 @@ fn test_bytea_params() { } #[test] -#[cfg(not(travis))] // Travis runs Postgres 9.1 +#[ignore] fn test_json_params() { test_type("JSON", [(Some(json::from_str("[10, 11, 12]").unwrap()), "'[10, 11, 12]'"), @@ -381,13 +380,13 @@ macro_rules! test_range( ) #[test] -#[cfg(not(travis))] +#[ignore] fn test_int4range_params() { test_range!("INT4RANGE", i32, 100i32, "100", 200i32, "200") } #[test] -#[cfg(not(travis))] +#[ignore] fn test_int8range_params() { test_range!("INT8RANGE", i64, 100i64, "100", 200i64, "200") } @@ -402,13 +401,13 @@ fn test_timespec_range_params(sql_type: &str) { } #[test] -#[cfg(not(travis))] +#[ignore] fn test_tsrange_params() { test_timespec_range_params("TSRANGE"); } #[test] -#[cfg(not(travis))] +#[ignore] fn test_tstzrange_params() { test_timespec_range_params("TSTZRANGE"); }