Make "cargo miri test" actually run
This commit is contained in:
@@ -4,6 +4,7 @@ use serial_test::serial;
|
||||
// issue #831
|
||||
#[serial]
|
||||
#[test]
|
||||
#[cfg_attr(miri, ignore = "blocked on streams.rs UB")]
|
||||
fn call_0() {
|
||||
load_module_test(
|
||||
"tests-pl/issue831-call0.pl",
|
||||
|
||||
@@ -13,6 +13,7 @@ mod src_tests;
|
||||
/// to re-generate all reference output files run `TRYCMD=overwrite cargo test -- cli_test`
|
||||
/// then check that the changes are as expected e.g. by looking at the `git diff`
|
||||
#[test]
|
||||
#[cfg_attr(miri, ignore = "blocked on crossbeam UB")]
|
||||
fn cli_tests() {
|
||||
trycmd::TestCases::new()
|
||||
.default_bin_name("scryer-prolog")
|
||||
|
||||
@@ -3,30 +3,35 @@ use serial_test::serial;
|
||||
|
||||
#[serial]
|
||||
#[test]
|
||||
#[cfg_attr(miri, ignore = "blocked on streams.rs UB")]
|
||||
fn builtins() {
|
||||
load_module_test("src/tests/builtins.pl", "");
|
||||
}
|
||||
|
||||
#[serial]
|
||||
#[test]
|
||||
#[cfg_attr(miri, ignore = "blocked on streams.rs UB")]
|
||||
fn call_with_inference_limit() {
|
||||
load_module_test("src/tests/call_with_inference_limit.pl", "");
|
||||
}
|
||||
|
||||
#[serial]
|
||||
#[test]
|
||||
#[cfg_attr(miri, ignore = "blocked on streams.rs UB")]
|
||||
fn facts() {
|
||||
load_module_test("src/tests/facts.pl", "");
|
||||
}
|
||||
|
||||
#[serial]
|
||||
#[test]
|
||||
#[cfg_attr(miri, ignore = "blocked on streams.rs UB")]
|
||||
fn hello_world() {
|
||||
load_module_test("src/tests/hello_world.pl", "Hello World!\n");
|
||||
}
|
||||
|
||||
#[serial]
|
||||
#[test]
|
||||
#[cfg_attr(miri, ignore = "blocked on streams.rs UB")]
|
||||
fn syntax_error() {
|
||||
load_module_test(
|
||||
"tests-pl/syntax_error.pl",
|
||||
@@ -36,18 +41,21 @@ fn syntax_error() {
|
||||
|
||||
#[serial]
|
||||
#[test]
|
||||
#[cfg_attr(miri, ignore = "blocked on streams.rs UB")]
|
||||
fn predicates() {
|
||||
load_module_test("src/tests/predicates.pl", "");
|
||||
}
|
||||
|
||||
#[serial]
|
||||
#[test]
|
||||
#[cfg_attr(miri, ignore = "blocked on streams.rs UB")]
|
||||
fn rules() {
|
||||
load_module_test("src/tests/rules.pl", "");
|
||||
}
|
||||
|
||||
#[serial]
|
||||
#[test]
|
||||
#[cfg_attr(miri, ignore = "blocked on streams.rs UB")]
|
||||
fn setup_call_cleanup_load() {
|
||||
load_module_test(
|
||||
"src/tests/setup_call_cleanup.pl",
|
||||
@@ -57,12 +65,14 @@ fn setup_call_cleanup_load() {
|
||||
|
||||
#[serial]
|
||||
#[test]
|
||||
#[cfg_attr(miri, ignore = "blocked on streams.rs UB")]
|
||||
fn clpz_load() {
|
||||
load_module_test("src/tests/clpz/test_clpz.pl", "");
|
||||
}
|
||||
|
||||
#[serial]
|
||||
#[test]
|
||||
#[cfg_attr(miri, ignore = "blocked on streams.rs UB")]
|
||||
fn iso_conformity_tests() {
|
||||
load_module_test("tests-pl/iso-conformity-tests.pl", "All tests passed");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user