Skip to content

Commit 9100ede

Browse files
authored
Updated docs for host-platform test defaults and aligned test commands. (#188)
1 parent 6c6d841 commit 9100ede

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ BASE_IMAGE=drevops/mariadb-drupal-data:canary ./seed.sh path/to/db.sql myorg/myi
9999

100100
### Platform-specific Testing
101101

102-
Test for ARM64:
102+
Tests run for the host platform by default. To force a specific platform, set the platform variables explicitly; forcing a foreign platform requires emulation, under which MariaDB does not start reliably:
103103

104104
```bash
105105
BUILDX_PLATFORMS=linux/arm64 DOCKER_DEFAULT_PLATFORM=linux/arm64 tests/bats/node_modules/.bin/bats tests/bats/image.bats

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ imports.
5555
## Seeding image with your database
5656

5757
1. Download the `seed.sh` script from this repository:
58+
5859
```shell
5960
curl -LO https://github.com/drevops/mariadb-drupal-data/releases/latest/download/seed.sh
6061
chmod +x seed.sh
@@ -82,8 +83,15 @@ Note that you should already be logged in to the registry as `seed.sh` will be p
8283

8384
### Running tests
8485

86+
Tests run for the host platform by default.
87+
8588
```shell
86-
npm --prefix tests/bats install
89+
npm --prefix tests/bats ci
90+
91+
# All tests.
92+
tests/bats/node_modules/.bin/bats tests/bats --tap
93+
94+
# Individual test files.
8795
tests/bats/node_modules/.bin/bats tests/bats/image.bats --tap
8896
tests/bats/node_modules/.bin/bats tests/bats/seed.bats --tap
8997
```

0 commit comments

Comments
 (0)