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

benchmark: add a variant where a new file is added

This will exercise the fncache update.
parent dd36ccc5
No related branches found
No related tags found
No related merge requests found
Pipeline #100288 passed
......@@ -10,5 +10,5 @@
MAIN_REPO = "DATA-VARS:mercurial.main-repo-path"
[simple-command]
command = "hg commit -m 'poulpebenchmarkrun' -R ../poulpe-temp-source"
command = "hg commit -m 'poulpebenchmarkrun' -R poulpe-temp-source"
prepare-run = """
......@@ -14,3 +14,2 @@
prepare-run = """
cd \"$POULPE_DATA_ENV_ROOT\";
rm -rf poulpe-temp-source;
......@@ -16,5 +15,12 @@
rm -rf poulpe-temp-source;
cp --archive --recursive --reflink=auto \"$POULPE_CWD\" poulpe-temp-source;"""
cp --archive --recursive --reflink=auto \"$MAIN_REPO\" poulpe-temp-source;
if [ -n \"$NEW_FILE\" ]; then
echo \"BABAR IS GREATEST\" > poulpe-temp-source/TEMPORARY_POULPE_BENCHMARK_FILE_FOO;
hg --cwd poulpe-temp-source add TEMPORARY_POULPE_BENCHMARK_FILE_FOO;
fi
sleep 1;
hg --cwd poulpe-temp-source status;"""
[simple-command.variants.dimensions.repo-state.modified]
default = true
......@@ -47,3 +53,6 @@
[simple-command.variants.dimensions.repo-state.modified-and-copied]
cwd = "DATA-VARS:mercurial.working-copy.modified-and-copied"
[simple-command.variants.dimensions.repo-state.add-1-new.environment]
NEW_FILE = "1"
......@@ -8,5 +8,5 @@
["MAIN_REPO"] = "DATA-VARS:mercurial.main-repo-path"
}
command = "hg commit -m 'poulpebenchmarkrun' -R ../poulpe-temp-source"
command = "hg commit -m 'poulpebenchmarkrun' -R poulpe-temp-source"
prepare_run = """
......@@ -12,3 +12,2 @@
prepare_run = """
cd "$POULPE_DATA_ENV_ROOT";
rm -rf poulpe-temp-source;
......@@ -14,5 +13,12 @@
rm -rf poulpe-temp-source;
cp --archive --recursive --reflink=auto "$POULPE_CWD" poulpe-temp-source;
cp --archive --recursive --reflink=auto "$MAIN_REPO" poulpe-temp-source;
if [ -n "$NEW_FILE" ]; then
echo "BABAR IS GREATEST" > poulpe-temp-source/TEMPORARY_POULPE_BENCHMARK_FILE_FOO;
hg --cwd poulpe-temp-source add TEMPORARY_POULPE_BENCHMARK_FILE_FOO;
fi
sleep 1;
hg --cwd poulpe-temp-source status;
"""
variants {
["repo-state"] = (v.simple_command["repo-state"]) {
......@@ -22,6 +28,11 @@
["clean"] {
acceptable_return_codes = new {1}
}
["add-1-new"] {
environment {
["NEW_FILE"] = "1"
}
}
}
}
}
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