git_update/test/README.md

71 lines
1.8 KiB
Markdown
Raw Normal View History

2024-07-25 08:53:11 +00:00
# Introduction
2024-07-25 09:00:44 +00:00
2024-07-25 08:53:11 +00:00
performance_tests contains tests who compare the memory and bandwidth usage of different Git commande in order to compare them.
functional_tests contains tests who verify that git_update.sh is behaving as expected.
Both rely on the same test repository that is created by test_repo_creation.sh.
Both have to be run from their directory because they rely on relative paths.
# Creation of the test repository
2024-07-25 09:00:44 +00:00
2024-07-25 08:53:11 +00:00
The script test_repo_creation.sh creates a remote/$REPO_NAME repository.
2024-07-25 09:00:44 +00:00
2024-07-25 08:53:11 +00:00
## Help extract
2024-07-25 09:00:44 +00:00
2024-07-25 08:54:34 +00:00
```
2024-07-25 08:53:11 +00:00
NAME
test_repo_creation.sh
SYNOPSIS
test_repo_creation.sh [-h] [-l] [-s]
DESCRIPTION
This script creates a ./remote directory in the current directory, then creates a remote/$REPO_NAME git repository.
This git repository is filled with randomly generated binary files described in the readme.md.
OPTIONS
-h prints the help.
-l [link] adds the linked online repository as remote and pushes changes to it. Must be en empty repository.
-s creates a submodule remote/$SUB_NAME and includes it in remote/$REPO_NAME.
2024-07-25 08:54:34 +00:00
```
2024-07-25 09:00:44 +00:00
2024-07-25 08:53:11 +00:00
# Description of the created repository
2024-07-25 09:00:44 +00:00
2024-07-25 08:53:11 +00:00
Here is a history of the commits:
2024-07-25 09:00:44 +00:00
2024-07-25 08:53:11 +00:00
### branch main
2024-07-25 09:00:44 +00:00
2024-07-25 08:53:11 +00:00
commit sample0 1M created
commit sample1 1M created
commit sample3 5M created
commit sample4 1M created
commit sample3 5M deleted (tag : tagging_point)
[if -s is selected] commit adding $SUB_NAME module
2024-07-25 09:00:44 +00:00
2024-07-25 08:53:11 +00:00
### branch secondary
2024-07-25 09:00:44 +00:00
2024-07-25 08:53:11 +00:00
commit sample0 1M created
commit sample1 1M created
commit sample2 500K created
Which gives the latest state:
2024-07-25 09:00:44 +00:00
2024-07-25 08:53:11 +00:00
### branch main
2024-07-25 09:00:44 +00:00
2024-07-25 08:53:11 +00:00
sample0 1M
sample1 1M
sample4 1M
2024-07-25 09:00:44 +00:00
2024-07-25 08:53:11 +00:00
### branch secondary
2024-07-25 09:00:44 +00:00
2024-07-25 08:53:11 +00:00
sample0 1M
sample1 1M
sample2 500K
If the -s option is selected, the submodule is created, and integrated in the last commit of main, with this history of commits:
2024-07-25 09:00:44 +00:00
2024-07-25 08:53:11 +00:00
### branch main
2024-07-25 09:00:44 +00:00
2024-07-25 08:53:11 +00:00
commit first 1M sample created
which gives the latest state:
2024-07-25 09:00:44 +00:00
2024-07-25 08:53:11 +00:00
### branch main
2024-07-25 09:00:44 +00:00
2024-07-25 08:53:11 +00:00
sub_sample0