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
|
||
|---|---|---|
| .. | ||
| diff-complex-application-test.cpp | ||
| diff-index-table-test.cpp | ||
| diff-list-application-test.cpp | ||
| diff-list-generation-test.cpp | ||
| diff-tree-application-test.cpp | ||
| gen-node-basic-test.cpp | ||
| generic-record-representation-test.cpp | ||
| tree-mutator-binding-test.cpp | ||
| tree-mutator-test.cpp | ||