# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
+cd "$(dirname "$0")"/..
+
exec docker build --pull \
--compress \
- -t frrouting/topotests \
+ -t frrouting/frr:topotests-latest \
.
TOPOTEST_OPTIONS These options are appended to the docker-run
command for starting the tests.
- TOPOTEST_PATH If set, don't use the tests built into the image
- but the ones at the given path.
-
TOPOTEST_SANITIZER Controls whether to use the address sanitizer.
Enabled by default, set to 0 to disable.
set -- --rm -ti \
-v "$TOPOTEST_LOGS:/tmp" \
-v "$TOPOTEST_FRR:/root/host-frr:ro" \
+ -v "$TOPOTEST_FRR/tests/topotests:/root/topotests:ro" \
-v "$TOPOTEST_BUILDCACHE:/root/persist" \
-e "TOPOTEST_CLEAN=$TOPOTEST_CLEAN" \
-e "TOPOTEST_VERBOSE=$TOPOTEST_VERBOSE" \
-e "TOPOTEST_SANITIZER=$TOPOTEST_SANITIZER" \
--privileged \
$TOPOTEST_OPTIONS \
- frrouting/topotests "$@"
-
-if [ -n "$TOPOTEST_PATH" ]; then
- set -- -v "$TOPOTEST_PATH:/root/topotests:ro" "$@"
-fi
+ frrouting/frr:topotests-latest "$@"
exec docker run "$@"
--- /dev/null
+TOPOTESTS_DIR = tests/topotests
+
+topotests-build: ## Builds docker images for topotests
+ $(TOPOTESTS_DIR)/docker/build.sh
+
+topotests: ## Runs topotests
+ $(TOPOTESTS_DIR)/docker/frr-topotests.sh