[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Monotone-devel] baby's first patch...
From: |
Zack Weinberg |
Subject: |
[Monotone-devel] baby's first patch... |
Date: |
Fri, 26 Dec 2003 13:06:07 -0800 |
User-agent: |
Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux) |
I finally got a chance to try out monotone. For my first attempt at a
patch, I tried to fix a little glitch in the testsuite - if you don't
have the "mimencode" command on your system, t_unidiff.at and
t_unidiff2.at fail spuriously. They should check for it and skip if
not found.
I'm not sure I did the patch right. In particular, I'm not sure if it
showed up on the right branch. And I'm not sure I extracted the right
set of packets from the database. (I have no convenient place to put
a depot, right now.)
zw
# Old manifest: 7d593be884277adfd616919af841920f105ae5ad
# New manifest: 06ea8c5c01c81510c6e23ccd533f5a9e19a0a2bc
# Summary of changes:
# patch ChangeLog edf6fa7a0d994c33746c5ad9d6f8a08df2d39efd ->
6354fe037c19fce8487cf89e1fd569b271d2dba2
# patch tests/t_unidiff.at ab53d11966d074dedf5f667d1c3fbaeccc8bd2bc ->
06a0742faa23592b4d0433a1e840ee80c2001644
# patch tests/t_unidiff2.at 84879f439a1377ef2374b47c29ff98da92de47be ->
842c962953849eb30795a0885e611b5f80885664
--- ChangeLog
+++ ChangeLog
@@ -1,3 +1,8 @@
+2003-12-26 Zack Weinberg <address@hidden
+
+ * tests/t_unidiff.at: Skip test if 'mimencode' command doesn't exist.
+ * tests/t_unidiff2.at: Likewise.
+
2003-12-20 graydon hoare <address@hidden>
* diff_patch.cc (normalize_extents): New function.
--- tests/t_unidiff.at
+++ tests/t_unidiff.at
@@ -4777,6 +4777,12 @@
ZGUgImd0LWMtY29tbW9uLmgiCg==
])
+# If no mimencode, skip this test.
+if type -p mimencode > /dev/null 2>&1
+then :
+else exit 77
+fi
+
# decode first file and commit to db
AT_CHECK(mimencode -u firstfile.b64, [], [stdout])
AT_CHECK(mv stdout firstfile, [], [ignore])
--- tests/t_unidiff2.at
+++ tests/t_unidiff2.at
@@ -1686,6 +1686,12 @@
Cn07IC8vIG5hbWVzcGFjZSBjb21tYW5kcwo=
])
+# If no mimencode, skip this test.
+if type -p mimencode > /dev/null 2>&1
+then :
+else exit 77
+fi
+
# decode first file and commit to db
AT_CHECK(mimencode -u firstfile.b64, [], [stdout])
AT_CHECK(mv stdout firstfile, [], [ignore])
[pubkey address@hidden
MIGdMA0GCSqGSIb3DQEBAQUAA4GLADCBhwKBgQC8O776iG0odFfqlQu0/CrFqEydIjPPnU/R
wtnGaqMev3/U0fOb1A9GqEZ7aVtAM1D4nIKLHsW+XioVlE3h2a0iBJ3wz/7fqp4G8O8hJSt8
zTNFrhIq7Mq4zinrwoUKz5xtqsOgqn2a2do2V5WqQWLBmlvJFLwRnPEu4HR240yILwIBEQ==
[end]
delta
Description: packet stream
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Monotone-devel] baby's first patch...,
Zack Weinberg <=