##############################################################################
#   Modules Revision 3.0
#   Providing a flexible user environment
#
#   File:		modules.70-maint/%M%
#   Revision:		%I%
#   First Edition:	1995/12/06
#   Last Mod.:		%U%, %G%
#
#   Authors:		Jens Hamisch, Jens.Hamisch@Strawberry.COM
#
#   Description:	Testuite testsequence
#   Command:		list
#   Modulefiles:	setenv/1.0
#   Sub-Command:
#
#   Comment:	%C{
#			Tests the module command 'list' in long output
#			format with a modulefile loaded.
#		}C%
#
##############################################################################

set module "setenv"
set version "1.0"
set modulefile "$env(MODULEPATH)/$module/$version"

#
#  Check this only for the /bin/csh
#

set header "- Package -----------------------------.- Versions -.- Last mod. ------\nCurrently Loaded Modulefiles:\n"
set ts_csh "$header$module.$version                                           \[0-9:\/ ]*"

#
#  Set up the environment pointing to the single module file being load
#

set env(_LMFILES_) $modulefile
set env(LOADEDMODULES) $module/$version

#
#  The tests
#

testerr_cmd_re "csh" "--long list" "$ts_csh"

#
#  Cleanup
#

unset env(LOADEDMODULES)
unset env(_LMFILES_)

unset header
unset ts_csh

unset version
unset modulefile
unset module
