2013-12-02 17:48:26 -05:00
|
|
|
#!/bin/bash
|
2014-04-08 00:14:19 -04:00
|
|
|
set -e
|
2013-10-18 01:40:41 -04:00
|
|
|
|
|
|
|
DEST=$1
|
|
|
|
INIT=$DEST/../dynbinary/dockerinit-$VERSION
|
|
|
|
|
|
|
|
if [ ! -x "$INIT" ]; then
|
2014-06-19 17:05:42 -04:00
|
|
|
echo >&2 'error: dynbinary must be run before dyntest-unit'
|
2013-10-18 01:40:41 -04:00
|
|
|
false
|
|
|
|
fi
|
|
|
|
|
2013-12-08 20:40:05 -05:00
|
|
|
(
|
|
|
|
export TEST_DOCKERINIT_PATH="$INIT"
|
2014-03-06 21:55:22 -05:00
|
|
|
export LDFLAGS_STATIC_DOCKER="
|
2014-07-30 19:02:04 -04:00
|
|
|
-X $DOCKER_PKG/dockerversion.INITSHA1 \"$DOCKER_INITSHA1\"
|
2014-03-06 21:55:22 -05:00
|
|
|
"
|
2014-06-19 17:05:42 -04:00
|
|
|
source "$(dirname "$BASH_SOURCE")/test-unit"
|
2013-12-08 20:40:05 -05:00
|
|
|
)
|