~sircmpwn/ctools

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
1

[PATCH] tests: make echo tests robust to build directory

Details
Message ID
<20191029004510.577247-1-chris@vittal.dev>
DKIM signature
missing
Download raw message
Patch: +4 -4
---
 test/echo | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/test/echo b/test/echo
index 3004665..61f5fbf 100644
--- a/test/echo
+++ b/test/echo
@@ -3,22 +3,22 @@ tool="echo"
. "$HARNESS"

should_handle_one_string() (
	ct="$(../build/echo "this is a test string")"
	ct="$(./echo "this is a test string")"
	[ "$ct" = "this is a test string" ]
)

should_handle_two_string() (
	ct="$(../build/echo "this is a test string" "this second string")"
	ct="$(./echo "this is a test string" "this second string")"
	[ "$ct" = "this is a test string this second string" ]
)

should_handle_tab_char() (
	ct="$(../build/echo -n "\tthis is a test string")"
	ct="$(./echo -n "\tthis is a test string")"
	[ "$ct" = '	this is a test string' ]
)

should_handle_c_escape_char() (
	ct="$(../build/echo -n "this is a \ctest string")"
	ct="$(./echo -n "this is a \ctest string")"
	[ "$ct" = "this is a " ]
)

-- 
2.23.0
Details
Message ID
<BY4NI6DBN1J2.2OW4HBSCL8YCT@homura>
In-Reply-To
<20191029004510.577247-1-chris@vittal.dev> (view parent)
DKIM signature
missing
Download raw message
Thanks!

To git.sr.ht:~sircmpwn/ctools
   3eec5b9..b236872  master -> master
Review patch Export thread (mbox)