about summary refs log tree commit diff
path: root/tests/run-make/rustdoc-search-load-itemtype/rmake.rs
blob: 803eb8a61dad7adc655e2826a7994d2fb4724cf3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
//@ ignore-cross-compile
//@ needs-crate-type: proc-macro

// Test that rustdoc can deserialize a search index with every itemtype.
// https://github.com/rust-lang/rust/pull/146117

use std::path::Path;

use run_make_support::{htmldocck, rfs, rustdoc, source_root};

fn main() {
    let out_dir = Path::new("rustdoc-search-load-itemtype");

    rfs::create_dir_all(&out_dir);
    rustdoc().out_dir(&out_dir).input("foo.rs").run();
    rustdoc().out_dir(&out_dir).input("bar.rs").arg("--crate-type=proc-macro").run();
    rustdoc().out_dir(&out_dir).input("baz.rs").run();
    htmldocck().arg(out_dir).arg("foo.rs").run();
    htmldocck().arg(out_dir).arg("bar.rs").run();
    htmldocck().arg(out_dir).arg("baz.rs").run();
}