Remove test results after 5 days

This commit is contained in:
Laurent Rineau 2017-01-31 10:23:07 +01:00
parent a0bcc82311
commit e39d8687f7
2 changed files with 6 additions and 0 deletions

View File

@ -1,5 +1,11 @@
#!/bin/sh
CGAL_ROOT="/cygdrive/c/cgal/test"
# Remove test results older than 5 days.
# The pattern "../test/" after "$CGAL_ROOT" tries to protect against a
# catastrophic `rm -rf` is "$CGAL_ROOT" happens to be empty.
find "$CGAL_ROOT/../test" -maxdepth 1 -type d -name 'CGAL*' ! -ctime -5 -exec rm -rf '{}' \;
BUILD_HOSTS="localhost"
REFERENCE_PLATFORMS_DIR="c:/cgal/reference_platforms"
CGAL_TESTER="afabri"