Skip to content

Commit a167a73

Browse files
committed
Add test instruction for docker based db test
1 parent 451148f commit a167a73

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

docker/README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,14 @@ Keycloak:
3333
MariaDB:
3434
* Root: `root`/`root`
3535
* HotCRP: `hotcrp`/`hotcrppwd`
36+
37+
# Running Tests
38+
39+
On MacOS, poppler is required to run tests. You can install it with `brew install poppler`.
40+
41+
```bash
42+
docker run --rm --name hotcrp-db -e MARIADB_ROOT_PASSWORD=root -p 3306:3306 -v ./docker/05-skipcache.cnf:/etc/mysql/mariadb.conf.d/05-skipcache.cnf mariadb:10.11
43+
lib/createdb.sh -u root -proot -h127.0.0.1 -c test/options.php --batch --grant-host='%'
44+
lib/createdb.sh -u root -proot -h127.0.0.1 -c test/cdb-options.php --no-dbuser --batch --grant-host='%'
45+
MYSQL_HOST=127.0.0.1 test/check.sh --all
46+
```

0 commit comments

Comments
 (0)