#!/bin/sh # Tests for bin/newer-version. # # Extracted from bin/doctor (#30) once `task check` needed the same comparison # (#34): check asserted plugin.json == latest tag, which is red on any checkout # that has not fetched the tag the CI tagger just pushed. The assertion it # actually wants is "not behind", and ordering needs a real comparison. set -u ROOT=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) SUT="$ROOT/bin/newer-version" pass=0 fail=0 if [ ! -f "$SUT" ]; then printf 'FAIL: %s does not exist\n' "$SUT" exit 1 fi # expect