summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rwxr-xr-xtests/cli-opts.sh4
-rwxr-xr-xtests/integration.sh4
-rw-r--r--tests/liteq.go35
-rw-r--r--tests/main.go7
4 files changed, 50 insertions, 0 deletions
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()
+}