Skip to content
Extraits de code Groupes Projets
Valider 6d3c127c rédigé par François De Keersmaeker's avatar François De Keersmaeker
Parcourir les fichiers

CI: updated paths in scripts

parent 87b0a670
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
# CONSTANTS
EXITCODE=0 EXITCODE=0
for nft_script in $GITHUB_WORKSPACE/test/device/firewall.nft # Flush the ruleset before next device
do sudo nft flush ruleset
# Flush the ruleset before next device # Try adding the ruleset
sudo nft flush ruleset sudo nft -f test/device/firewall.nft
# Try adding the ruleset # If the exit code is not 0, set EXITCODE to 1
sudo nft -f "$nft_script" if [[ $? -ne 0 ]]
# If the exit code is not 0, set EXITCODE to 1 then
if [[ $? -ne 0 ]] EXITCODE=1
then fi
EXITCODE=1
fi
done
# Cleanup: Flush the ruleset
sudo nft flush ruleset sudo nft flush ruleset
exit $EXITCODE exit $EXITCODE
\ No newline at end of file
EXITCODE=0 EXITCODE=0
PARSERS_DIR="$GITHUB_WORKSPACE/src/parsers" PARSERS_DIR="src/parsers"
# Pattern matching on all source files # Pattern matching on all source files
for file in $(find "$GITHUB_WORKSPACE"/include "$GITHUB_WORKSPACE"/src "$GITHUB_WORKSPACE"/test "$PARSERS_DIR"/include "$PARSERS_DIR"/src "$PARSERS_DIR"/test -name *.h -o -name *.c) for file in $(find include src test "$PARSERS_DIR"/include "$PARSERS_DIR"/src "$PARSERS_DIR"/test -name *.h -o -name *.c)
do do
if [[ "$file" != *"/hashmap.c" ]] if [[ "$file" != *"/hashmap.c" ]]
then then
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
# Constants # Constants
TIMEOUT=5 # seconds TIMEOUT=5 # seconds
BIN_DIR="$GITHUB_WORKSPACE/bin" BIN_DIR="bin"
# Ensure globbing expands to an empty list if no matches are found # Ensure globbing expands to an empty list if no matches are found
shopt -s nullglob shopt -s nullglob
......
EXITCODE=0 EXITCODE=0
PARSERS_DIR="$GITHUB_WORKSPACE/src/parsers" PARSERS_DIR="src/parsers"
VALGRIND_SUPP="$GITHUB_WORKSPACE/.ci_scripts/native-build/valgrind.supp" VALGRIND_SUPP=".ci_scripts/native-build/valgrind.supp"
PREFIX="" PREFIX=""
for file in "$GITHUB_WORKSPACE"/bin/test/* "$PARSERS_DIR"/bin/test/* for file in bin/test/* "$PARSERS_DIR"/bin/test/*
do do
if [[ "$file" == *"rule_utils-test" ]] if [[ "$file" == *"rule_utils-test" ]]
then then
......
Subproject commit 0ef0b310bc56c35c8ca4134956326190d9b73a51 Subproject commit f57c3b1dcb246d667cf473a7907407e38e22f13c
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter