Commit Graph

9 Commits

Author SHA1 Message Date
Xavier Delaruelle
1846866ff3 ts: add new ref count tests on *use/*-path subcmds 2021-08-11 15:28:39 +02:00
Xavier Delaruelle
cbb4b7c611 ts: add modulefiles.2 test modulepath repository
And make it a repository for additional test modulefiles that do not
need to take part in the global avail tests made over the main
repository (modulefiles) and who could mixed with others (like other and
other2).
2019-08-27 21:07:55 +02:00
Xavier Delaruelle
7c0e21bc95 Cwd during interp corresponds to modfile dir
Now getAbsolutePath procedure, which make a path passed as argument an
absolute path, check the current path of the interpreted modulefile or
modulerc rather always taking the current path of the module command
execution.

So a modulefile or modulerc can use relative paths based on a
determistic way as it is now based on their location. Previously it was
not possible as relative paths were dependent of the location from where
the module command was executed.

If ModulesCurrentModulefile variable is not empty, getAbsolutePath nows
it is called during a modulefile/modulerc interpretation, so it takes
the directory name of this ModulesCurrentModulefile as current working
directory.
2018-01-13 14:04:35 +01:00
Xavier Delaruelle
e11ea60173 Add tests for use/unuse of empty path name
Adapt cmdModuleUse to handle empty path name "" as any other path
string, so an error is returned when file type is cheked.

Add tests in 10-use and 50-cmds suites to check behavior of use and
unuse commands with an empty path passed as argument.

Add by the way tests that were missing for bash shell in 10-use suite.
2017-05-27 19:43:26 +02:00
Xavier Delaruelle
2d854b055c testsuite: add test for use --prepend
Introduce new tests for 'use --prepend' command in 10-use and 50-cmds
suites.
2017-05-27 19:43:26 +02:00
Kent Mein
bd4a515a7d Moved things out of the tcl directory.
Kent
2013-01-10 15:48:30 -06:00
Kent Mein
76adb1c7e3 Removed all of the non tcl version stuff. Or most of it anyway.
Kent
2013-01-10 15:44:49 -06:00
lakata
1ac833a16c (a) updated testsuite by centering source on TESTSUITEDIR, rather than rely on "pwd" or relative paths, which prohibit running the testsuite from a different dir (b) removed autoconf/configure processing of testsuite 2002-03-11 21:48:16 +00:00
rkowen
1e161da8f2 * Added document file INSTALL.RH7x which explains how to set up
an modules environment for all users through the system shell
  files.  Is specific to Linux/RedHat 7.x, but is of general
  applicability.
* Added further tests for modulefile "module use dir_path"
  (found an unload bug that will be fixed before release)
* Environment variable contents are now quoted to preserve
  any embedded environment variables. (Needed for versioning)
* Added over 50 tests specific to module versioning, and testing
  xgetenv.
* Fixed the unsetenv on unload function, the feature added in 3.0.6-rko
  was supposed to set the env.var. to the optional third argument.
  This was to allow old env.var. values to be recovered by unraveling
  a stack set in an other env.var.  Added tests for this feature.
  This is used by the version modulefile.
* Fixed and updated the version modulefile to allow stacked
  versions to be removed the stack.
* Removed an annoying spurious stderr newline.
2001-07-09 18:21:37 +00:00