Commit Graph
49 Commits
Author SHA1 Message Date
Alberto Fanjul 4dfaa47c68 split test into single cases 2018-05-27 14:02:58 +02:00
Alberto Fanjul 3f3d27e2ac mark test as failed 2018-05-27 13:57:49 +02:00
Pavel Rehak 292e234ca7 Test case - executable code.
Ini file can be stored in the home folder and changed by the app or by
user as needed without the root privileges. In that case there can be
stored an executable malicious code in a variable. The code is executed
when it is read by the parser.
2018-05-27 13:52:19 +02:00
Alberto Fanjul cd0a4314b1 detect failures or expected failures 2018-05-27 12:55:44 +02:00
Alberto Fanjul 65721b3ecb add manually test-driver 2018-05-27 12:55:44 +02:00
Pavel Rehak 7d10b0d0a0 Use stderr instead of a file. 2018-05-26 12:17:51 +02:00
Pavel Rehak 6ed878d1b0 Unwanted file test.
File "2" is created after using cfg_writer.
2018-05-26 12:17:05 +02:00
Pavel Rehak 45ecd6c72e Remove duplication from created ini file.
t0006
2018-05-26 12:12:20 +02:00
Alberto Fanjul 47dddefc36 Show errors on CI 2018-05-26 12:05:12 +02:00
Pavel Rehak 0ce2bee87b Update variable test. 2018-05-25 19:47:53 +02:00
Alberto Fanjul cc2f5542d7 test: mark test as success 2018-05-25 07:01:47 +02:00
Pavel Rehak c59e84c66d length=${#FUNCNAME/#cfg_section_;[*]}: bad substitution - solution 2018-05-25 07:01:47 +02:00
Alberto Fanjul f444e64fee test: mark test as failed 2018-05-25 07:01:47 +02:00
Alberto Fanjul 06cb76faa6 test: adding test to test suite 2018-05-25 07:01:47 +02:00
Pavel Rehak 66c0ef705e Test case - create new var.
.../bash-ini-parser/t$ bash t0005-new_var.sh
not ok 1 - Parse new var
1..1
2018-05-24 17:59:52 +02:00
albfan 695e55f986 Add projects using bash-ini-parser 2018-05-07 08:03:05 +02:00
albfan 8fb28305a4 Add GPLv3 license 2018-05-07 08:03:05 +02:00
albfan d73cdd267d rename test to whitespace
Add more whitespace test
2018-01-27 09:37:23 +01:00
albfan 739196e824 Add continuous integration 2018-01-23 01:38:40 +01:00
albfan c6a35fc28b remove only real comments
fixes #12
2018-01-22 22:58:51 +01:00
albfan b55c55f5fd move comments to debug 2018-01-22 22:58:37 +01:00
albfan 4e9ab7ab5c fix whitespace 2018-01-22 22:58:37 +01:00
albfan 0184648014 add broken test for comments 2018-01-22 22:58:37 +01:00
albfan 2ddf0abc5c add dynamic DEBUG 2018-01-22 22:58:37 +01:00
albfan 6e2175dc72 fix typo 2018-01-22 22:43:28 +01:00
Bruno Galindro da Costa 871153778b Remove hashtag comments 2017-12-16 16:31:25 +01:00
Nasir Iqbal 86622e1cbe dos2unix issue fixed 2017-12-16 16:25:44 +01:00
albfan 7ccb706eb1 add tap test output 2015-06-29 22:01:36 +02:00
albfan a5e1dd880d add continuous integration 2015-05-17 11:02:48 +02:00
albfan 38a73044cf remove example test case file 2015-05-17 10:48:23 +02:00
albfan f39fc72170 test sections
closes #4
2015-05-17 10:47:57 +02:00
albfan 763965c8b8 project is bash dependent 2015-05-17 09:48:58 +02:00
albfan 1be6551065 test invalid ini files
it is break by now

relates to #4
2015-05-16 21:35:31 +02:00
albfan 389ef3f00f whitespace use case
relates to #4
2015-05-16 20:43:48 +02:00
albfan f2c5703806 operate by section 2015-05-16 20:37:43 +02:00
albfan d0681d2421 unset function
clear previous definition (if exist) before load it

closes #6
2015-05-16 20:36:27 +02:00
albfan a635d175ce clear function 2015-05-16 20:36:17 +02:00
albfan affa300da5 debug clearly
marks for start and end of file parsed

relates to #7
2015-05-16 20:35:01 +02:00
albfan b9a3ce5bfc Added test suite
relates to #4
2015-05-16 18:38:46 +02:00
albfan 5288f0e93a Merge commit '2d24f2698e5fe7369f9365619aaf088c5524ab0b' as 't/sharness' 2015-05-16 11:37:33 +02:00
albfan 2d24f2698e Squashed 't/sharness/' content from commit 665e154
git-subtree-dir: t/sharness
git-subtree-split: 665e154c365762867ce537a7ca6328516ccd5b44
2015-05-16 11:37:33 +02:00
albfan b8e6a6c4ed document sh alternatives 2015-05-16 10:13:36 +02:00
albfan 20466a593c allow updates
closes #3
2015-05-15 20:01:17 +02:00
albfan 3a8520b348 choose a more standard prefix
closes #1
2015-05-15 18:59:28 +02:00
albfan 3620e29e67 better example file
more verbose
show all sections
allow custom ini file
2015-05-15 18:42:38 +02:00
albfan d4da89a1be support complex whitespace indentation
closes #2
2015-05-15 18:37:33 +02:00
albfan 5bae5fa6eb add whitespace complexity to example file 2015-05-15 18:27:06 +02:00
albfan 2950c8556a better documentation 2015-05-13 22:26:14 +02:00
albfan c060af3c81 First implementation 2015-02-01 13:28:17 +01:00