summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Allow replacing a file with a compatibility symlinkSam Thursfield2014-09-1925-0/+22
| | | | | | | | | | | | | This means we can do stuff like moving /etc/os-release into /usr/lib and leaving a compatibility symlink where the file was. Previously baserock-system-config-sync would fail with the following: ERROR: found two different types for 'os-release': regular and symlink One of the 'failure' test cases now passes, and I've added a specific test for our 'os-release' case to the 'symblinks' test case too.
* Modify 'baserock-system-config-sync' to get two arguments using 'merge'Pedro Alvarez2014-03-061-2/+2
| | | | | | | Since with 'system-version-manager' is possible to change the default system, 'baserock-system-config-sync' shouldn't get the default system, and get an extra parameter to choose the system version to merge.
* Fix behaviour in bscs-merge when vUser and v2 don't have a file of v1Pedro Alvarez2014-03-051-2/+0
| | | | | If a file was removed in vUser, and v2 doesn't have a new one, then the file is not longer needed.
* Fix baserock-system-config-sync tests. Wasn't working as expected.Pedro Alvarez2014-02-261-5/+2
|
* Add test case for vu == v2 in 'baserock-system-config-sync'Pedro Alvarez2014-02-248-0/+16
| | | | | 'baserock-system-config-sync' is doing reverse patching when that happens. This test is to check the expected behaviour.
* Modify the way to use 'patch' in 'baserock-system-config-sync'.Pedro Alvarez2014-02-201-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | baserock-sytem-config-sync: Changes here are caused by a bug found in GNU patch managing the permissions of the files when using the patch command like: patch <file_to_apply_patch> -t -o <output_file> To reproduce the bug: echo foo > file1 echo bar > file2 diff -u file1 file2 | patch 1 -t -o file3 ls -l You can check that the permissions of 'file3' are different than the permissions of 'file1' or 'file2'. To avoid the bug, this patch changes the way we are using patch, using it as following: patch <file_to_apply_patch> -t Since the output file is not specified, the output file will be the file in which we want to apply the patch. And due we cannot specify the output file, we are copying the file to the destination directory, and then applying the patch there. As a consequence of changing the way of using patch, now 'patch' generates an extra file when patching fails. This file is added in the test suite also in this commit.
* Update 'baserock-system-config-sync' tests to check permissionsPedro Alvarez2014-02-201-2/+30
|
* Remove old tests and any code specific to those testsBen Brown2013-12-1919-839/+2
|
* Conversion of tbdiff directory testsBen Brown2013-11-058-0/+0
| | | | | | Disabled (renamed) old tests that have been converted Removed compilation instruction for symtime.c from README
* Change the temporary directory used for tests to be based on the current ↵Tiago Gomes2013-07-011-1/+3
| | | | | | | directory Or else the test using extended attributes will fail because extended attributes are not supported in tmpfs.
* Remove test mode and provide hooks to use a test suite.Tiago Gomes2013-07-01212-1/+1425
| | | | | | | | | Tests will now be handled by a test suite in a future commit, so this mode will not be needed anymore. The test suite will work by replacing the mounting script by a fake mounting script that points to a directory with a systems folder. Also add trap again, now that it is more tested.
* Switch to a shared tbdiff library and make this an autotools project.Jannis Pohlmann2012-03-222-1/+23
| | | | | | | | | | | | | | | | | | | | | | | | | This commit converts tbdiff to being an autotools-based project. This means that we now support the usual autoreconf -i && ./configure && make && make install process, plus we provide 'make check' for the tbdiff test suite. The tbdiff library is now build as a shared library and is also installed into the system for others to use. The library is libtool-versioned and ships a pkg-config file (tbdiff-1.pc). The headers were adjusted so that only tbdiff/tbdiff.h may be included directly; all others are considered internal. The tbdiff-create and tbdiff-deploy tools were changed to include this header file. The tbdiff library is still GPL, not LGPL. We might want to change this in the future. Thanks to switching to autotools we now have a way to make releases by means of 'make dist' and 'make distcheck'. Unfortunately, the latter currently fails, probably due to something being missing in tbdiff/Makefile.am.
* Patch problem fixed! Still a problem with patch 7.Danny Abukalam2012-01-279-22/+5
|
* Cross-Platform testing still kind of broken...Danny Abukalam2012-01-273-160/+93
|
* Corrupted git repoDanny Abukalam2012-01-2613-0/+163
|
* Fixed bug didn't exit when cross_plat.sh failed.Danny Abukalam2012-01-091-0/+6
|
* Added Cross Platform TestingDanny Abukalam2012-01-092-1/+98
|
* Added Patch files for testingDanny Abukalam2012-01-052-0/+0
|
* Added xattr supportRichard Maw2011-10-171-3/+8
| | | | | Fixed inconsequential memory leak in tbdiff_create.c Lost memory would be cleaned up by OS at exit, but valgrind complains
* Restructured tests so mandatory delay between source and targetRichard Maw2011-10-1417-102/+149
| | | | | | directories can be inserted, to ensure mtime is not equal now dir_add_remove fails because the mtime of the directory changed after a file in it was altered
* Fixed files losing group metadataRichard Maw2011-10-141-0/+4
| | | | | | | | | | | Actually it was losing all metadata other than that which changed metadata was lost when the file was removed, but only the data that changed was applied the fix is to ignore the metadata diff mask as all the data is written to the binary diff, however it needn't be, so if it gets fixed to only send what changed, the metadata will have to be read before the file is recreated and the metadata changed based on what was sent in the binary diff
* :facepalm: the test was failing from a bug in the test.Richard Maw2011-10-141-4/+4
| | | | | The corrected test also fails, however, so I guess I was right about there being a bug, though that is coincidental.
* Fixed some typos in testsRichard Maw2011-10-132-2/+19
| | | | | added test for group changes in symlinks symlinks change the group of what is referenced
* Tests and fix for a horrific bug where removing a symlink to aRichard Maw2011-10-131-8/+18
| | | | directory would remove the directory
* Added test for extended attributesRichard Maw2011-10-102-2/+61
|
* Altered tests to check for sticky and setgid bits on directoriesRichard Maw2011-10-102-20/+30
|
* libtbd_create now fails if target directory has a socket.Richard Maw2011-10-101-4/+4
| | | | | | | tbdiff-create will print a suggested fix Made check_command shell function able to use any type of command for return value checking Fixed minor bugs in TBD_ERROR macro not being used for some errors
* Added the ability to test the return code of create and deployRichard Maw2011-10-105-13/+228
| | | | | | | | | | So expected failures can be made by comparing the return code to the expected Also socket tests have been added, add and diff expect create to fail for now The only sensible operation on sockets is to remove them as they need a program to bind them and that program (or a child) needs to be a server So tbdiff should fail if it has to perform such an act. It may be worth having an option to ignore the change, but for now it's better to fail and let the user know why so they can fix it
* Added tests for block devicesRichard Maw2011-10-062-0/+53
|
* Made tests for character devicesRichard Maw2011-10-062-0/+53
|
* Removed bashisms from test scripts, so sh should be able to run themRichard Maw2011-10-069-28/+34
| | | | | | The temporary test directory is now made using mktemp -d instead of using uuid mktemp comes with coreutils, uuid does not, and mktemp makes the directory for you.
* Remove debugging outputAlberto Ruiz2011-10-041-1/+0
|
* Enhance dir add remove testAlberto Ruiz2011-10-041-6/+9
|
* Fix directory diff testAlberto Ruiz2011-10-041-3/+4
|
* Added directory testsAlberto Ruiz2011-10-043-0/+67
|
* Only run tests with .sh extensionAlberto2011-10-031-1/+1
|
* Rearranging unit testsAlberto2011-10-036-3/+35
|
* Add FIFO test. Add fakeroot environment. Fixes in symlink diff.Alberto2011-10-034-6/+34
|
* Additions to the testing READMEAlberto2011-10-032-8/+0
|
* Improvements to the test framework and documentationAlberto2011-10-033-11/+57
|
* Added symlink add/remove testAlberto2011-10-034-4/+34
|
* Added symlink diff testAlberto2011-10-033-8/+57
|
* Fix sanity check in test frameworkAlberto2011-10-032-2/+8
|
* Basic file testAlberto2011-10-031-3/+3
|
* Added prototype of test suiteAlberto2011-09-303-0/+127