Verified Commit 7629951c authored by GOUVILLE Tom's avatar GOUVILLE Tom 🤞
Browse files

[ADD] Option pour ceux qui ne savent pas installer efence

parent 634bd3d2
......@@ -22,3 +22,8 @@ chmod +x ./tests/tester.sh
./tests/tester.sh
```
Si les tests ne marchent pas ou que vous n'avez pas réussi à installer electri fence, utilisez la commande suivante :
```bash
NODEP=1 ./tests/tester.sh
```
......@@ -86,9 +86,9 @@ echo -e "\n\n"
}
# enable Electric Fence
export LD_PRELOAD=libefence.so.0.0
export EF_DISABLE_BANNER=1
export EF_ALLOW_MALLOC_0=1
[[ -z $NODEP ]] || export LD_PRELOAD=libefence.so.0.0
[[ -z $NODEP ]] ||export EF_DISABLE_BANNER=1
[[ -z $NODEP ]] ||export EF_ALLOW_MALLOC_0=1
echo '######### Trying to test tesh with a basic script (two commands)'
......@@ -290,19 +290,19 @@ EOF
timeout 2s bash -c "./tesh < $ti" > $to 2>&1
display $ti $to $te
# echo '######### Trying to test -e'
# cat <<-EOF > $ti 2>&1
# echo a
# echo b
# false
# echo c
# EOF
# cat <<-EOF > $te 2>&1
# a
# b
# EOF
# timeout 2s bash -c "./tesh -e < $ti" > $to 2>&1
# display $ti $to $te
echo '######### Trying to test -e'
cat <<-EOF > $ti 2>&1
echo a
echo b
false
echo c
EOF
cat <<-EOF > $te 2>&1
a
b
EOF
timeout 2s bash -c "./tesh -e < $ti" > $to 2>&1
display $ti $to $te
echo '######### Trying to test prompt'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment