Skip to content

ci: add Rust integration tests #141

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,18 @@ jobs:
# The Windows CI transforms the `c-library` symlink into a real directory, modifying the Git
# state, so we ignore these changes with `--allow-dirty` here.
run: scripts/verify-publish.sh --allow-dirty

rust_test:
name: Run Rust integration tests
runs-on: ubuntu-latest
defaults:
run:
working-directory: rust/integration-tests
shell: bash
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
submodules: recursive
- uses: abrown/install-vtune-action@v1
- name: Run integration tests
run: cargo test
2 changes: 0 additions & 2 deletions rust/integration-tests/tests/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ fn run_with_collector() {
"-collect",
"hotspots",
result_dir_flag,
"-knob",
"sampling-mode=hw",
"cargo",
"run",
]);
Expand Down
8 changes: 0 additions & 8 deletions rust/ittapi-sys/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,3 @@ include!("windows/jitprofiling_bindings.rs");
include!("freebsd/jitprofiling_bindings.rs");
#[cfg(target_os = "openbsd")]
include!("openbsd/jitprofiling_bindings.rs");

// #[link(name = "ittnotify", kind = "static")]
// extern "C" {
// #[link_name = "__itt_domain_create_init_3_0"]
// pub fn __itt_domain_create_init_3_0(name: *const std::os::raw::c_char) -> *mut __itt_domain;
// // #[link_name = "__itt_domain_create_init_3_0"]
// // pub fn __itt_domain_create(name: *const std::os::raw::c_char) -> *mut __itt_domain;
// }