Skip to content

Commit

Permalink
Run tests on every target
Browse files Browse the repository at this point in the history
  • Loading branch information
cyqsimon committed Dec 10, 2023
1 parent 0231a50 commit 8c27450
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ jobs:
- target: aarch64-pc-windows-msvc
os: windows-latest
ext: .exe
skip-test: true

- target: x86_64-unknown-linux-gnu
os: ubuntu-latest
Expand Down Expand Up @@ -80,7 +79,6 @@ jobs:
rustup toolchain install stable nightly --profile minimal -t ${{ matrix.target }}
- name: Test on stable
if: ${{ ! matrix.skip-test }}
run: |
${{ env.CARGO }} +stable test --target ${{ matrix.target }} $EXTRA_CARGO_FLAGS
Expand Down
12 changes: 0 additions & 12 deletions tests/ui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,8 @@ mod utils;

use std::{io, path::Path, process::Output};

#[cfg(not(windows))]
use insta::assert_display_snapshot as ui;

// Don't run these on Windows
#[cfg(windows)]
use self::ignore as ui;
use crate::utils::run_in;

fn testdir() -> io::Result<(tempfile::TempDir, &'static Path)> {
Expand Down Expand Up @@ -114,11 +110,3 @@ fn ui_test_usage_help_flag() {
ui!(output_to_string(ouch!("--help")));
ui!(output_to_string(ouch!("-h")));
}

#[allow(unused)]
#[macro_export]
macro_rules! ignore {
($expr:expr) => {{
$expr
}};
}

0 comments on commit 8c27450

Please sign in to comment.