ADDED tests/simplerun/tests/test1/step1.logpro Index: tests/simplerun/tests/test1/step1.logpro ================================================================== --- /dev/null +++ tests/simplerun/tests/test1/step1.logpro @@ -0,0 +1,8 @@ +;; You should have at least one expect:required. This ensures that your process ran +(expect:required in "LogFileBody" > 0 "Put description here" #/put pattern here/) + +;; You may need ignores to suppress false error or warning hits from the later expects +;; NOTE: Order is important here! +(expect:ignore in "LogFileBody" < 99 "Ignore the word error in comments" #/^\/\/.*error/) +(expect:warning in "LogFileBody" = 0 "Any warning" #/warn/) +(expect:error in "LogFileBody" = 0 "Any error" (list #/ERROR/ #/error/)) ;; but disallow any other errors ADDED tests/simplerun/tests/test1/step1.sh Index: tests/simplerun/tests/test1/step1.sh ================================================================== --- /dev/null +++ tests/simplerun/tests/test1/step1.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env bash + +# Run your step here ADDED tests/simplerun/tests/test1/step2.logpro Index: tests/simplerun/tests/test1/step2.logpro ================================================================== --- /dev/null +++ tests/simplerun/tests/test1/step2.logpro @@ -0,0 +1,8 @@ +;; You should have at least one expect:required. This ensures that your process ran +(expect:required in "LogFileBody" > 0 "Put description here" #/put pattern here/) + +;; You may need ignores to suppress false error or warning hits from the later expects +;; NOTE: Order is important here! +(expect:ignore in "LogFileBody" < 99 "Ignore the word error in comments" #/^\/\/.*error/) +(expect:warning in "LogFileBody" = 0 "Any warning" #/warn/) +(expect:error in "LogFileBody" = 0 "Any error" (list #/ERROR/ #/error/)) ;; but disallow any other errors ADDED tests/simplerun/tests/test1/step2.sh Index: tests/simplerun/tests/test1/step2.sh ================================================================== --- /dev/null +++ tests/simplerun/tests/test1/step2.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env bash + +# Run your step here