From 9cc3715bb5b193a947ed39da5db345bf4d654593 Mon Sep 17 00:00:00 2001 From: Dimitri Rusin Date: Fri, 10 Nov 2023 16:44:51 +0100 Subject: [PATCH] config --- BUILD | 8 -------- INSTALL | 7 ------- NEVER_RUN | 10 ---------- RUN | 26 -------------------------- RUN_DYNAMICBINVAL | 16 +++------------- 5 files changed, 3 insertions(+), 64 deletions(-) delete mode 100755 BUILD delete mode 100755 INSTALL delete mode 100755 NEVER_RUN delete mode 100755 RUN diff --git a/BUILD b/BUILD deleted file mode 100755 index f91b4de24..000000000 --- a/BUILD +++ /dev/null @@ -1,8 +0,0 @@ -#!/usr/bin/env fish - -true -and rm -rf build/ -and mkdir build/ -and cd build/ -and cmake .. -and make install diff --git a/INSTALL b/INSTALL deleted file mode 100755 index 16e1c18fe..000000000 --- a/INSTALL +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/env fish - -true -and conda activate base -and rm -rf ./.conda_environment -and conda env create --prefix ./.conda_environment --file conda.yaml -and conda activate ./.conda_environment diff --git a/NEVER_RUN b/NEVER_RUN deleted file mode 100755 index a0671e420..000000000 --- a/NEVER_RUN +++ /dev/null @@ -1,10 +0,0 @@ -#!/usr/bin/env fish - -# Set the directory paths for the project and its includes -set python_dir (pwd)"/tests/python" - -true - -and conda activate ./.conda_environment -and cd $python_dir -and ipython3 never.py diff --git a/RUN b/RUN deleted file mode 100755 index db4b9acda..000000000 --- a/RUN +++ /dev/null @@ -1,26 +0,0 @@ -#!/usr/bin/env fish - -set build_dir (pwd)"/build/tests" -set include_dir (pwd)"/include" -set external_dir (pwd)"/external" -set tests_dir (pwd)"/tests/cpp" - -for line in (cat .env) - set -x (echo $line | cut -d '=' -f 1) (echo $line | cut -d '=' -f 2-) -end - -true -and cd $build_dir -and rm -f ./test.log -and c++ -Wall -Wextra -pedantic -std=c++17 -lstdc++fs \ - -I$include_dir \ - -I$tests_dir \ - -I$external_dir/fmt/include \ - -I$external_dir/clutchlog \ - -I$external_dir/json/include \ - -isystem $external_dir/googletest/googletest/include \ - -isystem $external_dir/googletest/googletest \ - $tests_dir/problem/binval.cpp \ - -o binval \ - $build_dir/../lib/libgtest.a -lpthread -and ./binval diff --git a/RUN_DYNAMICBINVAL b/RUN_DYNAMICBINVAL index 7da141d47..db4b9acda 100755 --- a/RUN_DYNAMICBINVAL +++ b/RUN_DYNAMICBINVAL @@ -1,26 +1,17 @@ #!/usr/bin/env fish -# Set the directory paths for the project and its includes set build_dir (pwd)"/build/tests" set include_dir (pwd)"/include" set external_dir (pwd)"/external" set tests_dir (pwd)"/tests/cpp" -true - for line in (cat .env) set -x (echo $line | cut -d '=' -f 1) (echo $line | cut -d '=' -f 2-) end -# set -u IOH_RESOURCES - -# and ipython3 tests/python/test_cec_functions.py - -# The following line puts the debug log file and the binval executable file -# under the build/ tree. -cd $build_dir - -and rm -f ./cec_test_log.txt ./cec_training_log.txt +true +and cd $build_dir +and rm -f ./test.log and c++ -Wall -Wextra -pedantic -std=c++17 -lstdc++fs \ -I$include_dir \ -I$tests_dir \ @@ -32,5 +23,4 @@ and c++ -Wall -Wextra -pedantic -std=c++17 -lstdc++fs \ $tests_dir/problem/binval.cpp \ -o binval \ $build_dir/../lib/libgtest.a -lpthread - and ./binval