#!/usr/bin/perl -w # $Revision: 709 $$Date: 2005-05-03 17:32:07 -0400 (Tue, 03 May 2005) $$Author: wsnyder $ # DESCRIPTION: Perl ExtUtils: Type 'make test' to test this package # # Copyright 2002-2005 by Wilson Snyder. This program is free software; # you can redistribute it and/or modify it under the terms of either the GNU # General Public License or the Perl Artistic License. use strict; use Test; use Cwd; BEGIN { plan tests => 5 } BEGIN { require "t/test_utils.pl"; } use P4::C4; ok(1); my $p4 = new P4::C4; ok(1); $p4->Init() or die "$0: %Error: Failed to connect to Perforce Server\n"; ok(1); ok($p4->isUser($ENV{USER}||$ENV{P4USER})); ok(!$p4->isUser("_a_name_that_doesnt_exist"));