-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Checkout test suite repositories without git-submodules
git-submodule was good for us to manage the dependencies without hassle, but it adds quite a few overheads to fetch this package as a SwiftPM package dependency. This commit removes the git-submodules and adds a Makefile to fetch the test suite repositories manually.
- Loading branch information
1 parent
17b9a64
commit 7df4706
Showing
10 changed files
with
79 additions
and
19 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
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,2 @@ | ||
/wasi-testsuite | ||
/testsuite |
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,40 @@ | ||
#!/usr/bin/env python3 | ||
# | ||
# This script checks out a dependency from a git repository. | ||
# | ||
# Usage: | ||
# checkout-dependency <dependency-name> | ||
|
||
import os | ||
import sys | ||
import json | ||
import subprocess | ||
|
||
|
||
def main(): | ||
if len(sys.argv) != 2: | ||
print("Usage: checkout-dependency <dependency-name>") | ||
sys.exit(1) | ||
|
||
dependency_name = sys.argv[1] | ||
dependencies_file = os.path.join(os.path.dirname(__file__), "dependencies.json") | ||
dependencies = json.load(open(dependencies_file)) | ||
dependency = dependencies.get(dependency_name) | ||
|
||
if dependency is None: | ||
print(f"Dependency '{dependency_name}' not found in {dependencies_file}") | ||
print(f"Available dependencies: {', '.join(dependencies.keys())}") | ||
sys.exit(1) | ||
|
||
dependency_path = os.path.join(os.path.dirname(__file__), dependency_name) | ||
if os.path.exists(dependency_path): | ||
print(f"Dependency '{dependency_name}' already exists at {dependency_path}") | ||
sys.exit(0) | ||
|
||
print(f"Checking out '{dependency_name}' to {dependency_path}") | ||
subprocess.run(["git", "clone", dependency["repository"], dependency_path], check=True) | ||
subprocess.run(["git", "-C", dependency_path, "checkout", dependency["revision"]], check=True) | ||
|
||
|
||
if __name__ == "__main__": | ||
main() |
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,10 @@ | ||
{ | ||
"testsuite": { | ||
"repository": "https://github.com/WebAssembly/testsuite.git", | ||
"revision": "7ef86ddeed81458f9031a49a40b3a3f99c1c6a8a" | ||
}, | ||
"wasi-testsuite": { | ||
"repository": "https://github.com/WebAssembly/wasi-testsuite.git", | ||
"revision": "c9c751586fd86b321d595bbef13f2c7403cfdbc5" | ||
} | ||
} |
Submodule testsuite
deleted from
7ef86d
Submodule wasi-testsuite
deleted from
c9c751