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
8 changed files
with
86 additions
and
4 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
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) as fp: | ||
self.filter_dict = json.load(fp) | ||
|
||
def should_skip(self, test_suite_name: str, test_name: str) -> Tuple[bool, Any]: | ||
d = self.filter_dict.get(test_suite_name) | ||
if d is None: | ||
return False, None | ||
why = d.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