[darcs-users] darcs patch: Resolve issue1434: refactor example test.
Eric Kow
kowey at darcs.net
Thu Apr 23 10:34:07 UTC 2009
On Thu, Apr 23, 2009 at 11:24:38 +1000, Trent W.Buck wrote:
> Thu Apr 23 11:17:45 EST 2009 Trent W. Buck <trentbuck at gmail.com>
> * Resolve issue1434: refactor example test.
Applied, thanks!
Resolve issue1434: refactor example test.
-----------------------------------------
> Trent W. Buck <trentbuck at gmail.com>**20090423011745
> Ignore-this: eab79a32c39a957540dbeeb302292ddd
> ] move ./tests/example.sh ./tests/EXAMPLE.sh
Interestingly, darcs on my Mac wants to back up example.sh when it does
this.
I've updated http://wiki.darcs.net/index.html/RegressionTests
accordingly
> hunk ./tests/EXAMPLE.sh 2
> #!/usr/bin/env bash
> +## Test for issueNNNN - <SYNOPSIS: WHAT IS THE BUG? THIS SYNOPSIS
> +## SHOULD BE ONE OR TWO SENTENCES.>
> +##
> +## Copyright (C) YEAR AUTHOR
> +##
> +## This program is free software; you can redistribute it and/or modify
> +## it under the terms of the GNU General Public License as published by
> +## the Free Software Foundation; either version 2 of the License, or
> +## (at your option) any later version.
> +##
> +## This program is distributed in the hope that it will be useful,
> +## but WITHOUT ANY WARRANTY; without even the implied warranty of
> +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> +## GNU General Public License for more details.
>
> hunk ./tests/EXAMPLE.sh 17
> -. lib
> -
> -rm -rf temp1 temp2
> -mkdir temp1
> -cd temp1
> -darcs init
> -cd ..
> -
> -rm -rf temp1 temp2
> +. lib # Load some portability helpers.
> +rm -rf R S # Another script may have left a mess.
> +darcs init --repo R # Create our test repos.
> +darcs init --repo S
> +mkdir R/d/ R/e/ # Change the working tree.
> +echo 'Example content.' >R/d/f
> +darcs record --repo R -lam 'Add d/f and e.'
> +darcs mv --repo R d/f e/
> +darcs record --repo R -am 'Move d/f to e/f.'
> +darcs push --repo R S -a # Try to push patches between repos.
> +darcs push --repo S R
> +rm -rf R/ S/ # Clean up after ourselves.
--
Eric Kow <http://www.nltg.brighton.ac.uk/home/Eric.Kow>
PGP Key ID: 08AC04F9
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 194 bytes
Desc: not available
URL: <http://lists.osuosl.org/pipermail/darcs-users/attachments/20090423/261dae74/attachment.pgp>
More information about the darcs-users
mailing list