4 messages in com.perforce.perforce-user[p4] HELP - Triggers and Daemons
FromSent OnAttachments
Brian Taylor05 Apr 2002 07:33 
Dirk Ringe05 Apr 2002 07:54 
Mike Pagel05 Apr 2002 08:21 
Diane Holt05 Apr 2002 14:29 
Subject:[p4] HELP - Triggers and Daemons
From:Brian Taylor (btay@aegiscorp.com)
Date:04/05/2002 07:33:15 AM
List:com.perforce.perforce-user

I'm doing research on automated testing... I think I want it to detect a keyword (e.g. "RUN_TEST"), kick off "ant" to do a build and run an automated test suite... I'd actually like to do it on a job basis, but it doesn't look like the hook is there... In fact, now that I think about it, I believe the only trigger available is pre-submit... that would present a problem... I was examining any perforce hooks that might support automated testing. I was disappointed to the extreme. There must be something I am overlooking. All I want to do is kick of a script if a SPECIFIC depot is updated... Sounds so EASY.... The script will be hook to an "ant" build engine that runs an automated test suite, publishes results, sends email, solves the mid-east crisis, you name it.

Perforce has to methods to accomplish this (that I know of), triggers and daemons. * Triggers are pre-update (we would want post update) and the dos trigger I experimented with was EXTREMELY flaky. * Daemons would seem the way to go. But there doesn't seem to be a way to examine metadata on a specific depot. I would want to be able to tell if there were activities on a specific depot, or maybe even specific directories in the depot (I can get down to the directory level with triggers)

I have scoured their website, it doesn't look like perforce supports what I want to do.... Is there something I am missing?

Brian

Manufacturing Informatics(R) for Process Improvement