diff options
| author | Marc Vertes <mvertes@free.fr> | 2025-07-18 00:07:30 +0200 |
|---|---|---|
| committer | Marc Vertes <mvertes@free.fr> | 2025-07-18 00:07:30 +0200 |
| commit | 1f563060887b979e0138567fb13bef97dc8fd915 (patch) | |
| tree | a5f6cb42ec7c4bf2db5a8d91b3690f5f9dbb6e66 /tests | |
| parent | 3c7bc23285157858b3dc7468e5abbb16e05f31f7 (diff) | |
fix tests
Diffstat (limited to 'tests')
| -rwxr-xr-x | tests | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1,9 +1,11 @@ #!/bin/sh # Test suite for mp. +# Usage: [FAILFAST=1] tests [pattern] +# Example: tests "obj*" run() { [ "$filter" ] && case $1 in ($filter) ;; (*) return; esac - out=$(printf %s "$2" | ./mp 2>&1) + out=$(./mp -v str=1 "$2" 2>&1) [ "$out" = "$3" ] && pass=$((pass + 1)) && return printf "%s FAIL\nWant: '%s'\n Got: '%s'\n" "$1" "$3" "$out" fail=$((fail + 1)) |
