Debian Codegraph @

testsuite/modules.91-sort/030-whatis.exp

raw
1 ##############################################################################
2 # Modules Release Tcl
3 # Providing a flexible user environment
4 #
5 # File: modules.91-sort/%M%
6 # Revision: %I%
7 # First Edition: 2016/02/06
8 # Last Mod.: %U%, %G%
9 #
10 # Authors: Xavier Delaruelle, [email protected]
11 #
12 # Description: Testuite testsequence
13 # Command: whatis
14 # Modulefiles: verssort/1, verssort/1.2.1, verssort/1.2.4,
15 # verssort/1.8-2015-12-01, verssort/1.8-2016-02-01,
16 # verssort/1.10, averssort
17 # Sub-Command:
18 #
19 # Comment: %C{
20 # Check the module 'whatis' command for a module with
21 # multiple versions to check these versions are
22 # correctly sorted.
23 # }C%
24 #
25 ##############################################################################
26
27 set wissep ": module version sort test"
28 set header "$modlin $modpathre $modlin\n"
29
30 #
31 # tests on regular modulefiles
32 #
33
34 set ts_sh "$header\\s*$module/$version1$wissep\n\\s*$module/$version2$wissep\n\\s*$module/$version3$wissep\n\\s*$module/$version4$wissep\n\\s*$module/$version5$wissep\n\\s*$module/$version6$wissep"
35
36 testouterr_cmd_re "sh" "whatis $module" "OK" "$ts_sh"
37
38 #
39 # tests on module aliases
40 #
41
42 set ts_sh "$header\\s*$module/$version1$wissep\n\\s*$module/$version3$wissep\n\\s*$module/$version6$wissep"
43
44 testouterr_cmd_re "sh" "whatis $aliasmod" "OK" "$ts_sh"
45
46 #
47 # Cleanup
48 #
49
50 reset_test_env