Skip to content
Snippets Groups Projects
Commit 426cf7bf08ed authored by Pierre-Yves David's avatar Pierre-Yves David :octopus:
Browse files

make-reference: use a unique extension for the config file

This make is easier to distinct from other config file.
parent 25b932ea2ac2
No related branches found
No related tags found
No related merge requests found
......@@ -17,7 +17,7 @@
repo_id="$2"
repo_main="${repo_id}"-reference
repo_details="${repo_id}".yaml
repo_details="${repo_id}".benchrepo
repo_tarball="${repo_id}"-reference.tar
### initial clone
......
......@@ -50,7 +50,7 @@
$ mkdir partials-one
$ cd partials-one
$ make-partial-repos ../p-config.yaml ../local-references/repo4test_A.yaml
$ make-partial-repos ../p-config.yaml ../local-references/repo4test_A.benchrepo
Cloning repo4test_A (../local-references/repo4test_A-reference stripped of last(all(), 10)) into ./repo4test_A-partial-missing-last-10 (for exchange benchmarks)
Cloning repo4test_A (../local-references/repo4test_A-reference stripped of None) into ./repo4test_A-partial-same (for exchange benchmarks)
$ ls -1
......@@ -73,7 +73,7 @@
$ mkdir partials-multiple
$ cd partials-multiple
$ make-partial-repos ../p-config.yaml ../local-references/repo4test_A.yaml ../local-references/repo4test_B.yaml
$ make-partial-repos ../p-config.yaml ../local-references/*.benchrepo
Cloning repo4test_A (../local-references/repo4test_A-reference stripped of last(all(), 10)) into ./repo4test_A-partial-missing-last-10 (for exchange benchmarks)
Cloning repo4test_A (../local-references/repo4test_A-reference stripped of None) into ./repo4test_A-partial-same (for exchange benchmarks)
Cloning repo4test_B (../local-references/repo4test_B-reference stripped of last(all(), 10)) into ./repo4test_B-partial-missing-last-10 (for exchange benchmarks)
......@@ -93,5 +93,5 @@
$ mkdir partials-disabled
$ cd partials-disabled
$ grep enabled ../local-references/repo4test_A.yaml
$ grep enabled ../local-references/repo4test_A.benchrepo
enabled: Yes
......@@ -97,4 +97,4 @@
enabled: Yes
$ sed -i 's/enabled: Yes/enabled: No/' ../local-references/repo4test_A.yaml
$ grep enabled ../local-references/repo4test_A.yaml
$ sed -i 's/enabled: Yes/enabled: No/' ../local-references/repo4test_A.benchrepo
$ grep enabled ../local-references/repo4test_A.benchrepo
enabled: No
......@@ -100,8 +100,8 @@
enabled: No
$ make-partial-repos ../p-config.yaml ../local-references/repo4test_A.yaml ../local-references/repo4test_B.yaml
$ make-partial-repos ../p-config.yaml ../local-references/*.benchrepo
skipping disabled reference repository: repo4test_A
Cloning repo4test_B (../local-references/repo4test_B-reference stripped of last(all(), 10)) into ./repo4test_B-partial-missing-last-10 (for exchange benchmarks)
Cloning repo4test_B (../local-references/repo4test_B-reference stripped of None) into ./repo4test_B-partial-same (for exchange benchmarks)
$ ls -1
repo4test_B-partial-missing-last-10
repo4test_B-partial-same
......@@ -102,11 +102,11 @@
skipping disabled reference repository: repo4test_A
Cloning repo4test_B (../local-references/repo4test_B-reference stripped of last(all(), 10)) into ./repo4test_B-partial-missing-last-10 (for exchange benchmarks)
Cloning repo4test_B (../local-references/repo4test_B-reference stripped of None) into ./repo4test_B-partial-same (for exchange benchmarks)
$ ls -1
repo4test_B-partial-missing-last-10
repo4test_B-partial-same
$ sed -i 's/enabled: Non/enabled: Yes/' ../local-references/repo4test_A.yaml
$ grep enabled ../local-references/repo4test_A.yaml
$ sed -i 's/enabled: Non/enabled: Yes/' ../local-references/repo4test_A.benchrepo
$ grep enabled ../local-references/repo4test_A.benchrepo
enabled: No
$ cd ..
......
......@@ -33,5 +33,5 @@
$ ls -1
my-reference-reference
my-reference-reference.tar
my-reference.yaml
my-reference.benchrepo
some-dir
......@@ -37,5 +37,5 @@
some-dir
$ cat my-reference.yaml
$ cat my-reference.benchrepo
reference-repo:
id: my-reference
enabled: Yes
......@@ -54,7 +54,7 @@
Call with existing data
-----------------
$ rm -rf my-reference.yaml my-reference.tar
$ rm -rf my-reference.benchrepo my-reference.tar
$ make-reference some-dir/my-source-repo my-reference
target repo already exists, skipping clone
(make sure this was clone with the right version)
......@@ -63,5 +63,5 @@
$ ls -1
my-reference-reference
my-reference-reference.tar
my-reference.yaml
my-reference.benchrepo
some-dir
......@@ -67,5 +67,5 @@
some-dir
$ cat my-reference.yaml
$ cat my-reference.benchrepo
reference-repo:
id: my-reference
enabled: Yes
......@@ -81,7 +81,7 @@
visible: 1
all: 1
$ tar tf my-reference-reference.tar
my-reference.yaml
my-reference.benchrepo
my-reference-reference/
my-reference-reference/.hg/
my-reference-reference/.hg/requires
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment