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
|
||
|---|---|---|
| .. | ||
| time | ||
| diagnostic-context-test.cpp | ||
| DIR_INFO | ||
| stream-type-basics-test.cpp | ||
| stream-type-lifecycle-test.cpp | ||
| teststreamtypes.hpp | ||
| typed-counter-test.cpp | ||
| visitingtool-concept.cpp | ||
| visitingtool-extended-test.cpp | ||
| visitingtool-test.cpp | ||