summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)AuthorFilesLines
2013-04-09sbuild: Move chroot-loopback to namespace chrootRoger Leigh1-8/+8
2013-04-07sbuild: Move chroot-file to namespace chrootRoger Leigh1-13/+13
2013-04-07sbuild: Move chroot-block-device and chroot-lvm-snapshot to namespace chrootRoger Leigh2-12/+12
2013-04-07sbuild: Move chroot-directory and chroot-plain to namespace chrootRoger Leigh3-12/+12
2013-04-07sbuild: Move chroot-config to namespace chrootRoger Leigh1-14/+14
2013-04-07sbuild: Move chroot to namespace chrootRoger Leigh12-102/+102
2013-04-03lib: Rename schroot-base to bin-common (2)Roger Leigh3-12/+12
2013-04-03lib: Rename schroot-base to bin-commonRoger Leigh1-0/+0
2013-04-02lib: Move libtest to libRoger Leigh2-74/+22
2013-04-02test: Merge helpers.h into sbuild/chroot.hRoger Leigh12-78/+31
2013-04-02lib: Move libschroot-base to libRoger Leigh1-1/+1
2013-04-02lib: Move libsbuild to libRoger Leigh1-1/+1
2013-04-02test: Reorganise tests by component (3)Roger Leigh12-41/+41
2013-04-02test: Reorganise tests by component (2)Roger Leigh11-75/+75
2013-04-02test: Reorganise tests by componentRoger Leigh23-0/+0
2013-04-02schroot-base: Remove schroot-base- prefix (3)Roger Leigh1-2/+2
2013-04-02sbuild: Remove sbuild- prefixRoger Leigh24-68/+68
2013-04-01build: Correct test dependenciesRoger Leigh1-2/+2
2013-04-01Remove device lockingRoger Leigh1-150/+0
- All use of liblockdev has been removed. - sbuild::device_lock has been removed; it may be restored using flock(2) at a later date, but the flock semantics are different to liblockdev persistent LCK.. lockfiles. - sbuild::chroot_block_device and sbuild::chroot_lvm_snapshot no longer use sbuild::device_lock; in reality, the use of device_lock here was ineffectual at best, so should not result in unsafe use of block devices, since we rely on lvcreate/ lvremove to do appropriate locking for us. For plain block devices and source chroots, these are not session-capable and so locking is pointless here anyway. - setupd.5/05lvm no longer releases locks with schroot-releaselock. - schroot-releaselock has been removed.
2013-03-31Update copyrights of all filesRoger Leigh26-29/+27
2013-03-31build: Use non-recursive makeRoger Leigh3-177/+177
Don't recurse into subdirectories (with the exception of po). Include Makefile.am fragments from subdirectories into the top-level Makefile, adjusted to use paths relative to the root.
2013-03-12sbuild::keyfile: Refactor reading and writingRoger Leigh10-14/+35
Reading and writing of keyfile data split into keyfile_reader and keyfile_writer. keyfile is now for storage only, and serialisation is separate, to allow decoupling of file format and storage.
2013-02-03Use C++11 range-based for loopsRoger Leigh2-48/+30
2013-01-05Replace tabs with spaces in all source codeRoger Leigh18-378/+378
2012-11-03sbuild::chroot_facet_userdata: Add additional unsharing optionsRoger Leigh1-2/+8
2012-11-03sbuild: Add unsharing of network devicesRoger Leigh1-0/+9
Add support for unshare(CLONE_NEWNET): - add chroot_facet_unshare - use "unshare.newnet" key - restore use of exec scripts, but just as an addition argument to existing setup scripts - add 60unshare setup script
2012-11-03sbuild::chroot_facet_userdata: treat unused keys as userdataRoger Leigh1-0/+4
2012-11-03sbuild::chroot: Add get_used_keys methodRoger Leigh1-3/+6
This splits out the used_keys functionality from set_keyfile. This is so that the keys used may be queried separately from keyfile loading.
2012-10-27sbuild: Test source session cloningRoger Leigh10-51/+283
2012-10-27sbuild: Correct alias handlingRoger Leigh1-4/+13
Alias names were being lost before being stored in the session metadata. This has been corrected by using an alias->chroot mapping for the chroots selected by the user; plus keeping a list of alias names (to preserve the ordering). This has required some refactoring to accommodate the changes. The information display functionality previously in sbuild::chroot_config has been moved into the client code. The chroot validation is now also done in a single step, which makes the validation simpler and more robust.
2012-06-25test: Fix pathrelease/schroot-1.6.0debian/schroot-1.6.0-1Roger Leigh1-1/+1
2012-06-25sbuild::chroot: Add CHROOT_PROFILE_DIRRoger Leigh2-1/+3
CHROOT_PROFILE does not include a path. The _DIR variant includes the absolute path.
2012-06-25test: Update testsuite for profile and script-config behaviourRoger Leigh2-2/+54
2012-05-29test: Fix path for CHROOT_PROFILE environment variablerelease/schroot-1.5.3debian/schroot-1.5.3-1Roger Leigh1-1/+1
2012-05-23schroot: Add shell fallbacks and chroot and user overridesRoger Leigh1-0/+2
Fallback list: $SHELL (if preserving environment) passwd pw_shell /bin/bash /bin/sh Overridable using the shell= key, which is in turn overridable using the --shell option. SHELL is set in the user environment.
2012-05-15.gitignore: Updaterelease/schroot-1.5.2debian/schroot-1.5.2-1Roger Leigh1-0/+1
2012-05-14bin: Don't use boost validation_error exceptionRoger Leigh1-7/+5
Create custom schroot_base::options::error wrapper around std::runtime error. This results in much nicer exception formatting.
2012-05-09sbuild: Add custom chroot typeRoger Leigh2-0/+225
2012-05-08test: Ensure that userdata reserved namespaces checks fail correctlyRoger Leigh2-4/+22
Also tighten check for setup.data.dir.
2012-04-03sbuild: Add sbuild::chroot_facet_userdata and --option optionRoger Leigh4-0/+185
2012-03-25sbuild::regex: Use C++11 regex in addition to boost::regexRoger Leigh1-2/+12
Optionally support C++11 regex as a base for sbuild::regex. Use encapsulation rather than inheritance to keep the interface sane. Note that the current GCC std::regex implementation appears broken; this is explicitly tested for by configure. In this situation boost::regex will continue to be used.
2012-03-25sbuild: Replace TR1 types with C++11 typesRoger Leigh8-31/+31
Use std namespace in place of std::tr1. For compilers lacking C++11 support, or which have C++11 support disabled, import the TR1 types into the std namespace for compatibility. Additionally, import the corresponding Boost types into the std namespace for compilers lacking TR1 support. Use C++11 types throughout in place of TR1 types.
2011-11-27sbuild::chroot_facet_session: Store alias used as selected_nameRoger Leigh8-0/+23
Set in environment as CHROOT_ALIAS.
2011-07-09schroot: Preserve original chroot name after session cloningRoger Leigh7-12/+12
- In setup scripts, store in CHROOT_NAME - In user shell, store in SCHROOT_CHROOT_NAME - In info output, display as Original Chroot Name - In session state file, store as original-name (deserialisation is optional to cater for older sessions not having the information).
2010-07-11sbuild::chroot: Obsolete priorityRoger Leigh2-9/+0
2010-07-11sbuild::chroot_config: validate canonicalises namespaceRoger Leigh2-2/+2
This means all chroot names in use have a valid namespace. schroot can use the session namespace for searching when running sessions etc.
2010-07-11test::sbuild_chroot_config: Drop old commentRoger Leigh1-1/+1
2010-07-11test: Use new chroot_config interfaceRoger Leigh9-42/+53
2010-07-05build: Remove maintainer mode and add additional definesRoger Leigh1-1/+1
Remove maintainer mode. Add SCHROOT_DATA_DIR, SCHROOT_SETUP_DATA_DIR and replace PACKAGE_SYSCONF_DIR with SCHROOT_SYSCONF_DIR. Export into the setup script environment as SYSCONF_DIR, DATA_DIR and SETUP_DATA_DIR.
2010-07-05sbuild::chroot_file: Add location configuration keyRoger Leigh1-1/+26
Allows use of chroots packed with the system in a subdirectory.