Alois Mahdal
90a4ca476b
Add notes on packaging
10 years ago
Alois Mahdal
616f0bb1fe
Update API naming test with new layout
10 years ago
Alois Mahdal
560dea5a31
Add stats.sh for simple stats functions
10 years ago
Alois Mahdal
b975af0399
Move core.__exits to exit.sh
10 years ago
Alois Mahdal
68d416685a
Add exit.sh for exit behavior helpers
10 years ago
Alois Mahdal
5912d757fb
Move sw.sh and yummy.sh to rhcc
10 years ago
Alois Mahdal
53abc5665c
Move www.sh and xorg.sh out to eecc
10 years ago
Alois Mahdal
b7958c3ab2
Move flow.wait_until to recon.sh (removes flow.sh)
10 years ago
Alois Mahdal
82f6ff7836
Move flow.filter to misc.sh (removes fun.sh)
10 years ago
Alois Mahdal
46203df836
Move misc functions from core.sh to misc.sh
10 years ago
Alois Mahdal
6e67e817a2
Add test to check API naming
10 years ago
Alois Mahdal
ef95b9e4aa
Update TODO
10 years ago
Alois Mahdal
eb27e058c8
Fix typo
10 years ago
Alois Mahdal
3f2112eb10
Add chapter on the testing framework
10 years ago
Alois Mahdal
ef29e8e6bb
Remove broken test
10 years ago
Alois Mahdal
c00eb8ff87
Revamp testing framework even better
As a followup to last revamp:
* Use more extensible test definition format,
* separate testing framework from setup script and split to includes,
* update test scripts as well as data,
* consolidate test output,
* and make some small improvements/fixes on the way.
10 years ago
Alois Mahdal
c7e80f1be1
Add tests for try_import
10 years ago
Alois Mahdal
5b8637e50c
Do not track test artifacts
10 years ago
Alois Mahdal
668298cf77
Revamp testing framework
* Enable running all tests via make,
* simplify tests (lay off data/tmpdir manipulation to framework),
* set rules for naming, exit statuses, etc,
* remove beakerlib dependency.
10 years ago
Alois Mahdal
17050bf7bf
Bump version
10 years ago
Alois Mahdal
79c1634922
Do not re-import module
10 years ago
Alois Mahdal
fdff7a5b0e
Fix is_imported
10 years ago
Alois Mahdal
1d6c469905
Handle the pretty-printer import correctly
Use the meta-library and handle that oputside __echo (i.e. do not try to
import it kajillion times).
10 years ago
Alois Mahdal
5732eeec55
Add mkpretty.sh meta-library
Purpose of this library is to import the actual pretty-printing library
based on FFOO_MKPRETTY value or fall back to mkpretty_plain.
10 years ago
Alois Mahdal
e8b1bad067
Add support for init function
A library can now have init function to allow for more dynamic behavior.
The function's name must be __ffoo_NAME__init, where NAME is the library
name.
Note that the init exit status is used as exit status of the `ffoo
import NAME` call (or `ffoo try_import NAME`) and overrides exit
status of the sourcing (which must always be zero anyway).
10 years ago
Alois Mahdal
b3372e82f8
Rename function not to be confused with try_import
try_import does not aim to import anything, whereas this function's aim
is to import stuff.
10 years ago
Alois Mahdal
ad1330a328
Bump version
10 years ago
Alois Mahdal
7cbb2a241a
Fix building of markdown files
Code include expansion overwrote result of variable name expansion.
(This had no effect so far since there are no variables in markdown
files.)
10 years ago
Alois Mahdal
35402e6103
Move expansions to separate functions
Move expansions to functions and comment them properly there.
10 years ago
Alois Mahdal
7cc5d0b000
Add "at" sign to valid URI characters
10 years ago
Alois Mahdal
0b2b073cf8
Update import test (new internal variable)
10 years ago
Alois Mahdal
b35ef7cc21
Remove obsolete variable
10 years ago
Alois Mahdal
d2e43de535
Revamp importing error checking
Die by default but allow "just try"
10 years ago
Alois Mahdal
25c26b3a0a
Add warning ability to ffoo
10 years ago
Alois Mahdal
47fe26efeb
Add routine to check if module has is imported
10 years ago
Alois Mahdal
5b0dfb230d
Track list of imported modules
10 years ago
Alois Mahdal
6d22369d71
Use proper variable for module name
10 years ago
Alois Mahdal
acfae929eb
Make ffoo import test readable ... a bit
* Split into functions as appropriate;
* add docstrings;
* reduce redundancy;
* run everything in C locale (=> update oracles),
* add subtest boundaries to output.
10 years ago
Alois Mahdal
f95d3ef5df
Turn off test for functionality not yet implemented
10 years ago
Alois Mahdal
0a8fc5c1d3
Do not pollute script namespace
10 years ago
Alois Mahdal
dd431a3537
Bump version
10 years ago
Alois Mahdal
77b3e95a81
Fix pipe determining the last tag
10 years ago
Alois Mahdal
085fb532cd
Remove excess space
10 years ago
Alois Mahdal
440da31d9f
Bump version
10 years ago
Alois Mahdal
1f0e0bd747
Do not delete dist tarballs
10 years ago
Alois Mahdal
0a66b88227
Mark stage as devel
10 years ago
Alois Mahdal
71e2ce53e2
Add support for SemVer to tarball
Instead of creating SemVer name on-premise, it will be hard-coded inside
the tarball
10 years ago
Alois Mahdal
4a2ef4d3e0
Add support for development stages in get_version()
10 years ago
Alois Mahdal
80df7401c7
Move ffoo(3) example to ffoo.1.sh and re-insert on-premise
10 years ago
Alois Mahdal
af7b225c07
Add ability to include code examples from "real" files
Now we can keep examples as a "real" shell scripts, taking advantage
of ability to test them or edit them with proper syntax HL.
Setup will now automatically insert them and indent properly as code.
Small drawback is that we cannot build manpages separately, but since
all building is to be trivial this is not a big deal.
10 years ago