Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
GOUVILLE Tom
tesh-tester
Commits
7629951c
Verified
Commit
7629951c
authored
Dec 12, 2021
by
GOUVILLE Tom
🤞
Browse files
[ADD] Option pour ceux qui ne savent pas installer efence
parent
634bd3d2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
16 deletions
+21
-16
README.md
README.md
+5
-0
tests/tester.sh
tests/tester.sh
+16
-16
No files found.
README.md
View file @
7629951c
...
...
@@ -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
```
tests/tester.sh
View file @
7629951c
...
...
@@ -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'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment