File tree Expand file tree Collapse file tree 2 files changed +15
-10
lines changed Expand file tree Collapse file tree 2 files changed +15
-10
lines changed Original file line number Diff line number Diff line change @@ -32,21 +32,26 @@ pub mod limits {
32
32
/// of the wasmtime repository.
33
33
pub fn find_tests ( root : & Path ) -> Result < Vec < WastTest > > {
34
34
let mut tests = Vec :: new ( ) ;
35
+
36
+ let spec_tests = root. join ( "tests/spec_testsuite" ) ;
35
37
add_tests (
36
38
& mut tests,
37
- & root . join ( "tests/spec_testsuite" ) ,
39
+ & spec_tests ,
38
40
& FindConfig :: Infer ( spec_test_config) ,
39
- ) ?;
40
- add_tests (
41
- & mut tests,
42
- & root. join ( "tests/misc_testsuite" ) ,
43
- & FindConfig :: InTest ,
44
- ) ?;
41
+ )
42
+ . with_context ( || format ! ( "failed to add tests from `{}`" , spec_tests. display( ) ) ) ?;
43
+
44
+ let misc_tests = root. join ( "tests/misc_testsuite" ) ;
45
+ add_tests ( & mut tests, & misc_tests, & FindConfig :: InTest )
46
+ . with_context ( || format ! ( "failed to add tests from `{}`" , misc_tests. display( ) ) ) ?;
47
+
48
+ let cm_tests = root. join ( "tests/component-model/test" ) ;
45
49
add_tests (
46
50
& mut tests,
47
- & root . join ( "tests/component-model/test" ) ,
51
+ & cm_tests ,
48
52
& FindConfig :: Infer ( component_test_config) ,
49
- ) ?;
53
+ )
54
+ . with_context ( || format ! ( "failed to add tests from `{}`" , cm_tests. display( ) ) ) ?;
50
55
Ok ( tests)
51
56
}
52
57
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ fn main() {
11
11
let tests = if cfg ! ( miri) {
12
12
Vec :: new ( )
13
13
} else {
14
- wasmtime_test_util:: wast:: find_tests ( "." . as_ref ( ) ) . unwrap ( )
14
+ wasmtime_test_util:: wast:: find_tests ( env ! ( "CARGO_MANIFEST_DIR" ) . as_ref ( ) ) . unwrap ( )
15
15
} ;
16
16
17
17
let mut trials = Vec :: new ( ) ;
You can’t perform that action at this time.
0 commit comments