diff options
author | Richard Maw <richard.maw@codethink.co.uk> | 2012-07-31 17:29:43 +0000 |
---|---|---|
committer | Richard Maw <richard.maw@codethink.co.uk> | 2012-08-01 13:29:34 +0000 |
commit | ec3d3314f2a6484b3cca591920ed4e8034e546f5 (patch) | |
tree | 32faaca189190d0074be747866486c7635474ee6 /tests.branching/setup | |
parent | dabe86700200c529846927230e5e97249bf70792 (diff) | |
download | morph-ec3d3314f2a6484b3cca591920ed4e8034e546f5.tar.gz |
Add test for petrifying strata
This test checks if the same morphology json is generated during
petrification.
Because commits include the author and date, the sha1 sum will
differ if a different user commits at a different time.
This can be overridden by the environment variables
GIT_{AUTHOR,COMMITTER}_{NAME,EMAIL,DATE}.
The date chosen was just something recent at the time the work was
done, since a too-early timestamp is rejected by git as invalid.
Diffstat (limited to 'tests.branching/setup')
-rwxr-xr-x | tests.branching/setup | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests.branching/setup b/tests.branching/setup index d659b1d0..84d1d545 100755 --- a/tests.branching/setup +++ b/tests.branching/setup @@ -24,6 +24,18 @@ set -eu +export GIT_AUTHOR_NAME +export GIT_AUTHOR_EMAIL +export GIT_AUTHOR_DATE +export GIT_COMMITTER_NAME +export GIT_COMMITTER_EMAIL +export GIT_COMMITTER_DATE +GIT_AUTHOR_NAME=developer +GIT_AUTHOR_EMAIL=developer@example.com +GIT_AUTHOR_DATE="1343753514 +0000" +GIT_COMMITTER_NAME=developer +GIT_COMMITTER_EMAIL=developer@example.com +GIT_COMMITTER_DATE="1343753514 +0000" # Create a morph configuration file cat <<EOF > "$DATADIR/morph.conf" |