From d756a1613234b4459917f3e035a909cfeaba11ee Mon Sep 17 00:00:00 2001 From: jutty Date: Mon, 16 Mar 2026 20:08:08 -0300 Subject: [PATCH] Cleanup tests directory --- tests/containers/build.sh | 21 --------------------- tests/containers/run.sh | 12 ------------ tests/mocks/bad_graph/static/graph.toml | 3 --- tests/mocks/good_json/graph.json | 13 ------------- tests/mocks/no_graph/.git_placeholder | 0 5 files changed, 49 deletions(-) delete mode 100755 tests/containers/build.sh delete mode 100755 tests/containers/run.sh delete mode 100644 tests/mocks/bad_graph/static/graph.toml delete mode 100644 tests/mocks/good_json/graph.json delete mode 100644 tests/mocks/no_graph/.git_placeholder diff --git a/tests/containers/build.sh b/tests/containers/build.sh deleted file mode 100755 index f426ea2..0000000 --- a/tests/containers/build.sh +++ /dev/null @@ -1,21 +0,0 @@ -#!/usr/bin/env sh - -set -eu -suffix=$(printf '%s' "$1" | sed 's/.*\.//') -tag="en:$suffix" - -if podman container exists "$tag"; then - podman stop --time 3 "$tag" -fi - -if [ "$suffix" = 'debian-dev' ]; then - cp ../../target/release/en en -elif [ "$suffix" = 'alpine-dev' ]; then - cp ../../target/x86_64-unknown-linux-musl/release/en en -fi - -podman build \ - --tag "$tag" \ - -f "Containerfile.$suffix" - -rm en diff --git a/tests/containers/run.sh b/tests/containers/run.sh deleted file mode 100755 index 784ec44..0000000 --- a/tests/containers/run.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/usr/bin/env sh - -set -eu -suffix=$(printf '%s' "$1" | sed 's/.*\.//') -name="en-$suffix" -tag="en:$suffix" - -podman run \ - --replace \ - --name "$name" \ - --publish 3008:80 \ - "$tag" diff --git a/tests/mocks/bad_graph/static/graph.toml b/tests/mocks/bad_graph/static/graph.toml deleted file mode 100644 index 2d79863..0000000 --- a/tests/mocks/bad_graph/static/graph.toml +++ /dev/null @@ -1,3 +0,0 @@ -[meta] -config = { -' diff --git a/tests/mocks/good_json/graph.json b/tests/mocks/good_json/graph.json deleted file mode 100644 index 31363fb..0000000 --- a/tests/mocks/good_json/graph.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "nodes": { - "JSON": { - "text": "", - "title": "JSON", - "links": [], - "id": "JSON", - "hidden": false, - "connections": [] - } - }, - "root_node": "JSON" -} diff --git a/tests/mocks/no_graph/.git_placeholder b/tests/mocks/no_graph/.git_placeholder deleted file mode 100644 index e69de29..0000000