aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2019-08-12 11:34:36 +0200
committerThomas White <taw@physics.org>2019-08-16 10:27:00 +0200
commit9a510740e673a9b9ce82e08c2e2ccb4c3a36ebfd (patch)
treea3f0e6bd080a952024b6ffb3bf25b3d5600e05b4 /tests
parent7a81b3c0557f97f81fec83afd95802d1e62c1a43 (diff)
cellcompare_check: Progress bars
Diffstat (limited to 'tests')
-rw-r--r--tests/cellcompare_check.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/cellcompare_check.c b/tests/cellcompare_check.c
index 4b9ba869..48b7a9c5 100644
--- a/tests/cellcompare_check.c
+++ b/tests/cellcompare_check.c
@@ -224,7 +224,6 @@ int main(int argc, char *argv[])
if ( cref == NULL ) return 1;
/* Just rotate cell */
- STATUS("Testing plain rotation...\n");
for ( i=0; i<100; i++ ) {
cell = cell_rotate(cref, random_quaternion(rng));
@@ -237,10 +236,10 @@ int main(int argc, char *argv[])
if ( check_crcp(cell, cref, tols, NULL, 1) ) return 1;
cell_free(cell);
+ progress_bar(i+1, 100, "Plain rotation");
}
/* Permute axes but don't rotate */
- STATUS("Testing axis permutation...\n");
for ( i=0; i<100; i++ ) {
IntegerMatrix *tr;
@@ -256,10 +255,10 @@ int main(int argc, char *argv[])
cell_free(cell);
intmat_free(tr);
+ progress_bar(i+1, 100, "Axis permutation");
}
/* Rotate cell and permute axes */
- STATUS("Testing rotation with axis permutation...\n");
for ( i=0; i<100; i++ ) {
IntegerMatrix *tr;
@@ -280,10 +279,10 @@ int main(int argc, char *argv[])
cell_free(cell);
intmat_free(tr);
+ progress_bar(i+1, 100, "Rotation with axis permutation");
}
/* Reindex */
- STATUS("Testing reindexing...\n");
for ( i=0; i<100; i++ ) {
RationalMatrix *tr;
@@ -309,10 +308,10 @@ int main(int argc, char *argv[])
cell_free(cell);
rtnl_mtx_free(tr);
+ progress_bar(i+1, 100, "Reindexing");
}
/* Reindex and rotate */
- STATUS("Testing reindexing with rotation...\n");
for ( i=0; i<100; i++ ) {
RationalMatrix *tr;
@@ -340,6 +339,7 @@ int main(int argc, char *argv[])
cell_free(cell);
rtnl_mtx_free(tr);
+ progress_bar(i+1, 100, "Reindexing with rotation");
}
/* NB There's no compare_reindexed_cell_parameters_and_orientation */