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
|
||
|---|---|---|
| .. | ||
| build-segment-test.cpp | ||
| builder-tool-test.cpp | ||
| fixture-change-detector-test.cpp | ||
| model-port-registry-test.cpp | ||
| segmentation-datastructure-test.cpp | ||