File: upstream-testsuite

package info (click to toggle)
lmod 8.6.19-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 41,716 kB
  • sloc: sh: 5,488; makefile: 2,786; ansic: 1,511; tcl: 1,145; python: 843; csh: 104
file content (33 lines) | stat: -rw-r--r-- 1,109 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/sh
set -e

mock=$AUTOPKGTEST_TMP/lmod-src-mock
mkdir $mock

export PATH=$PATH:$(pwd)/hermes/bin

# use the files shipped in the .deb
cp -as /usr/share/lmod/lmod/* $mock/
mv $mock/libexec $mock/src
rm $mock/src/print_os.sh
mv $mock/init/env_modules_python.py $mock/init/env_modules_python.py.in
mv $mock/settarg/settarg_cmd $mock/settarg/settarg_cmd.in.lua
mv $mock/src/check_module_tree_syntax $mock/src/check_module_tree_syntax.in.lua
mv $mock/src/clearLMOD_cmd $mock/src/clearLMOD_cmd.in.lua
mv $mock/src/lmod $mock/src/lmod.in.lua
mv $mock/src/sh_to_modulefile $mock/src/sh_to_modulefile.in.lua
mv $mock/src/spider $mock/src/spider.in.lua

# these are not shipped in the .deb
cp -a Hermes.db MF proj_mgmt rt $mock/
cp -a src/chkJson $mock/src/

# can't use these files from the .deb since they have all placeholders
# substituted, while the reference solutions expect unsubstituted
# placeholders in the output
cp --remove-destination -a src/lmod.in.lua $mock/src/
cp --remove-destination -a src/Configuration.lua $mock/src/
cp --remove-destination -a src/myGlobals.lua $mock/src/

cd $mock/rt
tm .