forked from WebAssembly/wasi-testsuite
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cf. WebAssembly#29
- Loading branch information
Showing
9 changed files
with
98 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"WASI C tests": { | ||
"stat-dev-ino": "d_ino is known broken in this combination of engine and wasi-sdk version." | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
from typing import Tuple, Any | ||
from abc import ABC | ||
from abc import abstractmethod | ||
|
||
import json | ||
|
||
|
||
class TestFilter(ABC): | ||
@abstractmethod | ||
def should_skip(self, test_suite_name: str, test_name: str) -> Tuple[bool, Any]: | ||
pass | ||
|
||
|
||
class JSONTestFilter(TestFilter): | ||
def __init__(self, filename: str) -> None: | ||
with open(filename, encoding="utf-8") as file: | ||
self.filter_dict = json.load(file) | ||
|
||
def should_skip(self, test_suite_name: str, test_name: str) -> Tuple[bool, Any]: | ||
test_suite_filter = self.filter_dict.get(test_suite_name) | ||
if test_suite_filter is None: | ||
return False, None | ||
why = test_suite_filter.get(test_name) | ||
return why is not None, why |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters