Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
common
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tests
common
Merge requests
!4
README: Describe usage of common-subtree.sh
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
README: Describe usage of common-subtree.sh
wip/fredo/T4801
into
master
Overview
1
Commits
1
Pipelines
0
Changes
1
Merged
Frédéric Dalleau
requested to merge
wip/fredo/T4801
into
master
6 years ago
Overview
1
Commits
1
Pipelines
0
Changes
1
Expand
Signed-off-by: Frédéric Dalleau
frederic.dalleau@collabora.co.uk
1
0
Merge request reports
Compare
master
version 1
9fc1eebf
6 years ago
master (base)
and
latest version
latest version
e84c4283
1 commit,
6 years ago
version 1
9fc1eebf
1 commit,
6 years ago
1 file
+
25
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
README.md
+
25
−
1
Options
@@ -2,4 +2,28 @@ Common files shared accross apertis tests.
Those files are shared through a git subtree which is included by all test projects.
Use common-subtree.sh to add the subtree in a tests repository
Use
`common-subtree.sh add`
to add the subtree in a tests repository.
For example:
```
# Retrieve the common-subtree.sh script, we use `git`, but could also use `wget`
$ git clone git@gitlab.apertis.org:tests/common
# Clone the test repository if needed
$ git clone git@gitlab.apertis.org:tests/iptables-basic
# Enter the test directory
$ cd iptables-basic
# In the test directory, add the common git subtree
$ ../common/common-subtree.sh add
# A new commit has been created, push the test with the subtree initialized
$ git push origin
```
If a script is supposed to be in the common/ directory, it should be commited in the
[
common repository
](
https://gitlab.apertis.org/tests/common
)
, and then it can be pulled
into the git subtree using the command:
```
$ ../common/common-subtree.sh pull
```
Loading