From 0624b294c3926c99a37084e0a31b0f2e283da83c Mon Sep 17 00:00:00 2001 From: Andrea Leopardi Date: Wed, 16 Oct 2024 12:06:28 +0200 Subject: [PATCH] Add support for OTP 27 (#10) --- .github/workflows/ci.yml | 4 ++-- .tool-versions | 2 +- README.md | 24 +++++++++++++++++++++--- 3 files changed, 24 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2be958c..6a38814 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,7 +16,7 @@ jobs: runs-on: ubuntu-22.04 strategy: matrix: - otp_version: ['26.2', '25.3'] + otp_version: ['27.1', '26.2'] steps: - uses: actions/checkout@v4 @@ -40,7 +40,7 @@ jobs: runs-on: ubuntu-22.04 strategy: matrix: - otp_version: ['26.2', '25.3'] + otp_version: ['27.1', '26.2'] needs: - build diff --git a/.tool-versions b/.tool-versions index c1140d3..a7ec022 100644 --- a/.tool-versions +++ b/.tool-versions @@ -1 +1 @@ -erlang 26.2.5.2 +erlang 27.1.1 diff --git a/README.md b/README.md index a63b050..9e0371c 100644 --- a/README.md +++ b/README.md @@ -2,14 +2,32 @@ Regression tests taken from the PowerDNS 3 regression test suite and converted to an Erlang environment. +## Building + +```bash +make +``` + +## Configuration + +You can find the configuration in [`dnstest.config`](./dnstest.config). Modify it at will to point it to the DNS server you wish to test against. + ## Running -### The entire suite +You'll need to have a DNS server running. For example, start [`erldns`](https://github.com/dnsimple/erldns) before running this testing tool. + +### The Entire Suite ```bash run.sh ``` -### A Single test +### A Single Test + +When the shell script runs, you will be left with a console. From there you may run individual tests with `dnstest:run(atom)` where `atom` is the atom identifier of the test. + +## Testing `dnstest` Itself -When the shell script runs you will be left with a console. From there you may run individual tests with `dnstest:run(atom)` where `atom` is the atom identifier of the test. +```bash +make test +```