Skip to content
Myr

Fix alpine build

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Muh Muhten · committed by Nico Williams · parent 6df393c · Browse files · 1 file+7 added−7 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+7 added−7 removed

  • tests:+7 added−7 removed

1 file+7 added−7 removed

modified:tests/shtest+7 added-7 removed
1#!/bin/sh -vx1#!/bin/sh23. "${0%/*}/setup" "$@"45PATH=$JQBASEDIR:$PATH $JQBASEDIR/tests/jq-f-test.sh > /dev/null
117 unmodified lines
123124125## Test --exit-status126data='{"i": 1}\n{"i": 2}\n{"i": 3}\n'127echo "$data" | $JQ --exit-status 'select(.i==1)' > /dev/null 2>&1128echo "$data" | $JQ --exit-status 'select(.i==2)' > /dev/null 2>&1129echo "$data" | $JQ --exit-status 'select(.i==3)' > /dev/null 2>&1127printf "$data" | $JQ --exit-status 'select(.i==1)' > /dev/null 2>&1128printf "$data" | $JQ --exit-status 'select(.i==2)' > /dev/null 2>&1129printf "$data" | $JQ --exit-status 'select(.i==3)' > /dev/null 2>&1130ret=0131echo "$data" | $JQ --exit-status 'select(.i==4)' > /dev/null 2>&1 || ret=$?131printf "$data" | $JQ --exit-status 'select(.i==4)' > /dev/null 2>&1 || ret=$?132[ $ret -eq 4 ]133ret=0134echo "$data" | $JQ --exit-status 'select(.i==2) | false' > /dev/null 2>&1 || ret=$?134printf "$data" | $JQ --exit-status 'select(.i==2) | false' > /dev/null 2>&1 || ret=$?135[ $ret -eq 1 ]136echo "$data" | $JQ --exit-status 'select(.i==2) | true' > /dev/null 2>&1136printf "$data" | $JQ --exit-status 'select(.i==2) | true' > /dev/null 2>&1137138139# Regression test for #951140printf '"a\n' > $d/input
190 unmodified lines