Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
See what's new at GitLab
4
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
V
vitis
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
6
Issues
6
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Eugene 'Vindex' Stulin
vitis
Commits
a4d9644d
Commit
a4d9644d
authored
Dec 30, 2019
by
Eugene 'Vindex' Stulin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Optimization of tests
parent
8482a782
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
5 deletions
+25
-5
testing/testing.sh
testing/testing.sh
+25
-5
No files found.
testing/testing.sh
View file @
a4d9644d
...
...
@@ -211,7 +211,12 @@ destroy_file_env() {
rm
-rf
${
FSPACE1
}
${
FSPACE2
}
}
COPY_MADE
=
FALSE
create_category_env
()
{
if
[[
$COPY_MADE
==
TRUE
]]
;
then
restore_copy_of_category_env
return
0
fi
vitis
=
"
$PWD
/vitis"
OPTCONF
=
"--conf
$PWD
/vitis.1.conf"
cd
$FILESDIR
...
...
@@ -232,8 +237,22 @@ create_category_env() {
cd
-
>
/dev/null
vitis
=
./vitis
OPTCONF
=
"--conf vitis.1.conf"
make_copy_of_category_env
COPY_MADE
=
TRUE
}
make_copy_of_category_env
()
{
cp
-R
${
VTS
}
${
VTS
}
.1
}
restore_copy_of_category_env
()
{
rm
-rf
${
VTS
}
cp
-R
${
VTS
}
.1
${
VTS
}
}
delete_copy_of_category_env
()
{
rm
-rf
${
VTS
}
.1
}
################################################################################
# BASE TESTS
...
...
@@ -1127,7 +1146,7 @@ case_2_3_7() {
}
case_2_3_8
()
{
subtitle
"
R
epeated copying in file space"
subtitle
"
Case 8: r
epeated copying in file space"
create_file_env
$vitis
create Category
$OPTCONF_AUTOSAVE
CMD
=
"
$vitis
assign Category -f
${
FILE1
}
"
...
...
@@ -1408,7 +1427,6 @@ procedure_2_4() {
case_2_4_3
case_2_4_4
case_2_4_5
case_2_4_5
case_2_4_6
case_2_4_7
case_2_4_8
...
...
@@ -1530,7 +1548,7 @@ using the '--number' flag."
}
case_2_5_7
()
{
subtitle
"Case
6
: no repeated names and --number (wrong using)"
subtitle
"Case
7
: no repeated names and --number (wrong using)"
create_file_env
$vitis
assign
-c
Category
-f
$FILE1
--yes
$OPTCONF
$vitis
create
-c
Category2
$OPTCONF
...
...
@@ -2695,7 +2713,6 @@ case_3_2_3() {
output
=
$(
$CMD
$OPTCONF
2>&1
)
expected
=
"Category/file99.txt: file in Vitis is not found.
\
The request is skipped."
echo
"
$output
"
if
[[
"
${
output
}
"
==
"
${
expected
}
"
]]
;
then
pass
"
${
CMD
}
"
else
...
...
@@ -3314,8 +3331,10 @@ case_4_3_3() {
}
case_4_3_4
()
{
subtitle
"Case 4: autocategories"
create_file_env
&&
create_category_env
create_file_env
create_category_env
CMD
=
"
$vitis
show --all-categories --auto"
output
=
$(
$CMD
$OPTCONF
2>&1
)
expected
=
"
\
...
...
@@ -3349,6 +3368,7 @@ tests_show() {
procedure_4_1
procedure_4_2
procedure_4_3
delete_copy_of_category_env
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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