From 72a43414fe6b6451d0587ad29d65129b4782a3b7 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Mon, 2 Sep 2024 11:03:10 -0300 Subject: Init Go project skeleton with golite init --- tests/cli-opts.sh | 4 ++++ tests/integration.sh | 4 ++++ tests/liteq.go | 35 +++++++++++++++++++++++++++++++++++ tests/main.go | 7 +++++++ 4 files changed, 50 insertions(+) create mode 100755 tests/cli-opts.sh create mode 100755 tests/integration.sh create mode 100644 tests/liteq.go create mode 100644 tests/main.go (limited to 'tests') diff --git a/tests/cli-opts.sh b/tests/cli-opts.sh new file mode 100755 index 0000000..fcb62ca --- /dev/null +++ b/tests/cli-opts.sh @@ -0,0 +1,4 @@ +#!/bin/sh +set -eu + +exit diff --git a/tests/integration.sh b/tests/integration.sh new file mode 100755 index 0000000..fcb62ca --- /dev/null +++ b/tests/integration.sh @@ -0,0 +1,4 @@ +#!/bin/sh +set -eu + +exit diff --git a/tests/liteq.go b/tests/liteq.go new file mode 100644 index 0000000..86d1bef --- /dev/null +++ b/tests/liteq.go @@ -0,0 +1,35 @@ +package q + +import ( + "os" + "testing" + "testing/internal/testdeps" + + g "gobang" +) + + + +func TestX(t *testing.T) { + g.AssertEqual(1, 1) +} + + + +func MainTest() { + tests := []testing.InternalTest { + { "TestX", TestX }, + } + + benchmarks := []testing.InternalBenchmark {} + fuzzTargets := []testing.InternalFuzzTarget {} + examples := []testing.InternalExample {} + m := testing.MainStart( + testdeps.TestDeps {}, + tests, + benchmarks, + fuzzTargets, + examples, + ) + os.Exit(m.Run()) +} diff --git a/tests/main.go b/tests/main.go new file mode 100644 index 0000000..893132e --- /dev/null +++ b/tests/main.go @@ -0,0 +1,7 @@ +package main + +import "q" + +func main() { + q.MainTest() +} -- cgit v1.2.3