From 02eb93d5d2b0c59a31fd9dad436d5ef16b72e5fe Mon Sep 17 00:00:00 2001 From: Sean Bowe Date: Fri, 25 Dec 2015 00:37:52 -0700 Subject: [PATCH] Test the right things --- .travis.yml | 4 +++- Cargo.toml | 14 +++++++------- src/main.rs | 6 ++++-- tinysnark/src/lib.rs | 3 ++- 4 files changed, 16 insertions(+), 11 deletions(-) diff --git a/.travis.yml b/.travis.yml index 607277f..f7975ee 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,4 +16,6 @@ addons: - libgmp-dev script: - - cargo run --release \ No newline at end of file + - cd tinysnark && cargo test + - cargo run --release + - cargo test \ No newline at end of file diff --git a/Cargo.toml b/Cargo.toml index 8bc53bb..19bb13c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,13 +1,13 @@ [package] -name = "bellman" -version = "0.0.1" authors = ["Sean Bowe "] -homepage = "https://github.com/ebfull/bellman" -repository = "https://github.com/ebfull/bellman" -documentation = "https://github.com/ebfull/bellman" -license = "MIT" description = "zk-SNARK library" +documentation = "https://github.com/ebfull/bellman" +homepage = "https://github.com/ebfull/bellman" +license = "MIT" +name = "bellman" +repository = "https://github.com/ebfull/bellman" +version = "0.0.1" [dependencies.tinysnark] path = "tinysnark" -version = "0.0.1" \ No newline at end of file +version = "0.0.1" diff --git a/src/main.rs b/src/main.rs index 6b95114..9447469 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,5 +1,7 @@ extern crate tinysnark; fn main() { - tinysnark::test(); -} \ No newline at end of file + tinysnark::init(); + + tinysnark::test(); +} diff --git a/tinysnark/src/lib.rs b/tinysnark/src/lib.rs index 6d87cbd..105d2ac 100644 --- a/tinysnark/src/lib.rs +++ b/tinysnark/src/lib.rs @@ -1,4 +1,5 @@ -#![feature(box_syntax, test)] +#![feature(box_syntax)] +#![cfg_attr(test, feature(test))] extern crate libc; mod arith;