-
Notifications
You must be signed in to change notification settings - Fork 190
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a simple test for lmod component: just load /etc/profile.d/lmod.sh to verify that it does not have syntax errors Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>
- Loading branch information
1 parent
c178efc
commit 8aec291
Showing
8 changed files
with
51 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,4 +13,4 @@ endif | |
|
||
if SLURM_ENABLED | ||
TESTS += slurm-plugins | ||
endif | ||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
TESTS_ENVIRONMENT = BATS_NO_SUMMARY=1 | ||
|
||
TESTS = lmod |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../common |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/usr/bin/env -S bats --report-formatter junit --formatter tap | ||
# -*-sh-*- | ||
|
||
load ./common/test_helper_functions || exit 1 | ||
source ./common/functions || exit 1 | ||
|
||
if [ -s ./common/TEST_ENV ];then | ||
source ./common/TEST_ENV | ||
fi | ||
|
||
setup() { | ||
if [ -z "$MODULEPATH" ];then | ||
. /etc/profile.d/lmod.sh || exit 1 | ||
fi | ||
module purge || exit 1 | ||
} | ||
|
||
|
||
@test "[lmod] test that the setup function passed" { | ||
assert_success | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters