cf-sketch.pl: exit 0 if --apitest is successful, exit 1 otherwise