vidjil.cpp: --max-clones, limit clones both on stdout and on json output

Closes #3347.
See also #3302.
10 jobs for feature-a/3347-max-clones in 13 minutes and 35 seconds (queued for 1 second)
Status Name Job ID Coverage
  Test Tools
passed test_tools #133176

00:00:05

failed test_tools #132721

00:40:29

 
  Test Unit
passed test_algo_unit #132722

00:03:03

passed test_tools_unit #132723

00:00:04

 
  Test Functional
failed test_algo_should #132724

00:10:26

 
  Test Shouldvdj
skipped test_algo_shouldvdj #132725
 
  Coverage
skipped algo_coverage #132726
 
  Prepare Release
skipped prepare_release #132727
allowed to fail manual
 
  Valgrind Unit
skipped algo_valgrind_unit #132728
valgrind
 
  Valgrind Functional
skipped algo_valgrind_functional #132729
valgrind allowed to fail manual
 
Name Stage Failure
failed
test_algo_should Test Functional There is an unknown failure, please try again
make[2]: *** [should] Error 1
make[2]: Leaving directory '/home/gitlab-runner/builds/fcaaa996/0/vidjil/vidjil/algo/tests'
Makefile:184: recipe for target 'should' failed
make[1]: *** [should] Error 2
make[1]: Leaving directory '/home/gitlab-runner/builds/fcaaa996/0/vidjil/vidjil/algo'
Makefile:212: recipe for target 'should_coverage' failed
make: *** [should_coverage] Error 2
make: Leaving directory '/home/gitlab-runner/builds/fcaaa996/0/vidjil/vidjil/algo'
ERROR: Job failed: exit status 1