From 3881c06578b723233c1b9179d20317668044c1cf Mon Sep 17 00:00:00 2001 From: Gabriela Cervantes Date: Fri, 3 Jan 2020 09:34:59 -0600 Subject: [PATCH] ci: Add minimal makefile to use central go test script This adds a basic Makefile where we can use a central go test script in order to run the tests for the CI. Fixes #109 Signed-off-by: Gabriela Cervantes --- Makefile | 7 +++++++ ci/go-test.sh | 11 +++++++++++ ci/lib.sh | 6 ++++++ 3 files changed, 24 insertions(+) create mode 100644 Makefile create mode 100755 ci/go-test.sh diff --git a/Makefile b/Makefile new file mode 100644 index 000000000..6d1c4f708 --- /dev/null +++ b/Makefile @@ -0,0 +1,7 @@ +# Copyright (c) 2020 Intel Corporation +# +# SPDX-License-Identifier: Apache-2.0 +# + +test: + bash ci/go-test.sh diff --git a/ci/go-test.sh b/ci/go-test.sh new file mode 100755 index 000000000..e6881f005 --- /dev/null +++ b/ci/go-test.sh @@ -0,0 +1,11 @@ +# +# Copyright (c) 2020 Intel Corporation +# +# SPDX-License-Identifier: Apache-2.0 + +set -e + +cidir=$(dirname "$0") +source "${cidir}/lib.sh" + +run_go_test diff --git a/ci/lib.sh b/ci/lib.sh index 2b69144ce..63dce9c3b 100644 --- a/ci/lib.sh +++ b/ci/lib.sh @@ -33,3 +33,9 @@ run_rust_test() clone_tests_repo bash "$tests_repo_dir/.ci/rust-test.sh" } + +run_go_test() +{ + clone_tests_repo + bash "$tests_repo_dir/.ci/go-test.sh" +}