#!/bin/sh

case "$1" in
    setenv1)
        if [ "$FOO" = "foo" -a "$BAR" = "bar" -a "$BAZ" = "baz" ]; then
            echo 1 >> ./env-record
        fi
        ;;
    setenv2)
        if [ "$FOO" = "foo" ]; then
            echo 2 >> ./env-record
            export BAR=bar
            dinitctl -p socket setenv BAR BAZ=baz
        fi
        ;;
    setenv3)
        dinitctl -p socket setenv FOO=foo
        echo 3 >> ./env-record
        ;;
    *) ;;
esac

#!/bin/sh

case "$1" in
    setenv1)
        if [ "$FOO" = "foo" -a "$BAR" = "bar" -a "$BAZ" = "baz" ]; then
            echo 1 >> ./env-record
        fi
        ;;
    setenv2)
        if [ "$FOO" = "foo" ]; then
            echo 2 >> ./env-record
            export BAR=bar
            ../../dinitctl -p socket setenv BAR BAZ=baz
        fi
        ;;
    setenv3)
        ../../dinitctl -p socket setenv FOO=foo
        echo 3 >> ./env-record
        ;;
    *) ;;
esac

Fix integration tests without dinit installed
Fix integration tests without dinit installed
