1Remove this file prior to submission?? 2------------------------------------ 3 4Changes by Matt Helsley <matthltc@us.ibm.com>, March 12th, 2008: 5 6Many (but not all) of these changes are scripted so that I can modify the tests 7quickly by editting the ltp-convert.sh script. It saves a copy of the test foo 8as foo.orig before making any modifications. Currently there's a patch.txt file 9which shows all the changes the script makes. 10 11Moved readme.README to README 12 13Made tests run in the sandbox directory rather than in testcases/working 14 15Moved scripts and executables from testcases/working to bin 16 17Based all non-local paths out of the "$FS_BIND_ROOT" directory rather than 18having a "$path" variable. 19 20Logged mount lists before and after each test, took a diff, and removed the list 21 if they look the same. Otherwise it keeps the two files, reports the 22 diff, cleans up the mounts with a big hammer, and goes onto the next 23 test. 24 25Logged the sandbox contents before and after, took a diff, and removed the 26 logged contents if they look the same. Otherwise it keeps the 27 lists of files and dirs, reports the problem, and cleans up the 28 sandbox. This happens after the mount cleanups otherwise it could fail. 29 30Factored out the "check" function from most tests (still need to work on "childXX" and "parentXX" scripts) and put it into the setup script. 31 32Factored out the "path" variable and pushd bits into the sharedSubtree script. 33 34Added some traps to the test scripts to detect unexpected errors and log them 35 36Switched to LTP infrastructure for the test scripts. The driver scripts however 37are not switched yet (easy to do). I did this by writing some LTP API shims 38rather than try to toss it into ltp-full-XXXXXX.tgz. Then, once everything 39uses LTP we can integrate it. 40 41Made mkdir logdir quiet (restore it??) 42 43Count total tests in a separate loop so we can detect accidentally skipped tests 44 45"test" is a program -- changed variables named "test" to "t" to avoid potential 46 confusion later 47 48Added quotes around paths, variables, and output that may someday contain 49spaces (hopefully never, but..) 50 51Added logdir/errors redirection of stderr 52 53Removed testcases/<Up> script 54 55Removed .c files in testcases/cloneNS which appeared to be unused 56 57Added Makefiles for .c files and for toplevel dir (for LTP integration) 58 59Converted "mmount" to "smount" to match the .c file. 60 61Fixed up nsclone.c and smount.c to compile and do so without warnings. 62 (at least on gcc 4.2.3-1 debian) 63 64Fixed some bugs in the testcases: 65 A couple copy-paste bugs 66 Bugs with uncloneable mounts being bound but the error wasn't expected. 67 A few path bugs. 68 69Added bits to handle commands that are expected to fail (return non-zero) 70 Fixup the return code so that these are trapped properly 71 expected_to_fail && /bin/false || /bin/true 72 Redirected output 73 mount_expected_to_fail 2> /dev/null || result=$? 74 75Added umounts and comments describing cleanup bits which cleanup in case of 76 unexpected mount --move failure for example 77 78Added a BUGS file 79 80Added a CHANGELOG 81 82Added TODO file(s) 83 84Moved the sharedSubtree test to LTPROOT/testscripts and rewrote it for LTP 85