Skip to content

Commit

Permalink
Lux 2.9.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Håkan Mattsson committed Oct 25, 2023
1 parent f37764b commit 4452c53
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 25 deletions.
45 changes: 33 additions & 12 deletions doc/lux.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Lux - LUcid eXpect scripting
============================

Version 2.9 - 2023-08-23
Version 2.9.1 - 2023-10-25

* [Introduction](#../README)
* [Concepts](#main_concepts)
Expand Down Expand Up @@ -3066,12 +3066,32 @@ Here follow the output from the enclosed example test suite under
Evaluate `lux examples`

> .../lux> lux examples
> summary log : /Users/hmattsso/dev/lux/lux_logs/run_2023_08_23_08_28_13_939684/lux_summary.log
> summary log : /Users/hmattsso/dev/lux/lux_logs/run_2023_10_25_13_33_18_81235/lux_summary.log
> test case : examples/calc.lux
> progress : ..:..:..:.:...:..:.:.:.:....:..:.:..:..(....:..:.:.:.:.:...)(.:.:..:.:..)...:..:.:..:.:..(.:.:..:..)..(.:.:..:.:..)(....:.:.:..:...)(.:.:..:..)..(.:.:.:...).......:.:........
> result : SUCCESS
> progress : ..:...:.:...:..:.:.:....:.:..:.:..:..(....:..:.:.:.:.61????61)19
> result : FAIL at line 19:61 in shell calc
> expected*
> \d+>\s.*\.
> (.*)
> \d+>\s
> actual match_timeout
>
> 1>
> .. 2+1.
> 3
> 2>
> diff
> - \d+>\s.*\.
> - (.*)
> - \d+>\s
> +
> + 1>
> + .. 2+1.
> + 3
> + 2>
>
> test case : examples/fail.lux
> progress : ..:...:.:.:...:.:..:.:.:...:.:.:.:.:....:.:.:...32C..:..:.:..:..:..:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.
> progress : ..:..:..:.:...:.:..:.:.:..:..:.:.:....:..:..32C..:..:..:..:..:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.
> result : FAIL at line 32 in shell calculator
> expected*
> 19
Expand All @@ -3088,13 +3108,13 @@ Evaluate `lux examples`
> + 4>
>
> test case : examples/intro.lux
> progress : ..:..:..:.:..:.:.:.....:..:..:.:.:...:.:..:.:..:.:.:..:.:.:.:..:..:.:.:..:.:..:..:..:.:.:.:....c.:.....:..:..:.:..:..:.:..:.:..:.
> progress : ..:..:..:..:.:..:....:..:..:.:..:.:..:..:.:..:.:..:.:..:.:.....:..:.:.:....c.:.....:..:..:..:.:..:.:..:.:..:.
> result : SUCCESS
> test case : examples/loop.lux
> progress : ..:..:..:.:.((.:..:.:.:.)(.:..:.:.:.)(.:..:.:.:.))((..:.:.:.)(..:.:.:.)(.:..:.:.)(.:..:.:.:.)(.:..:.:.))((.:..:.:.)(..:.:.:.:.)(.:..:.:.:.)(.:..:.:.)(.:..:.:.)(.:..:.:.)(.:..:.:.:.)(.:..:.:.))...:..:..:.:...:.:.:.:.:..:.:..:.:.:.:...:..:..:.:.:.((.i=1..:..:.:.:.:..z)(z..i=2...:.:.:.:.:..z)(z..i=3..:..:.:..z)(:.z..i=4...:.:.:.):)..c........:.:..:.:..:.:..:..:.:.:.:.
> progress : ..:...:.:.((.:..:.:.)(.:.:..:.)(.:.:..:.))((..:.:.:.)(.:.:..:.)(.:..:.:.)(.:.:..:.)(.:.:..:.))((.:.:..:.)(..:.:.:.)(.:..:.:.)(.:..:.)(.:.:..:.)(.:.:..:.)(.:.:..:.)(.:..:.))...:..:.:..:..:.:..:.:..:.:..:.:...:...:.:.:.((.i=1..:..:.:.:..z)(z..i=2...:.:.:.:..z)(z..i=3..:..:.:..z)(:...i=4..:.:..:.):.).c........:..:..:.:..:..:.:.
> result : SUCCESS
> test case : examples/loop_fail.lux
> progress : ..:...:.:.:.:.((.i=1..:.:..:.:..z)(z..i=2...:.:..z)(z..i=3..:...z))+5
> progress : ..:..:..:.((.i=1..:..:.:..z)(z..i=2..:...z)(z..i=3...:.:.:..z))+5
> result : FAIL at line 5 in shell break
> expected*
>
Expand All @@ -3108,7 +3128,7 @@ Evaluate `lux examples`
> test case : examples/skip.lux
> result : SKIP as variable TEST_SUNOS is not set
> test case : examples/unstable_warn.lux
> progress : ..:..:..:.:.:....7
> progress : ..:...:.:.:....7
> warning : 8: FAIL but UNSTABLE as variable TEST_DEVELOP is not set
> result : WARNING at line 7 in shell foo
> expected*
Expand All @@ -3123,18 +3143,19 @@ Evaluate `lux examples`
> progress : W
> warning : 3: Trailing whitespaces
> result : WARNING
> successful : 3
> successful : 2
> skipped : 1
> examples/skip.lux:6
> warnings : 2
> examples/unstable_warn.lux:8 - FAIL but UNSTABLE as variable TEST_DEVELOP is not set
> examples/warning.lux:3 - Trailing whitespaces
> failed : 3
> failed : 4
> examples/calc.lux:19:61 - match_timeout
> examples/fail.lux:32 - match_timeout
> examples/loop_fail.lux:5 - Loop ended without match of break pattern "THIS WILL NEVER MATCH"
> examples/require_fail.lux:3 - FAIL as required variable YADA_MAKE is not set
> summary : FAIL
> file:///Users/hmattsso/dev/lux/lux_logs/run_2023_08_23_08_28_13_939684/lux_summary.log.html
> file:///Users/hmattsso/dev/lux/lux_logs/run_2023_10_25_13_33_18_81235/lux_summary.log.html
> .../lux> echo $?
> 1
Expand Down
45 changes: 33 additions & 12 deletions lux.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<body>
<h1>Lux - LUcid eXpect scripting</h1>

<p>Version 2.9 - 2023-08-23</p>
<p>Version 2.9.1 - 2023-10-25</p>

<ul>
<li><a href="#../README">Introduction</a></li>
Expand Down Expand Up @@ -3198,12 +3198,32 @@ <h2>Warnings and avoiding failures</h2>

<blockquote>
<pre><code>.../lux&gt; lux examples
summary log : /Users/hmattsso/dev/lux/lux_logs/run_2023_08_23_08_28_13_939684/lux_summary.log
summary log : /Users/hmattsso/dev/lux/lux_logs/run_2023_10_25_13_33_18_81235/lux_summary.log
test case : examples/calc.lux
progress : ..:..:..:.:...:..:.:.:.:....:..:.:..:..(....:..:.:.:.:.:...)(.:.:..:.:..)...:..:.:..:.:..(.:.:..:..)..(.:.:..:.:..)(....:.:.:..:...)(.:.:..:..)..(.:.:.:...).......:.:........
result : SUCCESS
progress : ..:...:.:...:..:.:.:....:.:..:.:..:..(....:..:.:.:.:.61????61)19
result : FAIL at line 19:61 in shell calc
expected*
\d+&gt;\s.*\.
(.*)
\d+&gt;\s
actual match_timeout

1&gt;
.. 2+1.
3
2&gt;
diff
- \d+&gt;\s.*\.
- (.*)
- \d+&gt;\s
+
+ 1&gt;
+ .. 2+1.
+ 3
+ 2&gt;

test case : examples/fail.lux
progress : ..:...:.:.:...:.:..:.:.:...:.:.:.:.:....:.:.:...32C..:..:.:..:..:..:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.
progress : ..:..:..:.:...:.:..:.:.:..:..:.:.:....:..:..32C..:..:..:..:..:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.
result : FAIL at line 32 in shell calculator
expected*
19
Expand All @@ -3220,13 +3240,13 @@ <h2>Warnings and avoiding failures</h2>
+ 4&gt;

test case : examples/intro.lux
progress : ..:..:..:.:..:.:.:.....:..:..:.:.:...:.:..:.:..:.:.:..:.:.:.:..:..:.:.:..:.:..:..:..:.:.:.:....c.:.....:..:..:.:..:..:.:..:.:..:.
progress : ..:..:..:..:.:..:....:..:..:.:..:.:..:..:.:..:.:..:.:..:.:.....:..:.:.:....c.:.....:..:..:..:.:..:.:..:.:..:.
result : SUCCESS
test case : examples/loop.lux
progress : ..:..:..:.:.((.:..:.:.:.)(.:..:.:.:.)(.:..:.:.:.))((..:.:.:.)(..:.:.:.)(.:..:.:.)(.:..:.:.:.)(.:..:.:.))((.:..:.:.)(..:.:.:.:.)(.:..:.:.:.)(.:..:.:.)(.:..:.:.)(.:..:.:.)(.:..:.:.:.)(.:..:.:.))...:..:..:.:...:.:.:.:.:..:.:..:.:.:.:...:..:..:.:.:.((.i=1..:..:.:.:.:..z)(z..i=2...:.:.:.:.:..z)(z..i=3..:..:.:..z)(:.z..i=4...:.:.:.):)..c........:.:..:.:..:.:..:..:.:.:.:.
progress : ..:...:.:.((.:..:.:.)(.:.:..:.)(.:.:..:.))((..:.:.:.)(.:.:..:.)(.:..:.:.)(.:.:..:.)(.:.:..:.))((.:.:..:.)(..:.:.:.)(.:..:.:.)(.:..:.)(.:.:..:.)(.:.:..:.)(.:.:..:.)(.:..:.))...:..:.:..:..:.:..:.:..:.:..:.:...:...:.:.:.((.i=1..:..:.:.:..z)(z..i=2...:.:.:.:..z)(z..i=3..:..:.:..z)(:...i=4..:.:..:.):.).c........:..:..:.:..:..:.:.
result : SUCCESS
test case : examples/loop_fail.lux
progress : ..:...:.:.:.:.((.i=1..:.:..:.:..z)(z..i=2...:.:..z)(z..i=3..:...z))+5
progress : ..:..:..:.((.i=1..:..:.:..z)(z..i=2..:...z)(z..i=3...:.:.:..z))+5
result : FAIL at line 5 in shell break
expected*

Expand All @@ -3240,7 +3260,7 @@ <h2>Warnings and avoiding failures</h2>
test case : examples/skip.lux
result : SKIP as variable TEST_SUNOS is not set
test case : examples/unstable_warn.lux
progress : ..:..:..:.:.:....7
progress : ..:...:.:.:....7
warning : 8: FAIL but UNSTABLE as variable TEST_DEVELOP is not set
result : WARNING at line 7 in shell foo
expected*
Expand All @@ -3255,18 +3275,19 @@ <h2>Warnings and avoiding failures</h2>
progress : W
warning : 3: Trailing whitespaces
result : WARNING
successful : 3
successful : 2
skipped : 1
examples/skip.lux:6
warnings : 2
examples/unstable_warn.lux:8 - FAIL but UNSTABLE as variable TEST_DEVELOP is not set
examples/warning.lux:3 - Trailing whitespaces
failed : 3
failed : 4
examples/calc.lux:19:61 - match_timeout
examples/fail.lux:32 - match_timeout
examples/loop_fail.lux:5 - Loop ended without match of break pattern "THIS WILL NEVER MATCH"
examples/require_fail.lux:3 - FAIL as required variable YADA_MAKE is not set
summary : FAIL
file:///Users/hmattsso/dev/lux/lux_logs/run_2023_08_23_08_28_13_939684/lux_summary.log.html
file:///Users/hmattsso/dev/lux/lux_logs/run_2023_10_25_13_33_18_81235/lux_summary.log.html
.../lux&gt; echo $?
1
</code></pre>
Expand Down
2 changes: 1 addition & 1 deletion vsn.mk
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
# See the file "LICENSE" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.

LUX_VSN=2.9
LUX_VSN=2.9.1

0 comments on commit 4452c53

Please sign in to comment.