<?xml version="1.0"?>

<project name="cvspass-test" basedir="." default="test1">

  <taskdef name="cvspass" classname="org.apache.tools.ant.taskdefs.CVSPass"/>

  <target name="test1">
    <cvspass />
  </target>
 
  <target name="test2">
    <cvspass
      cvsroot=":pserver:anoncvs@jakarta.apache.org:/home/cvspublic"
      passfile="testpassfile.tmp"
    />
  </target>
 
  <!-- testPassFile -->
  <target name="test3">
    <cvspass
      cvsroot=":pserver:anoncvs@jakarta.apache.org:/home/cvspublic"
      password="anoncvs"
      passfile="testpassfile.tmp"
    />
  </target>

  <!-- testPassFileDuplicateEntry -->
  <target name="test4">
    <cvspass
      cvsroot=":pserver:anoncvs@jakarta.apache.org:/home/cvspublic"
      password="anoncvs"
      passfile="testpassfile.tmp"
    />
    <cvspass
      cvsroot=":pserver:anoncvs@jakarta.apache.org:/home/cvspublic"
      password="anoncvs"
      passfile="testpassfile.tmp"
    />
    <cvspass
      cvsroot=":pserver:guest@cvs.tigris.org:/cvs"
      password="guest"
      passfile="testpassfile.tmp"
    />
  </target>

  <!-- testPassFileMultipleEntry -->
  <target name="test5">
    <cvspass
      cvsroot=":pserver:anoncvs@jakarta.apache.org:/home/cvspublic"
      password="anoncvs"
      passfile="testpassfile.tmp"
    />
    <cvspass
      cvsroot=":pserver:anoncvs@xml.apache.org:/home/cvspublic"
      password="anoncvs"
      passfile="testpassfile.tmp"
    />
    <cvspass
      cvsroot=":pserver:guest@cvs.tigris.org:/cvs"
      password="guest"
      passfile="testpassfile.tmp"
    />
  </target>

  <target name="cleanup"> 
    <delete file="testpassfile.tmp"/>
  </target>

</project>
