Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
deckard
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
31
Issues
31
List
Boards
Labels
Service Desk
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Knot projects
deckard
Commits
b976748e
Commit
b976748e
authored
Aug 20, 2018
by
Ivana Krumlova
Committed by
Petr Špaček
Aug 22, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tools: divide_tests.sh - env variable for selecting *_run.sh script used for testing
parent
7a68ca85
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
tools/divide_tests.sh
tools/divide_tests.sh
+5
-7
No files found.
tools/divide_tests.sh
View file @
b976748e
...
...
@@ -2,12 +2,14 @@
# Sorts .rpl tests into several categories.
# Takes a diretory with the tests as an argument and moves the test to its subdirectories.
# Env variable SCRIPT= sets *_run.sh script for finding working tests, default script is kresd_run.sh
set
-o
nounset
set
-o
errexit
SOURCE
=
"
$1
"
SCRIPT
=
${
SCRIPT
:-
"./../kresd_run.sh"
}
# Test with the same name is already imported in deckard/sets/resolver
echo
Already imported:
...
...
@@ -44,22 +46,18 @@ do
done
# Working
on kresd in deckard
echo
Working:
# Working
in selected script
echo
Working
in
$SCRIPT
:
mkdir
-p
"
$SOURCE
/working"
for
TEST
in
"
$SOURCE
/"
*
.rpl
do
if
TESTS
=
"
$(
readlink
-m
$TEST
)
"
./../kresd_run.sh
>
/dev/null 2>/dev/null
if
TESTS
=
"
$(
readlink
-m
$TEST
)
"
$SCRIPT
>
/dev/null 2>/dev/null
then
echo
-e
'\t'
$(
basename
"
$TEST
"
)
mv
"
$TEST
"
"
$SOURCE
/working"
fi
done
# Others TODO: sem nic nepadá a to je divný, asi chyba, neviem
echo
Others:
mkdir
-p
"
$SOURCE
/others"
for
TEST
in
"
$SOURCE
/"
*
.rpl
...
...
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