From 65932f6d2398260554fb167a887fa4e829149983 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Thu, 8 Aug 2024 17:25:11 -0300 Subject: mv tests/gobang_main.go tests/main.go --- Makefile | 18 +++++++++--------- tests/gobang_main.go | 7 ------- tests/main.go | 7 +++++++ 3 files changed, 16 insertions(+), 16 deletions(-) delete mode 100644 tests/gobang_main.go create mode 100644 tests/main.go diff --git a/Makefile b/Makefile index d4906c3..b2773fa 100644 --- a/Makefile +++ b/Makefile @@ -33,7 +33,7 @@ include deps.mk objects = \ src/$(NAME).a \ tests/$(NAME).a \ - tests/$(NAME)_main.a \ + tests/main.a \ sources = \ src/$(NAME).go \ @@ -41,7 +41,7 @@ sources = \ derived-assets = \ $(objects) \ - tests/$(NAME)_main.bin \ + tests/main.bin \ side-assets = \ @@ -60,21 +60,21 @@ src/$(NAME).a: src/$(NAME).go tests/$(NAME).a: tests/$(NAME).go src/$(NAME).go go tool compile $(GOCFLAGS) -o $@ -p $(*F) $*.go src/$(NAME).go -tests/$(NAME)_main.a: tests/$(NAME)_main.go tests/$(NAME).a +tests/main.a: tests/main.go tests/$(NAME).a go tool compile $(GOCFLAGS) -o $@ -I $(@D) $*.go -tests/$(NAME)_main.bin: tests/$(NAME)_main.a +tests/main.bin: tests/main.a go tool link $(GOLDFLAGS) -o $@ -L $(@D) $*.a tests.bin-check = \ - tests/$(NAME)_main.bin/1 \ - tests/$(NAME)_main.bin/2 \ - tests/$(NAME)_main.bin/3 \ - tests/$(NAME)_main.bin/4 \ + tests/main.bin/1 \ + tests/main.bin/2 \ + tests/main.bin/3 \ + tests/main.bin/4 \ -$(tests.bin-check): tests/$(NAME)_main.bin +$(tests.bin-check): tests/main.bin $(tests.bin-check): $(EXEC)$(@D) $(@F) diff --git a/tests/gobang_main.go b/tests/gobang_main.go deleted file mode 100644 index 2dcbdf0..0000000 --- a/tests/gobang_main.go +++ /dev/null @@ -1,7 +0,0 @@ -package main - -import "gobang" - -func main() { - gobang.MainTest() -} diff --git a/tests/main.go b/tests/main.go new file mode 100644 index 0000000..2dcbdf0 --- /dev/null +++ b/tests/main.go @@ -0,0 +1,7 @@ +package main + +import "gobang" + +func main() { + gobang.MainTest() +} -- cgit v1.2.3