summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* Cross-Platform testing still kind of broken...Danny Abukalam2012-01-274-161/+96
|
* Corrupted git repoDanny Abukalam2012-01-2613-0/+163
|
* Fixed bug didn't exit when cross_plat.sh failed.Danny Abukalam2012-01-091-0/+6
|
* Merge branch 'test'Danny Abukalam2012-01-095-3/+104
|\
| * Added Cross Platform TestingDanny Abukalam2012-01-093-3/+104
| |
| * Added Patch files for testingDanny Abukalam2012-01-052-0/+0
|/
* Added library to control reading and writing to streamsDanny Abukalam2011-12-169-96/+291
| | | | | | Added Cross-endian platform support Changed gids and uids to respective variables Forced time_t to be written as a uint64_t to support cross-architecture
* mtime is now a time_t rather than a uint32_tRichard Maw2011-10-194-18/+18
| | | | | | In future it should be standardised so that diffs can be made on a different architecture to the one they are deployed on, but currently it doesn't work on the same architecture if that architecture is 64-bit
* Hopefully fixes a crash on 64-bitRichard Maw2011-10-191-2/+2
|
* Forgot some filesRichard Maw2011-10-192-0/+285
|
* Added xattr supportRichard Maw2011-10-176-10/+206
| | | | | Fixed inconsequential memory leak in tbdiff_create.c Lost memory would be cleaned up by OS at exit, but valgrind complains
* Should fix directory mtime differencesRichard Maw2011-10-172-32/+35
|
* 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-142-8/+25
| | | | | | | | | | | 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
* Fixed a typo that was bugging meRichard Maw2011-10-141-1/+1
|
* Fixed it not updating gid for symbolic links if only gid were different.Richard Maw2011-10-141-1/+1
|
* :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-132-33/+59
| | | | 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
|
* Merge branch 'master' of git://gitorious.org/baserock/tbdiffRichard Maw2011-10-100-0/+0
|\ | | | | | | | | Conflicts: tests/test_lib.sh
| * Added the ability to test the return code of create and deployRichard Maw2011-10-075-13/+170
| | | | | | | | | | | | | | | | | | | | 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
* | libtbd_create now fails if target directory has a socket.Richard Maw2011-10-105-12/+46
| | | | | | | | | | | | | | 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-106-13/+240
|/ | | | | | | | | | 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
|
* Fixed tbd-create not writing the commands to alter special devices if they wereRichard Maw2011-10-061-12/+3
| | | | different
* Testing readme now doesn't refer to test scripts as bash scriptsRichard Maw2011-10-061-6/+6
|
* 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.
* Made the inline function more standardRichard Maw2011-10-062-3/+3
|
* Fixed paths being corrupted and making garbage paths appearRichard Maw2011-10-051-2/+5
| | | | | | | struct dirent pointer returned from readdir was being used after the DIR had been closed. malloc was reusing that memory when trying to construct a tbd_stat_t, but tried to fill it with data from the struct dirent which was owned by the DIR.
* tbd_error replaced with TBD_ERROR so that it is explicitly a macroRichard Maw2011-10-054-105/+109
| | | | | | TBD_ERROR should work when NDEBUG is defined. Previously return tbd_error(e); -> return return e; tbd_error is now an inline function, it feels tidier than statement expressions
* Remove debugging outputAlberto Ruiz2011-10-041-1/+0
|
* Renamed _tbd_stat to tbd_stat_from_pathAlberto Ruiz2011-10-041-5/+5
|
* Style fixesAlberto Ruiz2011-10-041-15/+10
|
* Style fixes for readability and consistencyAlberto Ruiz2011-10-041-4/+3
|
* Fix bracket styleAlberto Ruiz2011-10-041-2/+1
|
* Remove double underscore from _tdb_statAlberto Ruiz2011-10-041-6/+5
|
* Enhance dir add remove testAlberto Ruiz2011-10-041-6/+9
|
* Fix directory diff testAlberto Ruiz2011-10-041-3/+4
|
* Fix directory difference command sequenceAlberto Ruiz2011-10-043-3/+15
|
* Added directory testsAlberto Ruiz2011-10-043-0/+67
|
* Fixed problem with dymlink diffsAlberto Ruiz2011-10-033-22/+17
|
* 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
|
* Updated TODOAlberto2011-10-031-10/+13
|
* Additions to the testing READMEAlberto2011-10-033-9/+48
|
* Improvements to the test framework and documentationAlberto2011-10-034-11/+77
|