resolutions qq pbm dans unitests et dans tests

This commit is contained in:
hugogogo
2021-12-18 12:29:31 +01:00
parent fe92f88d31
commit 918efaf73c
9 changed files with 1015 additions and 793 deletions

View File

@@ -22,6 +22,7 @@ cd $(dirname $0)
# copy the executable to current directory
MINISHELL="../minishell"
make -C ../ &>/dev/null
cp $MINISHELL .
# globale variables
@@ -88,6 +89,10 @@ cd $(dirname $0)
file="${file_ori/#/$x}"
file="${file%.sh}"
file="${file/%/.sh}"
if [ -e "$file" ]
then
break
fi
done
}
@@ -162,6 +167,10 @@ cd $(dirname $0)
minishell_execution=$( echo "$@" | $CURRENT_D/minishell 2>/dev/null )
rm -rf $CURRENT_D/tmp/*
# for env, special treatment
bash_execution="$( echo "$bash_execution" | sort | grep -v -e "LINES=" -e "COLUMNS=" -e "_=" -e"LESSCLOSE=" -e "LESSOPEN=" )"
minishell_execution="$( echo "$minishell_execution" | sort | grep -v -e "LINES=" -e "COLUMNS=" -e "_=" -e"LESSCLOSE=" -e "LESSOPEN=" )"
#compare output
if [ "$bash_execution" = "$minishell_execution" ]
then