diff --git a/.claude/settings.json b/.claude/settings.json new file mode 100644 index 0000000..245d950 --- /dev/null +++ b/.claude/settings.json @@ -0,0 +1,8 @@ +{ + "permissions": { + "additionalDirectories": [ + "../pgxntool/", + "../pgxntool-test/" + ] + } +} diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..e976821 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,3 @@ +.gitattributes export-ignore +.claude/ export-ignore +.DS_Store export-ignore diff --git a/CLAUDE.md b/CLAUDE.md new file mode 100644 index 0000000..a77a726 --- /dev/null +++ b/CLAUDE.md @@ -0,0 +1,27 @@ +# CLAUDE.md + +## Repository Status: DEPRECATED + +**This repository is deprecated and no longer used.** It is kept only to preserve its commit history. + +## What Happened + +The template extension files that used to live in this repository have been moved to `../pgxntool-test/template/`. The test harness now creates fresh test repositories directly from that template directory, eliminating the need for a separate template repository. + +## Migration + +If you need the template files, they are now located at: +- **../pgxntool-test/template/** + +The test harness (`../pgxntool-test/`) contains all testing infrastructure and template files in a single repository. + +## Two-Repository Pattern + +The pgxntool project now uses a simpler two-repository pattern: + +1. **../pgxntool/** - The framework code that gets embedded into extension projects +2. **../pgxntool-test/** - The test harness (includes template files in `template/` directory) + +## Historical Context + +This repository previously served as a minimal "dummy" PostgreSQL extension used as a test subject. Tests would clone this repository and manipulate it to validate pgxntool's functionality. This approach has been replaced with a simpler method of creating fresh test repositories from template files stored directly in the test harness. diff --git a/README.md b/README.md new file mode 100644 index 0000000..9f89aef --- /dev/null +++ b/README.md @@ -0,0 +1,35 @@ +# pgxntool-test-template + +## ⚠️ DEPRECATED REPOSITORY + +**This repository is no longer used and exists only to preserve its commit history.** + +## What Happened + +The template extension files that used to live here have been moved to: +- **[pgxntool-test/template/](https://github.com/decibel/pgxntool-test/tree/master/template)** + +The test harness now creates fresh test repositories directly from that template directory, eliminating the need for a separate template repository. + +## Current Architecture + +The pgxntool project now uses a two-repository pattern: + +1. **[pgxntool](https://github.com/decibel/pgxntool)** - The framework code +2. **[pgxntool-test](https://github.com/decibel/pgxntool-test)** - The test harness with template files + +## Migration Guide + +If you were using this repository: +- Template files are now in `pgxntool-test/template/` +- Tests create repositories directly from those template files +- No changes needed to existing workflows using `pgxntool-test` + +## Historical Context + +This repository served as a minimal PostgreSQL extension that was cloned and manipulated during testing. The approach has been simplified to use template files stored directly in the test harness repository. + +--- + +**Repository archived on:** 2026-01-08 +**Reason:** Consolidated into pgxntool-test repository diff --git a/pgxntool-test.control b/pgxntool-test.control deleted file mode 100644 index 35142c0..0000000 --- a/pgxntool-test.control +++ /dev/null @@ -1 +0,0 @@ -default_version = '0.1.0' diff --git a/t/.gitignore b/t/.gitignore deleted file mode 100644 index 2f5184c..0000000 --- a/t/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -.*.swp -.DS_Store diff --git a/t/TEST_DOC.asc b/t/TEST_DOC.asc deleted file mode 100644 index 9a01daf..0000000 --- a/t/TEST_DOC.asc +++ /dev/null @@ -1 +0,0 @@ -This is just a test file. diff --git a/t/doc/adoc_doc.adoc b/t/doc/adoc_doc.adoc deleted file mode 100644 index e69de29..0000000 diff --git a/t/doc/asc_doc.asc b/t/doc/asc_doc.asc deleted file mode 100644 index e69de29..0000000 diff --git a/t/doc/asciidoc_doc.asciidoc b/t/doc/asciidoc_doc.asciidoc deleted file mode 100644 index e69de29..0000000 diff --git a/t/doc/other.html b/t/doc/other.html deleted file mode 100644 index e69de29..0000000 diff --git a/t/sql/pgxntool-test--0.1.0--0.1.1.sql b/t/sql/pgxntool-test--0.1.0--0.1.1.sql deleted file mode 100644 index e69de29..0000000 diff --git a/t/sql/pgxntool-test.sql b/t/sql/pgxntool-test.sql deleted file mode 100644 index 3cea3d8..0000000 --- a/t/sql/pgxntool-test.sql +++ /dev/null @@ -1,8 +0,0 @@ -CREATE FUNCTION "pgxntool-test"( - a int - , b int -) RETURNS int LANGUAGE sql IMMUTABLE AS $body$ -SELECT $1 + $2 -- 9.1 doesn't support named sql language parameters -$body$; - --- vi: expandtab ts=2 sw=2 diff --git a/t/test/input/pgxntool-test.source b/t/test/input/pgxntool-test.source deleted file mode 100644 index d076ebd..0000000 --- a/t/test/input/pgxntool-test.source +++ /dev/null @@ -1,12 +0,0 @@ -\i @abs_srcdir@/pgxntool/setup.sql - -SELECT plan(1); - -SELECT is( - "pgxntool-test"(1,2) - , 3 -); - -\i @abs_srcdir@/pgxntool/finish.sql - --- vi: expandtab ts=2 sw=2