coreutils/tests/fixtures
Roy Ivy III 31655fc004 env: add support for new '--file' option (includes testing)
.# Discussion

This commit adds support for a '-f'/'--file' option which reads "KEY=VALUE" lines from
a config (or ini) style text file and sets the corresponding environment key. This is
modeled after the same option in the `dotenv` and `godotenv` commands. Notably, this
commit does *not* add automatic loading of ".env" configuration files.

The environment variables set by reading the configuration file are set prior to any
unset (eg, `-u BAR`) or set (eg, `FOO=bar`) actions. Files are loaded in order with
later files overwriting any overlapping environment variables, then, unset actions (in
command line order) are executed, then, finally, set actions (in command line order)
are executed.

[1] [`dotenv`](https://github.com/bkeepers/dotenv)
[2] [`godotenv`](https://github.com/joho/godotenv)
2019-04-29 09:50:22 -05:00
..
cat cat: fix for numbered lines w/ no trailing newline 2017-01-23 03:34:47 +01:00
cksum rewrite tests for cargo compat, decoupled directory, output handling 2015-11-23 02:04:15 -05:00
comm comm: additional tests and status/stderr checking for existing tests 2016-02-22 09:59:06 -05:00
cp implement many copy flags 2017-07-16 19:20:07 -05:00
cut tests/cut: positive testcases for feature complete 2016-08-06 17:11:54 -04:00
dircolors dircolors: tests added 2016-05-11 00:43:51 +08:00
du du: add test for -d flag 2018-03-20 17:55:31 -04:00
env env: add support for new '--file' option (includes testing) 2019-04-29 09:50:22 -05:00
fold rewrite tests for cargo compat, decoupled directory, output handling 2015-11-23 02:04:15 -05:00
hashsum hashsum: implement SHAKE-128 and SHAKE-256 2016-08-30 17:33:18 -07:00
head rewrite tests for cargo compat, decoupled directory, output handling 2015-11-23 02:04:15 -05:00
join tests: untrimmed stdout assertion (fix #1235) 2019-02-08 07:54:48 +11:00
mv rewrite tests for cargo compat, decoupled directory, output handling 2015-11-23 02:04:15 -05:00
nl rewrite tests for cargo compat, decoupled directory, output handling 2015-11-23 02:04:15 -05:00
od od: implement --traditional 2016-09-02 21:24:29 +02:00
paste rewrite tests for cargo compat, decoupled directory, output handling 2015-11-23 02:04:15 -05:00
ptx rewrite tests for cargo compat, decoupled directory, output handling 2015-11-23 02:04:15 -05:00
sort tests: untrimmed stdout assertion (fix #1235) 2019-02-08 07:54:48 +11:00
sum rewrite tests for cargo compat, decoupled directory, output handling 2015-11-23 02:04:15 -05:00
tac rewrite tests for cargo compat, decoupled directory, output handling 2015-11-23 02:04:15 -05:00
tail tail: suppress headers when --quiet flag is used 2017-10-05 21:25:21 +02:00
tsort rewrite tests for cargo compat, decoupled directory, output handling 2015-11-23 02:04:15 -05:00
uniq uniq: add test for zero terminated input and output 2016-08-06 18:41:39 -07:00
wc rewrite tests for cargo compat, decoupled directory, output handling 2015-11-23 02:04:15 -05:00
.gitattributes .gitattributes: treat tests/fixtures/** as binary data to prevent CRLF convertion by git under Windows 2016-02-14 17:09:47 +01:00