git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH v2 6/7] Fix tests to work with core.autocrlf=true -- test_cmp to cmp

From
DSDon Slutz <don.slutz@sierraatlantic.com>
Date
May 13, 2009, 19:35 UTC
Message-ID
<1242243348-6690-7-git-send-email-Don.Slutz@SierraAtlantic.com>
In-Reply-To
<1242243348-6690-6-git-send-email-Don.Slutz@SierraAtlantic.com>

Switch from using test_cmp to using cmp in these tests. They are checking for correct CRLF handling.

Signed-off-by: Don Slutz <Don.Slutz@SierraAtlantic.com>
---
 t/t0024-crlf-archive.sh |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/t/t0024-crlf-archive.sh b/t/t0024-crlf-archive.sh
index c7d0324..af084e5 100755
--- a/t/t0024-crlf-archive.sh
+++ b/t/t0024-crlf-archive.sh
@@ -22,7 +22,7 @@ test_expect_success 'tar archive' '
 	git archive --format=tar HEAD |
 	( mkdir untarred && cd untarred && "$TAR" -xf - )
 
-	test_cmp sample untarred/sample
+	cmp sample untarred/sample
 
 '
 
@@ -39,7 +39,7 @@ test_expect_success UNZIP 'zip archive' '
 
 	( mkdir unzipped && cd unzipped && unzip ../test.zip ) &&
 
-	test_cmp sample unzipped/sample
+	cmp sample unzipped/sample
 
 '
 
-- 
1.6.3.15.g49878
Previous: Don SlutzNext: Don Slutz
Message 21 of 24 in “Add core.autocrlf=true on cygwin by default during tests”
  1. 0/6 Add core.autocrlf=true on cygwin by default during testsDon Slutz, May 11, 2009
  2. 1/6 Add core.autocrlf=true on cygwin by default during testsDon Slutz, May 11, 2009
  3. 2/6 Fix tests to work with core.autocrlf=trueDon Slutz, May 11, 2009
  4. 3/6 Fix tests to work with core.autocrlf=trueDon Slutz, May 11, 2009
  5. 4/6 Fix tests to work with core.autocrlf=trueDon Slutz, May 11, 2009
  6. 5/6 Fix tests to work with core.autocrlf=trueDon Slutz, May 11, 2009
  7. 6/6 Add 'make test-text'Don Slutz, May 11, 2009
  8. Charles BaileyMay 11, 2009
  9. Don SlutzMay 14, 2009
  10. Eric BlakeMay 11, 2009
  11. Junio C HamanoMay 12, 2009
  12. Junio C HamanoMay 13, 2009
  13. Johannes SchindelinMay 11, 2009
  14. Don SlutzMay 12, 2009
  15. 0/7 Add GIT_TEST_AUTO_CRLF environment variable to set core.autocrlf on initDon Slutz, May 13, 2009
  16. 1/7 Add GIT_TEST_AUTO_CRLF environment variable to set core.autocrlf on initDon Slutz, May 13, 2009
  17. 2/7 Add support functions for tests in core.autocrlf=trueDon Slutz, May 13, 2009
  18. 3/7 Fix tests to work with core.autocrlf=true -- new functionsDon Slutz, May 13, 2009
  19. 4/7 Fix tests to work with core.autocrlf=true -- force falseDon Slutz, May 13, 2009
  20. 5/7 Fix tests to work with core.autocrlf=true -- cmp to test_cmpDon Slutz, May 13, 2009
  21. 6/7 Fix tests to work with core.autocrlf=true -- test_cmp to cmpDon Slutz, May 13, 2009
  22. 7/7 Add 'make test-text' core.autocrlf=trueDon Slutz, May 13, 2009
  23. Charles BaileyMay 14, 2009
  24. Don SlutzMay 14, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.