component_dir=`dirname $PWD`
fprime_dir=`dirname $component_dir`/fprime

empty()
{
  # Run the empty test in auto setup mode
  # This tests auto setup
  update "-a -u -t -i `cat ../deps-comma.txt`" "-p $component_dir,$fprime_dir ../empty" empty
  move_test_template Empty
}

passive()
{
  update "-u -t -i `cat ../deps-comma.txt`" "-p $component_dir,$fprime_dir ../passive" passive
  move_test_template PassiveCommands
  move_test_template PassiveEvents
  move_test_template PassiveGetProductPortsOnly
  move_test_template PassiveGetProducts
  move_test_template PassiveGuardedProducts
  move_test_template PassiveParams
  move_test_template PassiveExternalParams
  move_test_template PassiveSerial
  move_test_template PassiveSyncProductPortsOnly
  move_test_template PassiveSyncProducts
  move_test_template PassiveTelemetry
  move_test_template PassiveTest
}

active()
{
  update "-u -t -i `cat ../deps-comma.txt`" "-p $component_dir,$fprime_dir ../active" active
  move_test_template ActiveAsyncProductPortsOnly
  move_test_template ActiveAsyncProducts
  move_test_template ActiveCommands
  move_test_template ActiveEvents
  move_test_template ActiveGetProducts
  move_test_template ActiveGuardedProducts
  move_test_template ActiveNoArgsPortsOnly
  move_test_template ActiveParams
  move_test_template ActiveExternalParams
  move_test_template ActiveSerial
  move_test_template ActiveSyncProducts
  move_test_template ActiveTelemetry
  move_test_template ActiveTest
}

queued()
{
  update "-u -t -i `cat ../deps-comma.txt`" "-p $component_dir,$fprime_dir ../queued" queued
  move_test_template QueuedCommands
  move_test_template QueuedEvents
  move_test_template QueuedGetProducts
  move_test_template QueuedGuardedProducts
  move_test_template QueuedParams
  move_test_template QueuedExternalParams
  move_test_template QueuedSerial
  move_test_template QueuedSyncProducts
  move_test_template QueuedTelemetry
  move_test_template QueuedTest
}
