Commit Graph

28 Commits

Author SHA1 Message Date
risk danger olson
32244d92a4 lfs: fix issue that grabs env vars with 'GIT_' in the value
Fixes an issue with 'APPVEYOR_REPO_COMMIT_MESSAGE' being included, causing test-env.sh failures
2017-01-04 13:27:05 -07:00
risk danger olson
c6feebf3dc Add test for ssh auth 2017-01-04 11:27:24 -07:00
risk danger olson
77e624dad9 remove unused tests 2016-11-08 13:41:08 -07:00
Sebastian Schuberth
ef802b8bc6 test: Use "sha256sum" on Windows
"shasum" is a Perl script. Pure MSYS2, in contrast to Git for Windows,
does not come with Perl by default, so fall back to using "sha256sum" on
Windows in general.
2016-10-10 19:03:05 +02:00
Sebastian Schuberth
d81df7c3f0 test: Treat MSYS(2) shells also as Windows
Quoting [1] for some background information:

"MSYS2 consists of three subsystems and their corresponding package
repositories, msys2, mingw32, and mingw64.

The mingw subsystems provide native Windows programs and are the main
focus of the project. These programs are built to co-operate well with
other Windows programs, independently of the other subsystems.

The msys2 subsystem provides an emulated mostly-POSIX-compliant
environment for building software, package management, and shell
scripting. These programs live in a virtual single-root filesystem (the
root is the MSYS2 installation directory). Some effort is made to have the
programs work well with native Windows programs, but it's not seamless.

[...]

Every subsystem has an associated "shell", which is essentially a set of
environment variables that allow the subsystems to co-operate properly.
These shells can be invoked using scripts in the MSYS2 installation
directory or shortcuts in the Start menu. The scripts set the MSYSTEM
variable and start a terminal emulator with bash. Bash in turn sources
/etc/profile which sets the environment depending on the value of
MSYSTEM."

[1] https://sourceforge.net/p/msys2/wiki/MSYS2%20introduction/
2016-10-08 22:35:57 +02:00
Sebastian Schuberth
208c0b61c1 test: Make IS_{MAC,WINDOWS} checks integer comparisons
Integer checks are more clear for this kind of boolean variables, and the
string checks should have used a single "=" anyway.
2016-10-08 18:57:12 +02:00
Sebastian Schuberth
d54a2949be Remove system credential helper specific work-arounds in tests
Now that we really do not read the system config anymore we can remove
these.
2016-09-28 21:30:05 +02:00
Sebastian Schuberth
f89f42aef5 Actually export GIT_CONFIG_NOSYSTEM
Otherwise the system config is still read, causing e.g. any set system
credential manager to be used.
2016-09-28 21:30:05 +02:00
Taylor Blau
185307a9bd Merge branch 'master' into windows-fixes 2016-07-17 15:09:31 -07:00
risk danger olson
ed20a7153b GIT_TERMINAL_PROMPT=0 is supported on enough versions of git 2016-07-15 15:38:02 -06:00
Steve Streeting
ee5df4971f Windows fix: suppress GUI prompts from OpenSSH during integration tests 2016-07-15 14:53:02 +01:00
Steve Streeting
cc41ca5413 Fix auto tempdir for GNU mktemp, needs X's (BSD doesn't) 2016-03-24 17:41:42 +00:00
Steve Streeting
e1c2c8a2aa Always run integration tests in a separate GIT_LFS_TEST_DIR
If user doesn't specify a specific one, create one in the temp area &
clean up when done if KEEPTRASH=0
2016-03-18 16:06:48 +00:00
Steve Streeting
6da7fe87b2 Fully resolve symlinks in all cases for consistency
'git rev-parse' always reports absolute paths after resolving symlinks
but os.Getwd() and filepath.Abs() report paths without them resolved,
leading to issues. Also integration tests need to resolve symlinks before
comparing paths if running in a symlinked folder
2016-03-18 15:03:05 +00:00
Steve Streeting
4c64e82124 Trying to get SSL integration test working, having cert issues 2016-03-09 17:31:04 +00:00
Steve Streeting
0c2ad37f74 Rename IS_MINGW_CYGWIN to IS_WINDOWS, simpler 2015-10-22 16:16:53 +01:00
Steve Streeting
4c1e5ac12d Fix the first Windows integration test error, paths
We have to be able to convert from MinGW paths to native Windows paths,
and also to handle those paths in Bash without the '\' characters
escaping into tabs etc. This commit fixes the very first test in
test-env.sh as a proof of concept
2015-10-22 16:16:14 +01:00
risk danger olson
63f388f4e0 don't use ldflags in credential tests
gccgo silently ignores them, causing tests to fail.
2015-08-11 14:18:30 -06:00
Rick Olson
b2e7ba29d8 teach the git credential helper how to read passwords from disk 2015-08-04 10:06:30 -06:00
Rick Olson
202ae122d4 update the shebang lines to use bash 2015-07-29 20:37:31 -06:00
Rick Olson
1efb30a51f rebuild HOME for each test 2015-07-29 20:03:57 -06:00
Rick Olson
4e032fbb59 allow a custom rootdir 2015-06-19 11:06:55 -06:00
Rick Olson
6063148e43 set the user values 2015-05-26 09:47:57 -06:00
Rick Olson
1feee5837e create a new HOME with a global git config just for tests 2015-05-26 09:39:04 -06:00
Rick Olson
f88f3660b9 configurable TMPDIR 2015-05-21 15:01:35 -06:00
Rick Olson
904145fcce lots of test docs 2015-05-19 16:54:15 -06:00
Rick Olson
de1e0a0c22 run tests in parallel with xargs 2015-05-18 19:09:32 -06:00
Rick Olson
7b6d89d59f teach script/integration how to setup and run the test suite 2015-05-18 17:28:58 -06:00