parallel.sh revision 1.1.1.4
1#!/bin/sh 2 3# Copyright (C) Internet Systems Consortium, Inc. ("ISC") 4# 5# SPDX-License-Identifier: MPL-2.0 6# 7# This Source Code Form is subject to the terms of the Mozilla Public 8# License, v. 2.0. If a copy of the MPL was not distributed with this 9# file, you can obtain one at https://mozilla.org/MPL/2.0/. 10# 11# See the COPYRIGHT file distributed with this work for additional 12# information regarding copyright ownership. 13 14. ./conf.sh 15 16PARALLELS=`echo $PARALLELDIRS | sed "s|\([^ ][^ ]*\)|test-\1|g;" | tr _ -` 17 18echo ".PHONY: $PARALLELS" 19echo 20echo "check_interfaces:" 21echo " @${PERL} testsock.pl > /dev/null 2>&1 || { \\" 22echo " echo \"I:NOTE: System tests were skipped because they require the\"; \\" 23echo " echo \"I: test IP addresses 10.53.0.* to be configured as alias\"; \\" 24echo " echo \"I: addresses on the loopback interface. Please run\"; \\" 25echo " echo \"I: \"bin/tests/system/ifconfig.sh up\" as root to configure them.\"; \\" 26echo " exit 1; \\" 27echo " }" 28echo 29echo "test check: $PARALLELS" 30port=${STARTPORT:-5000} 31for directory in $PARALLELDIRS ; do 32 echo 33 echo "test-`echo $directory | tr _ -`: check_interfaces" 34 echo " @${SHELL} ./run.sh -p $port $directory 2>&1 | tee test.output.$directory" 35 port=`expr $port + 100` 36done 37