Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
backupninja
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Liberate
backupninja
Commits
51a796e0
Commit
51a796e0
authored
Jul 13, 2018
by
Jérôme Charaoui
Browse files
Options
Downloads
Patches
Plain Diff
tests: Allow launching tests for specific component
parent
889d280a
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!46
Add a testsuite
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/test.sh
+11
-5
11 additions, 5 deletions
test/test.sh
with
11 additions
and
5 deletions
test/test.sh
+
11
−
5
View file @
51a796e0
...
@@ -36,11 +36,17 @@ mount -t tmpfs tmpfs "$TMPDIR"
...
@@ -36,11 +36,17 @@ mount -t tmpfs tmpfs "$TMPDIR"
mount
-t
tmpfs tmpfs /var/backups
mount
-t
tmpfs tmpfs /var/backups
# Run actual tests
# Run actual tests
if
[
-z
"
$1
"
]
;
then
for
t
in
"
$(
dirname
"
$0
"
)
"
/
*
.bats
;
do
for
t
in
"
$(
dirname
"
$0
"
)
"
/
*
.bats
;
do
echo
"#
$(
basename
-s
.bats
"
$t
"
)
"
echo
"#
$(
basename
-s
.bats
"
$t
"
)
"
bats
"
$t
"
bats
"
$t
"
echo
echo
done
done
else
echo
"#
$1
"
bats
"
$(
dirname
"
$0
"
)
/
${
1
}
.bats"
fi
# Clean up
# Clean up
umount
"
$TMPDIR
"
umount
"
$TMPDIR
"
...
...
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