-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Created script for running all examples (#634)
Signed-off-by: gsstoykov <georgi.stoykov@limechain.tech> Signed-off-by: gsstoykov <146725010+gsstoykov@users.noreply.github.com> Co-authored-by: Rob Walworth <110835868+rwalworth@users.noreply.github.com>
- Loading branch information
Showing
3 changed files
with
61 additions
and
7 deletions.
There are no files selected for viewing
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,25 @@ | ||
@echo off | ||
|
||
REM Script should be executed from project root | ||
REM Directory containing executable files | ||
set EXECUTABLES_DIRECTORY=build_folder_with_exec_binaries | ||
|
||
if exist %EXECUTABLES_DIRECTORY% ( | ||
echo %EXECUTABLES_DIRECTORY% does exist. | ||
|
||
REM Iterate over all executables in the directory | ||
for %%f in (%EXECUTABLES_DIRECTORY%\*.exe) do ( | ||
if exist "%%f" ( | ||
echo Running %%f... | ||
|
||
REM Execute the binary executable without additional arguments | ||
"%%f" | ||
|
||
echo Done | ||
) | ||
) | ||
) else ( | ||
echo %EXECUTABLES_DIRECTORY% does not exist. | ||
) | ||
|
||
pause |
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,21 @@ | ||
#!/bin/bash | ||
|
||
# Script should be executed from project root | ||
# Directory containing executable files | ||
EXECUTABLES_DIRECTORY="build_folder_with_exec_binaries" | ||
|
||
if [ -d "$EXECUTABLES_DIRECTORY" ]; then | ||
echo "$EXECUTABLES_DIRECTORY does exist." | ||
fi | ||
|
||
# Iterate over all executables in the directory | ||
for file in "$EXECUTABLES_DIRECTORY"/*; do | ||
if [ -x "$file" ]; then | ||
echo "Running $file..." | ||
|
||
# Execute the binary executable without additional arguments | ||
"$file" | ||
|
||
echo "Done" | ||
fi | ||
done |