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
9712d617
Commit
9712d617
authored
Oct 02, 2019
by
Eugene 'Vindex' Stulin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Error 'Permission denied' is handled now. Closed
#6
parent
117d153c
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
28 additions
and
3 deletions
+28
-3
Makefile
Makefile
+1
-1
build-scripts/run_tests.sh
build-scripts/run_tests.sh
+1
-1
resources/locales.csv
resources/locales.csv
+1
-0
source/module_vitis_base.d
source/module_vitis_base.d
+10
-1
testing/testing.sh
testing/testing.sh
+15
-0
No files found.
Makefile
View file @
9712d617
...
...
@@ -15,7 +15,7 @@ else
endif
ifeq
($(PLANG),D)
DC
=
gdc
#dmd, gdc or ldc2
DC
=
ldc2
#dmd, gdc or ldc2
PHOBOS_LINKING
=
static
#static or dynamic
RELEASE_ARGS
=
release
$(DC)
$(PHOBOS_LINKING)
DEBUG_ARGS
=
debug
$(DC)
$(PHOBOS_LINKING)
...
...
build-scripts/run_tests.sh
View file @
9712d617
...
...
@@ -15,5 +15,5 @@ fi
cp
${
BINPATH
}
testing/
cd
testing
./testing.sh
cd
-
cd
-
>
/dev/null
rm
testing/
${
APP
}
resources/locales.csv
View file @
9712d617
...
...
@@ -116,3 +116,4 @@
"Original: ","Оригинал: ","Originalo: "
"Fragments","Фрагменты","Fragmentoj"
"Replace the file? y/n >: ","Заменить файл? д/н >: ","Anstataŭigi la dosieron?"
": this path is not available.",": этот путь недоступен.",": ĉi tiu vojo estas neatingebla."
source/module_vitis_base.d
View file @
9712d617
...
...
@@ -62,7 +62,16 @@ string getVitisPath() {
auto
msg
=
"(Error)"
.
_s
~
" "
~
"file 'Vitis' blocks work."
.
_s
;
throw
new
FileException
(
msg
);
}
else
if
(!
vitisPath
.
exists
)
{
mkdirRecurse
(
vitisPath
);
try
{
mkdirRecurse
(
vitisPath
);
}
catch
(
std
.
file
.
FileException
e
)
{
if
(
e
.
msg
.
canFind
(
"Permission denied"
))
{
auto
err
=
vitisPath
~
": this path is not available."
.
_s
;
throw
new
FileWarning
(
err
);
}
else
{
throw
new
FileWarning
(
e
.
msg
);
}
}
}
return
vitisPath
;
}
...
...
testing/testing.sh
View file @
9712d617
...
...
@@ -312,10 +312,25 @@ start_of_use() {
}
# REQ 3.1
bad_vitis_path
()
{
$vitis
service
set
path /Vitis
$OPTCONF
CMD
=
"
$vitis
show D"
output
=
$(
$CMD
$OPTCONF
2>&1
)
expected
=
"(Error) /Vitis/: this path is not available."
if
[[
"
$output
"
==
"
$expected
"
]]
;
then
pass
"
${
CMD
}
"
else
fail
"
${
CMD
}
"
echo
-n
"
${
output
}
"
fi
$vitis
service
set
path /tmp/Vitis
$OPTCONF
# back to default
}
procedure_base_tests
()
{
procedure_title
"Base tests"
version
start_of_use
bad_vitis_path
}
...
...
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