Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
HPCasCode
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hpc-team
HPCasCode
Commits
59293df7
Commit
59293df7
authored
4 years ago
by
CentOS
Browse files
Options
Downloads
Patches
Plain Diff
generated some stats and added returncodes to smoke test
parent
7af62dc4
No related branches found
Branches containing commit
No related tags found
3 merge requests
!464
Fix listdeps
,
!442
Smoke test
,
!351
Smoke test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
smoke_test/smoke_test
+19
-2
19 additions, 2 deletions
smoke_test/smoke_test
smoke_test/tests/java/bashcmd
+1
-1
1 addition, 1 deletion
smoke_test/tests/java/bashcmd
with
20 additions
and
3 deletions
smoke_test/smoke_test
+
19
−
2
View file @
59293df7
...
...
@@ -8,7 +8,9 @@ num_module=${2:-50}
testcase_dir
=
'./tests'
declare
-i
num_success
=
0
declare
-i
num_failed
=
0
declare
-i
num_notest
=
0
mkdir
-p
$output_dir
...
...
@@ -28,17 +30,32 @@ for i in $(head -n $num_module $software_usage); do
module load
$name
/
$ver
mkdir
-p
$output_dir
/
$name
echo
''
>
$output_dir
/
$name
/
$ver
if
[
-d
$testcase_dir
/
$name
]
;
then
if
[
!
-d
$testcase_dir
/
$name
]
;
then
echo
"No testcase for
$m
found"
num_notest+
=
1
else
for
i
in
$(
ls
-X
$testcase_dir
/
$name
)
;
do
t_case
=
$testcase_dir
/
$name
/
$i
$t_case
>>
$output_dir
/
$name
/
$ver
2>&1
exitcode
=
$?
if
[
$exitcode
-ne
0
]
;
then
echo
"
$m
return non-zero exitcode
$exitcode
for testcase
$t_case
"
num_failed+
=
1
else
num_success+
=
1
fi
done
fi
module purge
done
IFS
=
$IFS_orig
echo
"Summary"
echo
"Failed:
$num_failed
"
echo
"Success
$num_success
"
echo
"No tests found:
$num_notest
"
if
[
"
$num_success
"
-lt
"50"
]
;
then
echo
"Failing because not enough tests succeeded"
exit
2
fi
[
"
$num_failed
"
-eq
"0"
]
This diff is collapsed.
Click to expand it.
smoke_test/tests/java/bashcmd
+
1
−
1
View file @
59293df7
#!/bin/bash
java
-
-version
java
-version
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment