this bit of Sed magic relies on the fact that we happen to write
the almost correct class name of a test into the header comment.
HOWTO:
for F in $(find tests -type f \( -name '*.cpp' \) -exec egrep -q '§§TODO§§' {} \; -print);
do sed -r -i -e'
2 {h;x;s/\s+(.+)\(Test\).*$/\\ref \1_test/;x};
/§§TODO§§/ {s/§§TODO§§//;G;s/\n//}'
$F;
done
|
||
|---|---|---|
| .. | ||
| digxel-configurations-test.cpp | ||
| digxel-test.cpp | ||
| format-support-test.cpp | ||
| quantiser-basics-test.cpp | ||
| time-basics-test.cpp | ||
| time-control-test.cpp | ||
| time-formats-test.cpp | ||
| time-mutation-test.cpp | ||
| time-parsing-test.cpp | ||
| time-quantisation-test.cpp | ||
| time-value-test.cpp | ||