resolutions qq pbm dans unitests et dans tests
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user