Commits
- Commit:
fc414659b454e49203f7ba02fb9866da42ffb4d0
- From:
- Christian Weisgerber <naddy@mips.inka.de>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
use test(1) -eq and -ne to compare integers, and reduce quoting
This brings the rest of the regression test scripts in line with
patch.sh.
- Commit:
186c23b673fcf9cdcb51b82bd9b3aa47740f704d
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
portable: regress: improve sed "-i ''" on linux
GNU sed doesn't like "-i ''" which on BSD means to not keep backups
around. Scan for "-i ''" and replace with just "-i" which will use the
filename given to sed just fine.
- Commit:
68c4d269f664e2f1f2d4a0c15910799c5fbdd529
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
simpler fix equivalent to the previous commit
- Commit:
1ff9fea4adda83f98727fa90b9806f6b35989182
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
portable: running tests when shell is dash
Ubuntu's default shell is dash, when using /bin/sh. The portable nature
of got is such that "$OSTYPE" to determine the host type (linux, bsd,
etc.) is bash-specific and is not part of POSIX.
autotools already provide a mechanism for determining the underlying
platform type, and PLATFORM is already a subst value.
Therefore, let the -portable parts of the regress test-suite use
$PLATFORM to look at the underlying OS type. The tests themselves
already expect /bin/sh to be POSIX-compliant in all other areas, so
there should be no need to change the #! lines.
- Commit:
c206b220ed859d6c8bd3e061fb2668e0caa68d5c
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
regress: provide a sed wrapper
In order to portably handle the difference in how 'sed -i' works between
*BSD and Linux, provide a wrapper to invoke the underying system sed(1)
based on which OSTYPE is in use.
- Commit:
fa37079fce1f4b2e6b73ab317c1840a860b56eb4
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
regress: use gdate/gln if on *BSD
To minimise the amount of churn between the difference in date(1)
and ln(n) semantics, use gdate and gln from coreutils.
- Commit:
f60607c885e6c72e0bd0647907573da3c9acbc43
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
explicitly set the default branch name after 'git init' in regress tests
We need to do this because newer versions of Git support an arbitrary default
branch name which can be set by users. We don't want tests to fail when this
option is used.
pointed out by Thomas Adam
- Commit:
f0fd0aafb69cafd7c84dd294cffda4b3c1d6144a
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
make 'got send' regression tests run 'git fsck' on all involved repositories
- Commit:
e600f1246e15fff13251ba9d299d74a24ae579c2
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
ensure that old commits remain referenced after rebase and histedit
Create automatic "backup" references which ensure that objects from
the pre-rebase or pre-histedit state remain in the repository.
A new -l option for 'got rebase' and 'got histedit' lists old commits.
This makes it easier to recover from botched rebase or histedit operations.
Removal of such objects currently requires got ref -d and git-gc.
This will be made more convenient in the future.
testing and ok jrick
- Commit:
54c39596938ae6d19fe5eede072d36a3f61baa12
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
use POSIX [s1 = s2] syntax instead of [s1 == s2]; patch by Ryo ONODERA
- Commit:
6c8da0c69eacfa9be3899f93eb7b1e78bd5533f1
- From:
- Christian Weisgerber <naddy@mips.inka.de>
- Date:
rewrite argument parsing with the POSIX getopts shell built-in
ok stsp
- Commit:
e5a14fe3f9e59a98ad7f7fd0987bd913d404f7e6
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
missed one case while changing $() to `` (found by rczlonka)
- Commit:
743f0d3e8ead71af69563ac2855766f4f1c4d7de
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
add quotes around $GOT_TEST_ROOT and avoid mktemp -p; suggested by naddy
- Commit:
11f4fa81f7f7aabf7d522a63257765a89926f3e0
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
allow regress test data to be stored in locations other than /tmp
- Commit:
9439a9901031adbd5c05fec5a5f692144bb3fd53
- From:
- Christian Weisgerber <naddy@mips.inka.de>
- Date:
replace ksh syntax with POSIX arithmetic expressions
ok kn stsp
- Commit:
f6cae3ed1ef0c22150181eeebb8f9e97db99dc5a
- From:
- Christian Weisgerber <naddy@mips.inka.de>
- Date:
switch function declarations from Korn shell to Bourne/POSIX shell syntax
ok stsp
- Commit:
7fb414ae4d46ebdaeff458477ba801f9ad5853c4
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
add a -q option to tests for quiet output and use it for 'make regress'
Previous default output remains when test cases are run individually.
ok tracey
- Commit:
e8863bdcc347433dd57e74d456115a6cb5d9953c
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
add symlink support to 'got import'
- Commit:
e7303626967ed721dd323a8a6ea6c638aed46c50
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
add submodule tests
ok semarie
- Commit:
70551d57b9f537ed14de697c1d7c552d26c12e5a
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
add a test for rebase file index corruption problem fix in previous commit
ok tracey
- Commit:
c8c71e6ecffd462db05b7ca41d6a7a2d020e745d
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
add tests for 'got clone' and 'got fetch'; requires 'ssh 127.0.0.1' to work
- Commit:
db32465dae89b65a67ccba625a37217bb5354f15
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
add a test for bug fixed in a0975128
- Commit:
5aa813935b6489921083da5ed9459a1cfb8a03e3
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
add copyright year for files already touched in 2020
- Commit:
b32c452563c515bd8597b168d85510fa50d64f65
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
make it possible to run regress tests with packed repositories
- Commit:
8e7bd50a820730b5f8356254f7a44fa922fab3bc
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
initial implementation of 'got tag' command