Alois Mahdal
a37b3174ef
Fix typo in exit status variable
10 年 前
Alois Mahdal
88f1c5ce9e
Fix typo in filename
10 年 前
Alois Mahdal
53fdf2c710
Use sigils for debug
10 年 前
Alois Mahdal
91a0c466bc
Refrain from colors if stderr is a pipe or file
Generalize color codes per function and leave them empty if a "real
pipe" (i.e. pipe or file) is detected[1] on STDERR (2).
[1]: http://stackoverflow.com/questions/911168/how-to-detect-if-my-shell-script-is-running-through-a-pipe
10 年 前
Alois Mahdal
715afd10e6
Clarify purpose of `src` variable
10 年 前
Alois Mahdal
f0bbfba8cd
Use for loop instead of while
In this case it's simpler--no need to detect end case and no need to
shift, i.e. less typing/reading.
10 年 前
Alois Mahdal
f8d8041397
Use core.echos(), no need to special-case -e/-E/-N
10 年 前
Alois Mahdal
daf78d4cde
New semantics of test data files
Now testname.oracle file can specify expected exit status file
as well, or different path for stdout/stderr oracles (default is
testname.oracle.stdout and testname.oracle.stderr)
This effectively allows for testing scenarios where exit status or error
output can be tested as well.
10 年 前
Alois Mahdal
ba0b9e9328
Use nicer prefixes for test delimiters
10 年 前
Alois Mahdal
ad63d7fbcb
Explain how get_version works in docstring
10 年 前
Alois Mahdal
8d22cb4e2d
Bump version
10 年 前
Alois Mahdal
afaa60c739
Fortify quoting in __echo_vars()
10 年 前
Alois Mahdal
70c47cd67b
Re-enable games_with_spaces
Now that cfgrep speed is vastly improved this test does not need
to be turned off as tedious.
10 年 前
Alois Mahdal
e8e16791fb
Use native code rather than subhells
Replace most of sed / grep calls with bash-native code.
Speed improved ~2x for basic tests and over 10x for games_with_spaces
10 年 前
Alois Mahdal
c6bca8afd0
Force C locale (sorting, etc) for all tests
10 年 前
Alois Mahdal
9e20d2a7cb
Put color escape sequences where the text goes
10 年 前
Alois Mahdal
4e99114db9
Bump version
10 年 前
Alois Mahdal
f6690f5bf9
Tweak test output colors for better error visibility
10 年 前
Alois Mahdal
7d174032dd
Use more outstanding ASCII and severity on fail
10 年 前
Alois Mahdal
66ea4600ad
Set global variables in test runner
10 年 前
Alois Mahdal
0a7e2ddbb7
Improve test scope filtering
Move to runner parameters -t and -s; allow filtering based
on test name, sub-test name or both.
10 年 前
Alois Mahdal
0025cbf46e
Add support for comparing stderr as well
10 年 前
Alois Mahdal
95d6665be4
Fix API test data
10 年 前
Alois Mahdal
7b6b0da186
Gat rid of useless line in long version
10 年 前
Alois Mahdal
16f8bfba44
Better name function
10 年 前
Alois Mahdal
fc041b0784
Make use of improved exit routines and variables
10 年 前
Alois Mahdal
f8c294a0ff
Rename exit.sh module to exits.sh
10 年 前
Alois Mahdal
a153de3578
Improve exit.sh module
Add semantic exit functions and review exit statuses.
10 年 前
Alois Mahdal
b456ee28de
Use env header field instead of separate file
10 年 前
Alois Mahdal
01fc26804d
Merge .env files to respective test headers
10 年 前
Alois Mahdal
34c4d65c1d
Fix FFOO_CONFIG_SUFFIX being forced
10 年 前
Alois Mahdal
128e0ee70b
Bump version
10 年 前
Alois Mahdal
70662d4d69
Rename tests fo reflect module name
10 年 前
Alois Mahdal
f462b7c330
Rename ini.iniread to config.cfgrep
config.cfgrep does better job at hinting how the function works
(i.e. somehow similar to UNIX grep) and that the use is not limited to
INI files.
Also default config file suffix is now "conf".
10 年 前
Alois Mahdal
abd8c72c1d
Revamp test output
* Add colors,
* print ffoo version,
* honor TF_DEBUG and TF_VERBOSE from environment,
* use nicer but smaller ASCII-art
* and include test name in subtest name.
10 年 前
Alois Mahdal
8a541b5b49
Fortify argument access
10 年 前
Alois Mahdal
25c189ac50
Better name for strategy
"read strategy" is too ambiguous. What is really happening is that we
are "merging" the (posible) files into one stream.
10 年 前
Alois Mahdal
fdc1a5da51
Bump version
10 年 前
Alois Mahdal
201291457c
Always time tests
10 年 前
Alois Mahdal
94d3b7119f
Split merge tests for better coverage
10 年 前
Alois Mahdal
5f33e4e06c
Update API test
10 年 前
Alois Mahdal
9b60fa8566
Revamp reading mechanism; use strategy
Now by default iniread will stop at first file; old behavior can be
restored by -j|--join switch.
10 年 前
Alois Mahdal
37be2aae01
Add support for filtering based on subtest name
10 年 前
Alois Mahdal
d5ff96f895
Remove extra space
10 年 前
Alois Mahdal
1a9a837b25
Fix obsolete script name
10 年 前
Alois Mahdal
d88c09cee4
Make nicer debug output
10 年 前
Alois Mahdal
bd737dd5e6
Remove non-variable
10 年 前
Alois Mahdal
16b72cf631
Update ignore list with FFOO_PATH (7eccd00)
10 年 前
Alois Mahdal
e56664c1d2
Rewrite iniread docstring
10 年 前
Alois Mahdal
7b16c83171
Use echos() in iniread()
10 年 前