File: cli.rs

package info (click to toggle)
python-maturin 1.9.4-4
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 4,424 kB
  • sloc: python: 656; javascript: 93; sh: 55; makefile: 10
file content (29 lines) | stat: -rw-r--r-- 665 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#[test]
fn cli_tests() {
    let t = trycmd::TestCases::new();
    t.default_bin_name("maturin");
    t.case("tests/cmd/*.toml");

    #[cfg(not(feature = "upload"))]
    {
        t.skip("tests/cmd/upload.toml");
        t.skip("tests/cmd/publish.toml");
    }

    #[cfg(not(feature = "zig"))]
    {
        t.skip("tests/cmd/build.toml");
    }

    #[cfg(not(feature = "scaffolding"))]
    {
        t.skip("tests/cmd/new.toml");
        t.skip("tests/cmd/init.toml");
        t.skip("tests/cmd/generate-ci.toml");
    }

    #[cfg(not(all(feature = "upload", feature = "zig", feature = "scaffolding")))]
    {
        t.skip("tests/cmd/maturin.toml");
    }
}