From 09821c8898759eb9f72870c4d94d05998138fff6 Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Sun, 20 Aug 2023 23:53:11 -0400 Subject: [PATCH] Prefix the automatically generated tests. --- .dockerignore | 1 + docker/cargo_fmt/Makefile | 2 +- docker/organic_build/Makefile | 2 +- docker/organic_test/Makefile | 2 +- tests/test_template | 2 +- 5 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.dockerignore b/.dockerignore index 5a6ec02a..d11570b7 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,3 +1,4 @@ **/.git target Cargo.lock +notes/ diff --git a/docker/cargo_fmt/Makefile b/docker/cargo_fmt/Makefile index 76375e2a..121b50ed 100644 --- a/docker/cargo_fmt/Makefile +++ b/docker/cargo_fmt/Makefile @@ -6,7 +6,7 @@ all: build push .PHONY: build build: - docker build -t $(IMAGE_NAME) -f Dockerfile ../ + docker build -t $(IMAGE_NAME) -f Dockerfile ../../ .PHONY: push push: diff --git a/docker/organic_build/Makefile b/docker/organic_build/Makefile index 001c941c..950cc714 100644 --- a/docker/organic_build/Makefile +++ b/docker/organic_build/Makefile @@ -6,7 +6,7 @@ all: build push .PHONY: build build: - docker build -t $(IMAGE_NAME) -f Dockerfile ../ + docker build -t $(IMAGE_NAME) -f Dockerfile ../../ .PHONY: push push: diff --git a/docker/organic_test/Makefile b/docker/organic_test/Makefile index 30b9b6b5..2de6ba13 100644 --- a/docker/organic_test/Makefile +++ b/docker/organic_test/Makefile @@ -6,7 +6,7 @@ all: build push .PHONY: build build: - docker build -t $(IMAGE_NAME) -f Dockerfile ../ + docker build -t $(IMAGE_NAME) -f Dockerfile ../../ .PHONY: push push: diff --git a/tests/test_template b/tests/test_template index 442db660..53edd64c 100644 --- a/tests/test_template +++ b/tests/test_template @@ -1,5 +1,5 @@ #[test] -fn {name}() {{ +fn autogen_{name}() {{ let todo_org_path = "{path}"; let org_contents = std::fs::read_to_string(todo_org_path).expect("Read org file."); println!("{{}}", org_contents);