Sat Oct 16 20:34:03 EST 2004 Mark Stosberg <mark@xxxxxxxxxxxxxxx>
* initial test for rerecord
I noticed that there appeared to be no tests at all for 'rerecord', so I
added a
very basic one. Now at least if the command is completely broken there will
some
indication from the test suite.
I did break from convention by coding the test in Perl rather than 'sh'. Perl
has a much more flexible and powerful testing system. Since Perl is used in a
few other places in the project, I thought I could sneak this in here. :)
I think Perl could be provide a better long term solution for the automated
test suite.
I believe I adjusted the Makefile appropriately so this will get run. However,
I'm having trouble getting my environment set up so that "make test" works at
all,
so I wasn't able to test this.
The test should be easy to translate to a 'sh' script if you want to keep that
consistency for now.
Mark
New patches:
[initial test for rerecord
Mark Stosberg <mark@xxxxxxxxxxxxxxx>**20041017013403
I noticed that there appeared to be no tests at all for 'rerecord', so I added
a
very basic one. Now at least if the command is completely broken there will
some
indication from the test suite.
I did break from convention by coding the test in Perl rather than 'sh'. Perl
has a much more flexible and powerful testing system. Since Perl is used in a
few other places in the project, I thought I could sneak this in here. :)
I think Perl could be provide a better long term solution for the automated
test suite.
I believe I adjusted the Makefile appropriately so this will get run. However,
I'm having trouble getting my environment set up so that "make test" works at
all,
so I wasn't able to test this.
The test should be easy to translate to a 'sh' script if you want to keep that
consistency for now.
Mark
] {
hunk ./GNUmakefile 194
- done \
+ done; \
+ for TEST in `ls *.pl`; \
+ do \
+ echo Running $$TEST ...; \
+ perl $$TEST; \
+ done; \
addfile ./tests/rerecord.pl
hunk ./tests/rerecord.pl 1
+#!/usr/bin/env perl
+
+# A start on testing rerecord. Please add more tests for rerecord here!
+
+use Test::More qw/no_plan/;
+use strict;
+use vars qw/$DARCS/;
+$DARCS = $ENV{DARCS} || "$ENV{PWD}/../darcs";
+
+`rm -rf temp1`;
+`mkdir temp1`;
+chdir 'temp1';
+like(`$DARCS init`, qr/Successfully initialized/i, 'initialized repo');
+
+`date > foo`;
+`$DARCS add foo`;
+like(`$DARCS record -a -m add_foo -A x`, qr/finished recording/i, 'added
patch');
+`date >> foo`;
+like(`echo 'y' | $DARCS rerecord -a foo`, qr/rerecording changes/i, 'rerecord
-a');
+chdir '../';
+`cd ..`;
+`rm -rf temp1`;
+
+
+
+
}
Context:
[use new darcs.css with manual as well.
David Roundy <droundy@xxxxxxxxxxxxxxx>**20041016171201]
[use anonymous file handle for temporary files in darcs.cgi.
David Roundy <droundy@xxxxxxxxxxxxxxx>**20041016165802]
[improve error message when push gets a bad repo as argument.
David Roundy <droundy@xxxxxxxxxxxxxxx>**20041016155515]
[Add explicit --dont-look-for-adds to tests, because they
simons@xxxxxxx**20041015150115
fail if the user has set
whatsnew look-for-adds
in his ~/.darcs/defaults file. "make check" should probably
ignore this config file altogether.
]
[IORef is now in Data hierarchy
simons@xxxxxxx**20041015145538]
[System.Time exports all this module needs
simons@xxxxxxx**20041015145524]
[remove trailing whitespace
simons@xxxxxxx**20041015145447]
[foreign exports withArray0
simons@xxxxxxx**20041015145329]
[prelude exports elem
simons@xxxxxxx**20041015145226]
[don't import bug twice in darcs_cgi.
David Roundy <droundy@xxxxxxxxxxxxxxx>**20041016144821]
[add new \begin{options} module to documentation.
David Roundy <droundy@xxxxxxxxxxxxxxx>**20041016135437]
[eliminate "David's Advanced Revision Control System" from manual and web page.
David Roundy <droundy@xxxxxxxxxxxxxxx>**20041016122054]
[add --summary option to commands that accept --dry-run.
David Roundy <droundy@xxxxxxxxxxxxxxx>**20041015112027]
[remove vestigial sentence from web page.
David Roundy <droundy@xxxxxxxxxxxxxxx>**20041015105008]
[make changes accept --verbose as a synonymn for --summary.
David Roundy <droundy@xxxxxxxxxxxxxxx>**20041014120604]
[bring ChangeLog up to date.
David Roundy <droundy@xxxxxxxxxxxxxxx>**20041014114923]
[don't accept newlines in patch names.
David Roundy <droundy@xxxxxxxxxxxxxxx>**20041014114833]
[quote conflict attribute values in xml output
Will <will@xxxxxxxxxx>**20041013161333]
[clarify that boringfile is a repository path
andrew@xxxxxxxxxxx**20041012205127]
[adding darcs.css
Mark Stosberg <mark@xxxxxxxxxxxxxxx>**20041016160355
This is the one stylesheet to unify them all. At least, the intent is that it
would be used
on the main darcs set, the online manual, and the wiki, to unify the darcs
online presence.
]
[remove redundent docs for 'trackdown'
Mark Stosberg <mark@xxxxxxxxxxxxxxx>**20041016025325
The description was how to run 'trackdown' was repeated in slightly different
words. I removed
one copy.
]
[partial docs spruce up to highlight long flag descriptions
Mark Stosberg <mark@xxxxxxxxxxxxxxx>**20041016024829
I can't decide whether this update (if applied to the rest of the docs) would
really add much. Give it a whirl and let me know. If it seems good, I can work
on update the rest of the docs.
Mark
]
[add 'cvs -n update' equivalence
mark@xxxxxxxxxxxxxxx**20041014030202
I use '-n update' nearly as much as plain 'update', so I thought this was
worth including for reference.
]
[fix bug where new files didn't show up in darcs diff.
David Roundy <droundy@xxxxxxxxxxxxxxx>**20041013111107]
[fix bug in slurp_recorded_and_unrecorded when called from a different
directory.
David Roundy <droundy@xxxxxxxxxxxxxxx>**20041013110922]
[make pull prompt for confirmation when there is a conflict with unrecorded
changes.
David Roundy <droundy@xxxxxxxxxxxxxxx>**20041013111327]
[make unrevert interactive.
David Roundy <droundy@xxxxxxxxxxxxxxx>**20041012111740]
[Fix compilation errors if HAVE_MAPI and HAVE_CURSES are both unset
mklooster@xxxxxxx**20041011095851]
[update ChangeLog a bit.
David Roundy <droundy@xxxxxxxxxxxxxxx>**20041011111827]
[don't try to generate a new name on get if name was given explicitely.
David Roundy <droundy@xxxxxxxxxxxxxxx>**20041010123829]
[fixed a bug in changes --from-tag.
David Roundy <droundy@xxxxxxxxxxxxxxx>**20041010123136]
[when remaking website, also remake docs.
David Roundy <droundy@xxxxxxxxxxxxxxx>**20041010105157]
[Beatify, er, canonise myself in authors.hs.
Juliusz Chroboczek <jch@xxxxxxxxxxxxxx>**20041009171340]
[always mark conflicts, even if there's an obvious solution.
David Roundy <droundy@xxxxxxxxxxxxxxx>**20041009115131]
[when rerecording conflicted patch, remove the conflict.
David Roundy <droundy@xxxxxxxxxxxxxxx>**20041009104906]
[when matching patch names, include "UNDO: " in rolled-back patches.
David Roundy <droundy@xxxxxxxxxxxxxxx>**20041008111510]
[handle better the case where unrevert context doesn't make sense.
David Roundy <droundy@xxxxxxxxxxxxxxx>**20041008104452]
[remove unused read_patch function.
David Roundy <droundy@xxxxxxxxxxxxxxx>**20041007120450]
[have cgi preserve whitespace in comments
Will <will@xxxxxxxxxx>**20041007181910]
[make cgi stylesheet location configurable
Will <will@xxxxxxxxxx>**20041007180619]
[add new slurp_recorded_and_unrecorded function.
David Roundy <droundy@xxxxxxxxxxxxxxx>**20041007120513]
[Clean up stringify calls in configure.ac (take 3)
Taral <taral@xxxxxxxxx>**20041005173835]
[Clean up SignalHandler.lhs warnings
Taral <taral@xxxxxxxxx>**20041005172302]
[Clean up External.hs warnings
Taral <taral@xxxxxxxxx>**20041005172251]
[Use -Werror
Taral <taral@xxxxxxxxx>**20041004190657]
[make clean didn't remove authors executable
ijones@xxxxxxxxxx**20041005031319]
[fix linking problem with --disable-optimize
Tomasz Zielonka <t.zielonka@xxxxxxxxxxxxxxxxxxxxx>**20041005075950]
[fix overwriting of c_context.c in tarball source.
David Roundy <droundy@xxxxxxxxxxxxxxx>**20041005112445]
[Add RTSFLAGS to GNUmakefile
Taral <taral@xxxxxxxxx>**20041004192542]
[Clean up Patch.lhs warnings (take 2)
Taral <taral@xxxxxxxxx>**20041004192505]
[Make stringify put string in .rodata
Taral <taral@xxxxxxxxx>**20041004190637]
[fix replace documentation.
David Roundy <droundy@xxxxxxxxxxxxxxx>**20041005111328]
[really fix newlines in whatsnew -u
andrew@xxxxxxxxxxx**20041005030757]
[fix bug in defaults processing of options with -- in them.
David Roundy <droundy@xxxxxxxxxxxxxxx>**20041005105533]
[more win32 build fixes
Will <will@xxxxxxxxxx>**20041004173323]
[Make clear author can be a commented email address.
Ralph Corderoy <ralph@xxxxxxxxxxxxxxx>**20041004120404
I didn't realise that I could enter a commented email address when
prompted. Hence my authors.hs addition to fix up my existing patches.
These documentation and prompt changes try to avoid this for others.
]
[Remove unused var in Tag.lhs
Taral <taral@xxxxxxxxx>**20041003162732]
[Clean up FastPackedString.hs warnings
Taral <taral@xxxxxxxxx>**20040928232322]
[Clean up Context.lhs warnings
Taral <taral@xxxxxxxxx>**20040928232212]
[Move file-specific options out of GNUmakefile
Taral <taral@xxxxxxxxx>**20040928224635]
[can't make AUTHORS in predist, since history isn't available.
David Roundy <droundy@xxxxxxxxxxxxxxx>**20041004105119]
[fix win32 build problem
Will <will@xxxxxxxxxx>**20041003213706]
[TAG 1.0.0rc3
David Roundy <droundy@xxxxxxxxxxxxxxx>**20041003114608]
Patch bundle hash:
8720b72adb0c127a9e7c9d206cec27a6ea028a74
_______________________________________________
darcs-devel mailing list
darcs-devel@xxxxxxxxxxxxxxx
http://www.abridgegame.org/cgi-bin/mailman/listinfo/darcs-devel
|