Skip to content

Commit c709ccf

Browse files
committed
Fix workflow test errors
1 parent 79c2e8e commit c709ccf

4 files changed

Lines changed: 10 additions & 12 deletions

File tree

.github/workflows/rust.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,11 @@ jobs:
1818
- uses: actions/checkout@v4
1919
- name: Install Boost
2020
run: sudo apt-get install -y libboost-all-dev
21-
- name: Get submodules
21+
- name: Get submodules
2222
run: git submodule init && git submodule update
2323
- name: Build
24-
run: cargo build --verbose --features all_queues
25-
- name: Run queue tests
26-
run: cargo test --verbose --features all_queues
24+
run: cargo build --verbose --workspace --exclude bbq
25+
- name: Run tests
26+
run: cargo test --verbose --workspace --exclude bbq
2727
- name: Run nightly queues
28-
run: cargo +nightly test --verbose -F nightly_queues
29-
- name: Run benchmarking suite tests
30-
run: cargo test --verbose --features tests_benchmark
28+
run: cargo +nightly test --verbose -p bbq

benchmark_core/src/benchmarks.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ pub fn print_info(queue: String, bench_conf: &BenchConfig) -> Result<(), std::io
243243

244244
#[cfg(test)]
245245
mod tests {
246-
use crate::arguments::EnqDeqArgs;
246+
use crate::arguments::{EnqDeqArgs, EnqDeqPairsArgs};
247247
use crate::benchmarks::enq_deq_pairs::benchmark_enq_deq_pairs;
248248
use crate::benchmarks::{
249249
prod_con::benchmark_prod_con,
@@ -380,7 +380,7 @@ mod tests {
380380
#[test]
381381
fn run_enqdeq_pairs_with_struct() {
382382
let args = Args {
383-
benchmark: Benchmarks::EnqDeq(EnqDeqArgs { thread_count: 10, spread: 0.5 }),
383+
benchmark: Benchmarks::EnqDeqPairs(EnqDeqPairsArgs { thread_count: 10 }),
384384
..Default::default()
385385
};
386386
let bench_conf = BenchConfig {
@@ -389,7 +389,7 @@ mod tests {
389389
benchmark_id: "test2".to_string(),
390390
output_filename: "".to_string()
391391
};
392-
let queue = TestQueue::<Args>::new(0);
392+
let queue = TestQueue::<usize>::new(0);
393393
if benchmark_enq_deq_pairs(queue, &bench_conf).is_err() {
394394
panic!();
395395
}

queues/tz_queue_hp/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ fn main() {
1010
}
1111
log::info!("Starting benchmark");
1212

13-
match benchmark_core::benchmark_target_queue::<tsigas_zhang_queue_hp::TZQueue<usize>>("tsigas_zhang_queue_hp") {
13+
match benchmark_core::benchmark_target_queue::<tz_queue_hp::TZQueue<usize>>("tz_queue_hp") {
1414
Ok(_) => println!("Benchmark done."),
1515
Err(e) => {
1616
eprintln!("Benchmark received error: {}", e);

queues/tz_queue_leak/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ fn main() {
1010
}
1111
log::info!("Starting benchmark");
1212

13-
match benchmark_core::benchmark_target_queue::<tsigas_zhang_queue_leak::TZQueue<usize>>("tsigas_zhang_queue_leak") {
13+
match benchmark_core::benchmark_target_queue::<tz_queue_leak::TZQueue<usize>>("tz_queue_leak") {
1414
Ok(_) => println!("Benchmark done."),
1515
Err(e) => {
1616
eprintln!("Benchmark received error: {}", e);

0 commit comments

Comments
 (0)