From de8fa321eaf9494b63f680c5cd14e8b05e2455ce Mon Sep 17 00:00:00 2001 From: "R. Tyler Croy" Date: Wed, 3 Jan 2018 18:00:49 -0800 Subject: [PATCH] Add support for testing some of the primitive shell scripts we will need --- .gitignore | 2 ++ Makefile | 11 +++++++++++ t/base/includes.bats | 4 ++++ 3 files changed, 17 insertions(+) create mode 100644 Makefile create mode 100644 t/base/includes.bats diff --git a/.gitignore b/.gitignore index 6143e53..e03bbd8 100644 --- a/.gitignore +++ b/.gitignore @@ -20,3 +20,5 @@ # virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml hs_err_pid* +*.sw* +vendor/ diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..751cf8d --- /dev/null +++ b/Makefile @@ -0,0 +1,11 @@ +check: vendor/bats + ./vendor/bats/bin/bats $(wildcard t/*.bats) $(wildcard t/**/*.bats) + +vendor/bats: + mkdir -p vendor + git clone --depth 1 \ + -b v0.4.0 \ + https://github.com/sstephenson/bats.git $@ + + +.PHONY: check diff --git a/t/base/includes.bats b/t/base/includes.bats new file mode 100644 index 0000000..2231a2b --- /dev/null +++ b/t/base/includes.bats @@ -0,0 +1,4 @@ +#!/usr/bin/env bats + +@test "exact match" { +}