1
0
Fork 0

Remove test-gadget from submission

This commit is contained in:
Vili Sinervä 2025-02-26 17:00:13 +02:00
parent c09657e5c6
commit b0154657d4
No known key found for this signature in database
GPG key ID: DF8FEAF54EFAC996
8 changed files with 0 additions and 36 deletions

View file

@ -1 +0,0 @@
c7cf8994-380d-40c9-b8b9-be52ae7e92e7

View file

@ -1,3 +0,0 @@
{
"server_base_url": "https://test-gadget.compilers.how"
}

View file

@ -1 +0,0 @@
3dd0c210-4c98-49fc-aa2f-187425635164

View file

@ -1,31 +0,0 @@
#!/usr/bin/env python3
# Runs the correct test-gadget client program in .test-gadget/test-gadget-client-$PLATFORM
import os
import platform
import sys
from pathlib import Path
def get_platform_binary() -> str:
system = platform.system().lower()
if system == "darwin":
return "test-gadget-client-macos"
elif system == "windows":
return "test-gadget-client-windows.exe"
elif system == "linux":
return "test-gadget-client-linux"
else:
print(f"Unsupported platform: {system}", file=sys.stderr)
sys.exit(1)
script_dir = Path(__file__).parent
dist_dir = script_dir / ".test-gadget"
binary = dist_dir / get_platform_binary()
if not binary.exists():
print(f"Program not found: {binary}", file=sys.stderr)
sys.exit(1)
os.execv(str(binary), [str(binary)] + sys.argv[1:])