From 2525055c90d53bec7cabb60112c3cf862f93ff66 Mon Sep 17 00:00:00 2001 From: Andreas Gustafsson Date: Mon, 12 Jun 2000 22:37:36 +0000 Subject: [PATCH] support Irix; don't touch/remove /var/run/system_test_ifsetup multiple times --- bin/tests/system/ifconfig.sh | 11 +++++++++-- bin/tests/system/run.sh | 2 ++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/bin/tests/system/ifconfig.sh b/bin/tests/system/ifconfig.sh index 1943131673..bbff7f8619 100644 --- a/bin/tests/system/ifconfig.sh +++ b/bin/tests/system/ifconfig.sh @@ -57,12 +57,15 @@ case "$1" in *-pc-bsdi4.*) ifconfig lo0 add 10.53.0.$ns ;; + *-sgi-irix6.*) + /usr/etc/ifconfig lo0 alias 10.53.0.$ns + ;; *) echo "Don't know how to set up interface. Giving up." exit 1 esac - touch /var/run/system_test_ifsetup done + touch /var/run/system_test_ifsetup ;; 'stop') @@ -93,12 +96,16 @@ case "$1" in *-pc-bsdi4.*) ifconfig lo0 remove 10.53.0.$ns ;; + *-sgi-irix6.*) + ifconfig lo0 -alias 10.53.0.$ns + ;; *) echo "Don't know how to destroy interface. Giving up." exit 1 esac - rm -f /var/run/system_test_ifsetup done + rm -f /var/run/system_test_ifsetup + ;; *) diff --git a/bin/tests/system/run.sh b/bin/tests/system/run.sh index 8e7632b8a1..66ff35d961 100644 --- a/bin/tests/system/run.sh +++ b/bin/tests/system/run.sh @@ -38,7 +38,9 @@ test -d $test || { echo "$0: $test: no such test" >&2; exit 1; } echo "S:`date`" echo "T:$test:1:A" >&2 +# Irix does not have /var/run test -f /var/run/system_test_ifsetup || +test -f /etc/system_test_ifsetup || { echo "I:Interfaces not set up. Not trying system tests." >&2; exit 0; }