diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2020-09-27 13:28:36 +0200 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2020-09-27 13:28:36 +0200 |
| commit | 861621b9bdbdc7336183597b3ffd4ee161be19f3 (patch) | |
| tree | 1518b6535d980e9f6f5b8c3f421ae7481b63d4b6 /src/config.py | |
| download | philosophers_test-861621b9bdbdc7336183597b3ffd4ee161be19f3.tar.gz philosophers_test-861621b9bdbdc7336183597b3ffd4ee161be19f3.tar.bz2 philosophers_test-861621b9bdbdc7336183597b3ffd4ee161be19f3.zip | |
Initial commit
Diffstat (limited to 'src/config.py')
| -rw-r--r-- | src/config.py | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/src/config.py b/src/config.py new file mode 100644 index 0000000..3da1285 --- /dev/null +++ b/src/config.py @@ -0,0 +1,40 @@ +# ############################################################################ # +# # +# ::: :::::::: # +# config.py :+: :+: :+: # +# +:+ +:+ +:+ # +# By: charles <me@cacharle.xyz> +#+ +:+ +#+ # +# +#+#+#+#+#+ +#+ # +# Created: 2020/09/27 11:05:38 by charles #+# #+# # +# Updated: 2020/09/27 11:51:41 by charles ### ########.fr # +# # +# ############################################################################ # + +import os + + +# Location of your project directory +PROJECT_PATH = "../philosophers" + +# Build your project before the test if set to True +BUILD_BEFORE = True + +# Command to run before the test to build your project +# `{path}` is replaced by the philosophers directory (e.g `../philo_one` `../philo_two`) +BUILD_CMD = "make --no-print-directory -C {path}" + +################################################################################ +# Do not edit +################################################################################ + +PHILO_PATHS = [ + os.path.join(PROJECT_PATH, "philo_one"), + os.path.join(PROJECT_PATH, "philo_two"), + os.path.join(PROJECT_PATH, "philo_three") +] + +PHILO_EXEC_PATHS = [ + os.path.join(PHILO_PATHS[0], "philo_one"), + os.path.join(PHILO_PATHS[1], "philo_two"), + os.path.join(PHILO_PATHS[2], "philo_three") +] |
