mirror of
https://github.com/tests-always-included/mo.git
synced 2025-11-19 23:34:32 +01:00
Updates for how to source "mo" and then use it
When you source mo, it adds the "mo" function to the environment.
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
cd "$(dirname $0)"
|
||||
|
||||
. ./mo
|
||||
PASS=0
|
||||
FAIL=0
|
||||
|
||||
@@ -11,7 +12,7 @@ for TEST in tests/*.expected; do
|
||||
echo -n "$BASE ... "
|
||||
echo "Do not read this input" | (
|
||||
. "${BASE}.env"
|
||||
. ./mo "${BASE}.template"
|
||||
mo "${BASE}.template"
|
||||
) | diff -wU5 - "${TEST}" > "${BASE}.diff"
|
||||
|
||||
if [[ $? -ne 0 ]]; then
|
||||
|
||||
Reference in New Issue
Block a user