test.sh: Support local testing environment

Add Dockerfiles that can build and run test-runner locally. test.sh provides a
simple command line interface to the environment.

This is just a start. We should be able to start implementing more robust tests
and validations on top of test.sh and the 'test' dir.

Change-Id: Idc1dc9a8752b244ba0c04427d9eb43ac19863377
Signed-off-by: Dan Rue <dan.rue@linaro.org>
diff --git a/test.sh b/test.sh
new file mode 100755
index 0000000..fbe3d1a
--- /dev/null
+++ b/test.sh
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+set -e
+
+if [ -z "$1" ] || [ ! -e "test/Dockerfile.${1}" ]; then
+    echo "USAGE: $0 [debian|centos]"
+    exit 1
+fi
+
+python3 validate.py -g -s SC1091
+docker build -f test/Dockerfile."${1}" -t erp-"${1}" . && docker run --rm -it -v "$(pwd)":/work erp-"${1}"
+