Commits
- Commit:
6d5b325d9740b5ea90167a5e47ecba3ff3777d2f
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
portable: regress: remove sed wrapper
Now that the use of sed(1) in tests has been replaced with ed(1), the
sed wrapper can be retired.
There are existing tests which use sed, but they're modifying a stream,
rather than using -i, so there's no portability concerns.
- Commit:
e33b5f976eb631d64485474683cea67a7cf6f712
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
portable: regress: improve date wrapper
When looking for a suitable date wrapper, don't use the platform name,
and rather use date(1)'s own parsing to choose BSD date, or gdate (GNU).
Additionally, only declare the date() wrapper once.
From Christian "naddy" Weisgerber
- Commit:
e4db89dadcac32808683a0ec7955ba4a526940dd
- From:
- Christian Weisgerber <naddy@mips.inka.de>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
regress: override locale settings
ok stsp
- Commit:
1c72bab5d11d2f52b471a33a23614dc19deab730
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
portable: regress: drop GNU date on *BSDs
Check if date(1) supports -r and fallback to gdate if that fails, via a
shell-wrapper.
From Christian "naddy" Weisgerber.
- Commit:
0ef5847bc496e50dff57096c3f8eef4336901071
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
portable: remove ln(1) wrapper
GNU Coreutils is wrapped for some commands which don't offer a portable
means to run those commands on non-BSD systems.
ln(1) was being used with a non-portable option (-h) which has now been
replaced upstream.
Therefore, we can remove this wrapper.
Patch from Christian "naddy" Weisgerber.
- Commit:
a628577ae6e2c53599473bf7d953e5aca112ad62
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
regress: run gotadmin pack -D if $GOT_TEST_PACK=ref-delta
ok stsp
- Commit:
f81387acdb3205ee8b204cb77539b1a5e0f7a0ca
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
regress: allow to run only a subset of the test cases
This allows to run only the test cases named on the command line.
- Commit:
113392cfbd4d2583badd52487063cd5f84f55518
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
make read errors in gotsh serve_read() fatal and adjust tests accordingly
ok jamsek
- Commit:
4f3c3d1e6992a6b2976d5ee514808125fd1aae44
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
regress: strip trailing / from GOT_TEST_ROOT
otherwise most test fails because of double "/" ending in paths and
tricking some check into thinking that's failed.
ok jamsek stsp
- Commit:
1f2400920021a8450f259800cd05616878ad2733
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
use GOT_IGNORE_GITCONFIG in regress
fixes test_rebase_no_author_info when a valid ~/.gitconfig is found.
ok stsp@
- Commit:
0a046396cb50b910b505fbd85552af508f983fd8
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
portable: regress: fix sed parsing
When making sed's command-line flags portable, don't split on $@ before
parsing it, as this won't preserve the original string which needs
passing to sed unmodified if it's never had to be changed.
- Commit:
432c637b8849b493bbe9a6907f2adc9e3d6d9c32
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
portable: regress: improve sed handling
When massaging sed command strings, to handle the differences between
"-i ''" not meaning the same thing on non-BSD systems, this previously
used a bashism to determine the positional arguments.
Instead, defer to using a loop which doesn't rely on bashisms.
- Commit:
cc5596d8c4a9f7e1fc5a632e5093e23f4fb80cb5
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
portable: regress: remove backticks from string
Remove erroneously-placed backticks when describing a lack of GNU
coreutils.
- Commit:
980b161540a9fb1b3691c610b5799ea1d3158a97
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
portable: regress: make OS-detection sh-compatible
Don't rely on $OSTYPE being available, which it isn't in strict POSIX
mode. Ubuntu's sh is often alised to dash, and hence this fails.
Instead, default to using the output from 'uname'.
- Commit:
e8da6c412759282e41c232887b3c9e4bdb3362e3
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
portable: regress: harden coreutils check
When running tests on non-Linux systems, it was just assumed that GNU
coreutils had been installed. This meant that the wrapper commands for
date/ln on those systems always had gdate and gln installed.
Rather than assume that, check to see if the GNU coreutils versions as
present, and if not echo a warning.
- Commit:
d3b82051e9673733a447d3fec7d1326f0a87e359
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
portable: regress: set PLATFORM when running direct
PLATFORM is populated when running via `./configure && make` but this
isn't guaranteed if an individual test is run directly, such as
`regress/cmdline/tag.sh`. In such cases, PLATFORM will be empty, but we
still want to use it. Since we test for non-linux values, only set
PLATFORM if we're running on Linu so that the correct commands are used.
- 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