#!/usr/bin/env bash
# Docker image build tests

# Bring in testlib
. $(dirname "$0")/testlib.sh

# Setup backup snapshot data dir and remote repositories dir locations to use
# the per-test temp space.
GHE_DATA_DIR="$TRASHDIR/data"
GHE_REMOTE_DATA_DIR="$TRASHDIR/remote"
export GHE_DATA_DIR GHE_REMOTE_DATA_DIR

# Source in the config script
cd "$ROOTDIR"
. "share/github-backup-utils/ghe-backup-config"

begin_test "ghe-backup logs the benchmark"
(
  set -e

  docker build -t github/backup-utils:test . | grep "Successfully built"
)
end_test

docker build -t github/backup-utils:test .

Add a basic Docker build test
Add a basic Docker build test
