Index: trunk/ippTasks/simtest.pro
===================================================================
--- trunk/ippTasks/simtest.pro	(revision 17575)
+++ trunk/ippTasks/simtest.pro	(revision 17575)
@@ -0,0 +1,38 @@
+## simtest.pro : automatic full-suite simulated IPP test : -*- sh -*-
+
+macro simtest
+  if ($0 != 4)
+    echo "USAGE: simtest (dbname) (hostname) (init)"
+    echo " if (init) == 1, recreate and inject the images"
+    break
+  end
+
+  $dbname = $1
+  $hostname = $2
+ 
+  if ($3 == 1)
+    # XXX this will fail and exit the script if the db does not exist or is old...
+    exec pxadmin -delete -dbname $dbname
+
+    # XXX this gives warnings if the db exists...
+    exec pxadmin -create -dbname $dbname
+
+    # the labels "wait" and "proc" are special names used in automate.pro
+    exec ppSimSequence basic.simtest.config basic.simtest.mkimages basic.simtest.inject -path raw -workdir work -dbname $dbname -label wait
+    exec source basic.simtest.mkimages
+    exec source basic.simtest.inject
+  end
+
+  module pantasks.pro
+  module automate.pro
+
+  module.tasks
+
+  controller host add $hostname
+  add.database $dbname
+
+  load.automate simtest.auto $dbname
+  run
+end
+
+# XXX add a test function to pxadmin to check for db existence
