diff options
author | Daniel Mueller <deso@posteo.net> | 2018-01-15 09:45:36 -0800 |
---|---|---|
committer | Daniel Mueller <deso@posteo.net> | 2018-01-15 09:45:36 -0800 |
commit | 8fd0d6485b500ccead7990858b76c034c4c76faf (patch) | |
tree | 15f65b01ca8e08408f2670dd406c67d22af4031e /gcc/tests/cc_env.rs | |
parent | f3149d7f2802711791c490b71313aafc55f4809c (diff) | |
download | nitrocli-8fd0d6485b500ccead7990858b76c034c4c76faf.tar.gz nitrocli-8fd0d6485b500ccead7990858b76c034c4c76faf.tar.bz2 |
Delete subrepo gcc/:gcc
Diffstat (limited to 'gcc/tests/cc_env.rs')
-rw-r--r-- | gcc/tests/cc_env.rs | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/gcc/tests/cc_env.rs b/gcc/tests/cc_env.rs deleted file mode 100644 index 559dbe8..0000000 --- a/gcc/tests/cc_env.rs +++ /dev/null @@ -1,49 +0,0 @@ -extern crate tempdir; -extern crate gcc; - -use std::env; - -mod support; -use support::Test; - -#[test] -fn main() { - ccache(); - distcc(); - ccache_spaces(); -} - -fn ccache() { - let test = Test::gnu(); - test.shim("ccache"); - - env::set_var("CC", "ccache lol-this-is-not-a-compiler foo"); - test.gcc().file("foo.c").compile("libfoo.a"); - - test.cmd(0) - .must_have("lol-this-is-not-a-compiler foo") - .must_have("foo.c") - .must_not_have("ccache"); -} - -fn ccache_spaces() { - let test = Test::gnu(); - test.shim("ccache"); - - env::set_var("CC", "ccache lol-this-is-not-a-compiler foo"); - test.gcc().file("foo.c").compile("libfoo.a"); - test.cmd(0).must_have("lol-this-is-not-a-compiler foo"); -} - -fn distcc() { - let test = Test::gnu(); - test.shim("distcc"); - - env::set_var("CC", "distcc lol-this-is-not-a-compiler foo"); - test.gcc().file("foo.c").compile("libfoo.a"); - - test.cmd(0) - .must_have("lol-this-is-not-a-compiler foo") - .must_have("foo.c") - .must_not_have("distcc"); -} |