]>
git.proxmox.com Git - rustc.git/blob - src/vendor/cc/tests/cc_env.rs
17 let test
= Test
::gnu();
20 env
::set_var("CC", "ccache lol-this-is-not-a-compiler foo");
21 test
.gcc().file("foo.c").compile("libfoo.a");
24 .must_have("lol-this-is-not-a-compiler foo")
26 .must_not_have("ccache");
30 let test
= Test
::gnu();
33 env
::set_var("CC", "ccache lol-this-is-not-a-compiler foo");
34 test
.gcc().file("foo.c").compile("libfoo.a");
35 test
.cmd(0).must_have("lol-this-is-not-a-compiler foo");
39 let test
= Test
::gnu();
42 env
::set_var("CC", "distcc lol-this-is-not-a-compiler foo");
43 test
.gcc().file("foo.c").compile("libfoo.a");
46 .must_have("lol-this-is-not-a-compiler foo")
48 .must_not_have("distcc");