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
|
||
|---|---|---|
| .. | ||
| DIR_INFO | ||
| sync-classlock-test.cpp | ||
| sync-locking-test.cpp | ||
| sync-timedwait-test.cpp | ||
| sync-waiting-test.cpp | ||
| test-filedescriptors.c | ||
| test-filehandles.c | ||
| test-fileheader.c | ||
| test-filemmap.c | ||
| test-resourcecollector.c | ||
| test-threadpool.c | ||
| test-threads.c | ||
| thread-local-test.cpp | ||
| thread-wrapper-join-test.cpp | ||
| thread-wrapper-test.cpp | ||