~ubuntu-branches/ubuntu/trusty/schroot/trusty

« back to all changes in this revision

Viewing changes to test/test-sbuild-chroot.h

  • Committer: Bazaar Package Importer
  • Author(s): Roger Leigh
  • Date: 2011-05-15 16:22:36 UTC
  • mfrom: (1.1.30 upstream) (2.2.24 sid)
  • Revision ID: james.westby@ubuntu.com-20110515162236-cfpzkanx65sexo8c
* New upstream stable release.
* Large file support is enabled by default.  This enables the use
  of files over 2 GiB in size on 32 bit architectures
  (Closes: #619825).
* dchroot-dsa: Use current interface for loading dchroot.conf,
  rather than the old, which caused a fatal exception
  (Closes: #626503).
* schroot: Don't use rbind when mounting filesystems in the chroot
  (Closes: #622756).  Recursive bind mounting of /proc, /dev and
  /sys caused breakage with systemd due to its use of autofs mounts.
  autofs interacts badly with bind mounting, leading to unmountable
  mount points.  While rbind is still possible, it is not done by
  default, and instead only specific filesystems are mounted;
  additional mounts required must be added to the profile fstab file.
* man: Add missing newline for run-exec-scripts (Closes: #624303).
  Fix incorrectly terminated underlining of /proc (Closes: #624302).
  Also document the chroot types implementing specific additional
  options (Closes: #626221).  Thanks to Marc Haber and Brian May.
* Session metadata includes the original chroot name.  This is
  available in the user environment as SCHROOT_CHROOT_NAME and
  in the setup scripts as CHROOT_NAME (Closes: #623828).
* Include buildd profile.  This was previously included in the buildd
  and sbuild packages, but was not built for the specific host
  architecture due to the package being arch: all.  We therefore
  Replace: buildd and sbuild for versions prior to 0.62.3-1.
  This also involved moving some parts of the base "all" profile
  template into other profile templates in order to keep it
  sufficiently minimal for buildd, and a simplification of
  nssdatabases for the minimal and sbuild profiles.
* Drop obsolete Replaces: from schroot-common.

Show diffs side-by-side

added added

removed removed

Lines of Context:
177
177
  void setup_env_chroot (sbuild::environment& env)
178
178
  {
179
179
    env.add("CHROOT_NAME",           "test-name");
 
180
    env.add("SESSION_ID",            "test-name");
180
181
    env.add("CHROOT_DESCRIPTION",    "test-description");
181
182
    env.add("CHROOT_SCRIPT_CONFIG",  sbuild::normalname(std::string(SCHROOT_SYSCONF_DIR) + "/default/config"));
182
183
  }
203
204
                              std::string const& group)
204
205
  {
205
206
    setup_keyfile_chroot(keyfile, group);
 
207
    keyfile.set_value(group, "original-name", "test-name");
206
208
    keyfile.set_value(group, "users", "user1");
207
209
    keyfile.set_value(group, "root-users", "");
208
210
    keyfile.set_value(group, "groups", "");
400
402
             ++pos)
401
403
          {
402
404
            observed_keyfile.get_value(observed_group, *pos, value);
403
 
            std::cout << "Additional keys: " 
 
405
            std::cout << "Additional keys: "
404
406
                      << *pos << "=" << value << std::endl;
405
407
          }
406
408
      }