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