1
0
mirror of https://github.com/docker-mailserver/docker-mailserver.git synced 2025-08-07 23:03:10 +02:00

tests(chore): Use REPOSITORY_ROOT export var from Makefile

Allows for using `load` with an absolute path instead of a relative one, which makes it possible to group tests into different directories.

Parallel tests differ slightly, loading the newer `helper/common.bash` and `helper/setup.bash` files instead of the older `test_helper/common.bash` which serial tests continue to use.
This commit is contained in:
Brennan Kinney
2022-11-26 11:37:58 +13:00
parent 2cd534a1ab
commit 835056d707
43 changed files with 50 additions and 49 deletions

View File

@ -1,7 +1,7 @@
#!/bin/bash
load 'test_helper/bats-support/load'
load 'test_helper/bats-assert/load'
load "${REPOSITORY_ROOT}/test/test_helper/bats-support/load"
load "${REPOSITORY_ROOT}/test/test_helper/bats-assert/load"
NAME=${NAME:-mailserver-testing:ci}

View File

@ -1,6 +1,6 @@
#!/bin/bash
load 'test_helper/common'
load "${REPOSITORY_ROOT}/test/test_helper/common"
# Helper methods for testing TLS.
# `_should_*` methods are useful for common high-level functionality.