Codebase list cdebconf / 785e1e73-ba4d-4d50-b98e-535c5b667d90/main doc / testing.txt
785e1e73-ba4d-4d50-b98e-535c5b667d90/main

Tree @785e1e73-ba4d-4d50-b98e-535c5b667d90/main (Download .tar.gz)

testing.txt @785e1e73-ba4d-4d50-b98e-535c5b667d90/mainraw · history · blame

Some simple hints on how to do local testing of cdebconf:

./configure --with-frontend=text --with-conffile=./cdebconf.conf
make

cd src/test
cp ../cdebconf.conf .

Edit cdebconf.conf to suit your needs, mine looks like this:
- 8< -----
global {
  module_path {
    frontend "../modules/frontend";
    database "../modules/db";
  };

  default {
    frontend "default_fe";
    template "templatedb";
    config "configdb";
  };
};

frontend {
  instance "default_fe" {
    driver "text";
  };
};

template {
  instance "templatedb" {
    driver "rfc822db";
    path "./templates.dat";
  };
};

config {
  instance "configdb" {
    driver "rfc822db";
    path "./questions.dat";
  };
};
- 8< -----


../debconf-loadtemplate debian test.templates
../debconf test.config