diff options
author | Benjamin Chausse <benjamin@chausse.xyz> | 2023-11-03 11:58:10 -0400 |
---|---|---|
committer | Benjamin Chausse <benjamin@chausse.xyz> | 2023-11-03 11:58:10 -0400 |
commit | 87e4894a34d4994d46840ba7267d1540cc7a0f0f (patch) | |
tree | bd5a17a909503187348c8a6e2eebf0fe0dd968ba | |
parent | 4d231bc0e42fa7632419a20d4aa3ecbd785319f2 (diff) |
Test windows changes
-rw-r--r-- | benchmarking/test-suite/README.md | 7 | ||||
-rwxr-xr-x | benchmarking/test-suite/testsweet.py | 6 |
2 files changed, 8 insertions, 5 deletions
diff --git a/benchmarking/test-suite/README.md b/benchmarking/test-suite/README.md index abb49fe..f6d9b90 100644 --- a/benchmarking/test-suite/README.md +++ b/benchmarking/test-suite/README.md @@ -20,7 +20,7 @@ python -m venv . # Activation de l'environnement source bin/activate # Installation des packages -pip install requirements.txt +pip install -r requirements.txt ``` **Sur Windows**: @@ -29,8 +29,9 @@ pip install requirements.txt # Création de l'environnement virtuel python -m venv . # Activation de l'environnement -source .\Scripts\activate.bat -pip install requirements.txt requirements_win.txt +.\Scripts\activate.bat +pip install -r requirements.txt +pip install -r requirements_win.txt ``` ## Utilisation du script diff --git a/benchmarking/test-suite/testsweet.py b/benchmarking/test-suite/testsweet.py index 8a87344..5697e33 100755 --- a/benchmarking/test-suite/testsweet.py +++ b/benchmarking/test-suite/testsweet.py @@ -162,12 +162,15 @@ class Windows(OS): return os.system(f"where {package}") == 0 def install(self, package, force=False): + print(f"Installing {package}...") if not force: if self.is_installed(package): print(f"{package} is already installed") return else: - print(f"Installing {package}...") + # If the cachedir doesn't exist, create it + if not os.path.exists(CACHEDIR): + os.makedirs(CACHEDIR) # Download the installer to the cachedir installer = f"{CACHEDIR}/{package}.exe" urlretrieve(SOURCES[package][self.name+"_url"], installer) @@ -396,7 +399,6 @@ def main(): for package in procedure["force-install"]: host.install(package, force=True) elif step == "install": - print(procedure["install"]) for package in procedure["install"]: host.install(package) elif step == "test": |