... | ... | @@ -92,81 +92,160 @@ Last, run a testsuite on your test branch `mytests` to validate your changes. On |
|
|
Go to the test directory that is the most appropriate (for instance `fast/nastin` if your test is related to a nastin feature), and add a new directory and `.json` file the same way it is done for the existing tests.
|
|
|
Add the files to the git repository, commit them and push them. Follow the same process as for modifying a test.
|
|
|
|
|
|
## Testsuite configuration
|
|
|
|
|
|
If your test needs to be discarded for specific builds (for instance, your test depends on i4 and you want to discard it for i8), you will have to modify the related configuration file and add your test to the list of excluded tests in the testsuite repository https://gitlab.bsc.es/alya/alya-testsuite/. Since you cannot modify the master directly, you will need to create a new branch the same way you did it for the `alya-tests` git repository:
|
|
|
|
|
|
Get the git testsuite repository
|
|
|
|
|
|
```sh
|
|
|
git clone git@gitlab-internal.bsc.es:alya/alya-testsuite.git
|
|
|
cd alya-testsuite
|
|
|
```
|
|
|
|
|
|
If you already have it, update it:
|
|
|
```sh
|
|
|
git pull
|
|
|
```
|
|
|
|
|
|
The `master` branch is protected, so you won't be allowed to modify it. Create a new branch with the name of your choice, let's say `mytestsuite`:
|
|
|
|
|
|
```sh
|
|
|
git checkout -b mytestsuite
|
|
|
```
|
|
|
|
|
|
or just switch to this branch if it already exists:
|
|
|
|
|
|
```sh
|
|
|
git checkout mytestsuite
|
|
|
```
|
|
|
|
|
|
Don't forget to update your already existing branch with the last version of the master:
|
|
|
|
|
|
```
|
|
|
git fetch
|
|
|
git merge origin/master
|
|
|
```
|
|
|
|
|
|
Push your branch.
|
|
|
If it is your first push:
|
|
|
|
|
|
```sh
|
|
|
git push -u origin mytestsuite
|
|
|
## Test .json
|
|
|
|
|
|
Here, you will find an example of json file for tests:
|
|
|
|
|
|
```json
|
|
|
{
|
|
|
"authors": [
|
|
|
"ambrus.both@bsc.es"
|
|
|
],
|
|
|
"comparisons": [
|
|
|
{
|
|
|
"cols": [
|
|
|
2,
|
|
|
3,
|
|
|
4,
|
|
|
5,
|
|
|
6
|
|
|
],
|
|
|
"file": "non_prem_box_SqSq-boundary.chm.set",
|
|
|
"method": "absolute",
|
|
|
"tolerance": "1.0e-10"
|
|
|
},
|
|
|
{
|
|
|
"cols": [
|
|
|
1,
|
|
|
2,
|
|
|
3,
|
|
|
4,
|
|
|
9,
|
|
|
10,
|
|
|
11,
|
|
|
12,
|
|
|
13,
|
|
|
24,
|
|
|
15,
|
|
|
16
|
|
|
],
|
|
|
"file": "non_prem_box_SqSq.chm.wit",
|
|
|
"method": "absolute",
|
|
|
"tolerance": "1.0e-6"
|
|
|
},
|
|
|
{
|
|
|
"cols": [
|
|
|
1,
|
|
|
2
|
|
|
],
|
|
|
"file": "non_prem_box_SqSq.tem.wit",
|
|
|
"method": "absolute",
|
|
|
"tolerance": "1.0e-10"
|
|
|
},
|
|
|
{
|
|
|
"file": "non_prem_box_SqSq-CON01-00000010.post.mpio.txt",
|
|
|
"method": "absolute",
|
|
|
"tolerance": "1.0e-7"
|
|
|
},
|
|
|
{
|
|
|
"file": "non_prem_box_SqSq-CON02-00000010.post.mpio.txt",
|
|
|
"method": "absolute",
|
|
|
"tolerance": "1.0e-7"
|
|
|
},
|
|
|
{
|
|
|
"file": "non_prem_box_SqSq-CON03-00000010.post.mpio.txt",
|
|
|
"method": "absolute",
|
|
|
"tolerance": "1.0e-7"
|
|
|
},
|
|
|
{
|
|
|
"file": "non_prem_box_SqSq-CON04-00000010.post.mpio.txt",
|
|
|
"method": "absolute",
|
|
|
"tolerance": "1.0e-7"
|
|
|
},
|
|
|
{
|
|
|
"file": "non_prem_box_SqSq-SCO01-00000010.post.mpio.txt",
|
|
|
"method": "absolute",
|
|
|
"tolerance": "1.0e-7"
|
|
|
},
|
|
|
{
|
|
|
"file": "non_prem_box_SqSq-SCO02-00000010.post.mpio.txt",
|
|
|
"method": "absolute",
|
|
|
"tolerance": "1.0e-7"
|
|
|
},
|
|
|
{
|
|
|
"file": "non_prem_box_SqSq-SCO03-00000010.post.mpio.txt",
|
|
|
"method": "absolute",
|
|
|
"tolerance": "1.0e-7"
|
|
|
},
|
|
|
{
|
|
|
"file": "non_prem_box_SqSq-SCO04-00000010.post.mpio.txt",
|
|
|
"method": "absolute",
|
|
|
"tolerance": "1.0e-7"
|
|
|
},
|
|
|
{
|
|
|
"file": "non_prem_box_SqSq-TEMPE-00000010.post.mpio.txt",
|
|
|
"method": "absolute",
|
|
|
"tolerance": "1.0e-2"
|
|
|
},
|
|
|
{
|
|
|
"file": "non_prem_box_SqSq-XYR-00000010.post.mpio.txt",
|
|
|
"method": "absolute",
|
|
|
"tolerance": "1.0e-7"
|
|
|
},
|
|
|
{
|
|
|
"file": "non_prem_box_SqSq-XYS-00000010.post.mpio.txt",
|
|
|
"method": "absolute",
|
|
|
"tolerance": "1.0e-7"
|
|
|
},
|
|
|
{
|
|
|
"file": "non_prem_box_SqSq-XZR-00000010.post.mpio.txt",
|
|
|
"method": "absolute",
|
|
|
"tolerance": "1.0e-6"
|
|
|
},
|
|
|
{
|
|
|
"file": "non_prem_box_SqSq-XZS-00000010.post.mpio.txt",
|
|
|
"method": "absolute",
|
|
|
"tolerance": "1.0e-6"
|
|
|
},
|
|
|
{
|
|
|
"file": "non_prem_box_SqSq-VELOC-00000010.post.mpio.txt",
|
|
|
"method": "absolute",
|
|
|
"tolerance": "1.0e-6"
|
|
|
}
|
|
|
],
|
|
|
"description": "Non premixed flame in square shaped duct with slip walls, both variance models on with transporting the square of control variables.",
|
|
|
"exclude": [
|
|
|
"special"
|
|
|
],
|
|
|
"executions": [
|
|
|
{
|
|
|
"commands": {
|
|
|
"pp": "[ALYA-PATH]/Utils/user/pgiFormat2Standard.sh non_prem_box_SqSq-boundary.chm.set non_prem_box_SqSq.tem.wit non_prem_box_SqSq.chm.wit; echo | [POST] non_prem_box_SqSq"
|
|
|
},
|
|
|
"mpi": 1,
|
|
|
"openmp": 0
|
|
|
},
|
|
|
{
|
|
|
"commands": {
|
|
|
"pp": "[ALYA-PATH]/Utils/user/pgiFormat2Standard.sh non_prem_box_SqSq-boundary.chm.set non_prem_box_SqSq.tem.wit non_prem_box_SqSq.chm.wit; echo | [POST] non_prem_box_SqSq"
|
|
|
},
|
|
|
"mpi": 3,
|
|
|
"openmp": 0
|
|
|
},
|
|
|
{
|
|
|
"commands": {
|
|
|
"pp": "[ALYA-PATH]/Utils/user/pgiFormat2Standard.sh non_prem_box_SqSq-boundary.chm.set non_prem_box_SqSq.tem.wit non_prem_box_SqSq.chm.wit; echo | [POST] non_prem_box_SqSq"
|
|
|
},
|
|
|
"mpi": 3,
|
|
|
"openmp": 3
|
|
|
}
|
|
|
],
|
|
|
"modules": [
|
|
|
"nastin",
|
|
|
"temper",
|
|
|
"chemic"
|
|
|
],
|
|
|
"name": "non_prem_box_SqSq",
|
|
|
"postprocess": "mpio2txt"
|
|
|
}
|
|
|
``` |
|
|
\ No newline at end of file |
|
|
else:
|
|
|
|
|
|
```sh
|
|
|
git push
|
|
|
```
|
|
|
|
|
|
modify the appropriate configuration files located in `serverConfig`.
|
|
|
|
|
|
Run a testsuite so you validate that your modifications do not break its behavior.
|
|
|
|
|
|
Then, add the modified configuration files to the list of tracked file:
|
|
|
|
|
|
```sh
|
|
|
git add configFile1 configFile2
|
|
|
```
|
|
|
|
|
|
Commit:
|
|
|
|
|
|
```sh
|
|
|
git commit
|
|
|
```
|
|
|
|
|
|
And push:
|
|
|
|
|
|
```sh
|
|
|
git push
|
|
|
```
|
|
|
|
|
|
If necessary, update your branch with the master:
|
|
|
|
|
|
```
|
|
|
git fetch
|
|
|
git merge origin/master
|
|
|
git push
|
|
|
```
|
|
|
|
|
|
Ask your admin to [merge](https://gitlab.bsc.es/alya/alya-testsuite/merge_requests) your branch. |
|
|
\ No newline at end of file |