Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
NFV - Network Functions Virtualisation
api-tests
Commits
0d8da175
Commit
0d8da175
authored
Jun 01, 2020
by
Michele Carignani
Browse files
add static validation script
parent
0b88105c
Changes
1
Hide whitespace changes
Inline
Side-by-side
scripts/validate.sh
0 → 100644
View file @
0d8da175
#!/bin/bash
#
# Validate syntax and keywords existance in each Robot file
res
=
0
for
i
in
*
/
*
/
*
.robot
;
do
[[
"
$i
"
!=
*
"Keywords.robot"
*
&&
"
$i
"
!=
*
"Keyword.robot"
*
]]
&&
\
(
echo
"++++ Dryrun
$i
"
&&
\
robot
--dryrun
--output
NONE
--report
NONE
--log
NONE
$i
||
\
(
echo
"++++ Issues in file
$i
"
&&
res
=
1
))
;
done
exit
$res
Michele Carignani
@carignani
mentioned in issue
#104 (closed)
·
Jun 05, 2020
mentioned in issue
#104 (closed)
mentioned in issue #104
Toggle commit list
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment