diff options
Diffstat (limited to 'framework/src/ant/apache-ant-1.9.6/src/tests/antunit/taskdefs/hostinfo-test.xml')
-rw-r--r-- | framework/src/ant/apache-ant-1.9.6/src/tests/antunit/taskdefs/hostinfo-test.xml | 64 |
1 files changed, 0 insertions, 64 deletions
diff --git a/framework/src/ant/apache-ant-1.9.6/src/tests/antunit/taskdefs/hostinfo-test.xml b/framework/src/ant/apache-ant-1.9.6/src/tests/antunit/taskdefs/hostinfo-test.xml deleted file mode 100644 index a044b9b1..00000000 --- a/framework/src/ant/apache-ant-1.9.6/src/tests/antunit/taskdefs/hostinfo-test.xml +++ /dev/null @@ -1,64 +0,0 @@ -<?xml version="1.0"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one or more - contributor license agreements. See the NOTICE file distributed with - this work for additional information regarding copyright ownership. - The ASF licenses this file to You under the Apache License, Version 2.0 - (the "License"); you may not use this file except in compliance with - the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. ---> -<project name="hostinfo-test" default="antunit" - xmlns:au="antlib:org.apache.ant.antunit"> - - <import file="../antunit-base.xml" /> - - <property name="undef-name" value="nonexistenthost.nonexistentdomain" /> - <property name="undef-hostname" value="nonexistenthost" /> - <property name="undef-domainname" value="nonexistentdomain" /> - - <property name="undef-ip4" value="0.0.0.0" /> - <property name="undef-ip6" value="::" /> - - <property name="xs4all-hostname" value="www.xs4all.nl" /> - <property name="xs4all-domain" value="xs4all.nl" /> - <property name="xs4all-realhost" value="www" /> - <property name="xs4all-ip4" value="194.109.6.92" /> - - <target name="setUp"> - </target> - - <target name="testLocal" depends="setUp"> - <hostinfo prefix="local" /> - <!-- Do not know what to expect here, machine dependent --> - </target> - - <target name="testForward" depends="setUp"> - <hostinfo host="${xs4all-hostname}"/> - <au:assertEquals expected="${xs4all-realhost}" actual="${NAME}"/> - <au:assertEquals expected="${xs4all-domain}" actual="${DOMAIN}"/> - <au:assertEquals expected="${xs4all-ip4}" actual="${ADDR4}"/> - </target> - - <target name="testReverse" depends="setUp"> - <hostinfo prefix="reverse" host="${xs4all-ip4}"/> - <au:assertEquals expected="${xs4all-realhost}" actual="${reverse.NAME}"/> - <au:assertEquals expected="${xs4all-domain}" actual="${reverse.DOMAIN}"/> - <au:assertEquals expected="${xs4all-ip4}" actual="${reverse.ADDR4}"/> - </target> - - <target name="testUndef" depends="setUp"> - <hostinfo prefix="undef" host="${undef-name}"/> - <au:assertEquals expected="${undef-hostname}" actual="${undef.NAME}"/> - <au:assertEquals expected="${undef-domainname}" actual="${undef.DOMAIN}"/> - <au:assertEquals expected="${undef-ip4}" actual="${undef.ADDR4}"/> - </target> - -</project> |