Home | History | Annotate | Download | only in fs_bind
      1 Remove this file prior to submission??
      2 ------------------------------------
      3 
      4 Changes by Matt Helsley <matthltc (a] us.ibm.com>, March 12th, 2008:
      5 
      6 Many (but not all) of these changes are scripted so that I can modify the tests
      7 quickly by editting the ltp-convert.sh script. It saves a copy of the test foo
      8 as foo.orig before making any modifications. Currently there's a patch.txt file
      9 which shows all the changes the script makes.
     10 
     11 Moved readme.README to README
     12 
     13 Made tests run in the sandbox directory rather than in testcases/working
     14 
     15 Moved scripts and executables from testcases/working to bin
     16 
     17 Based all non-local paths out of the "$FS_BIND_ROOT" directory rather than
     18 having a "$path" variable.
     19 
     20 Logged 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 
     25 Logged 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 
     30 Factored out the "check" function from most tests (still need to work on "childXX" and "parentXX" scripts) and put it into the setup script.
     31 
     32 Factored out the "path" variable and pushd bits into the sharedSubtree script.
     33 
     34 Added some traps to the test scripts to detect unexpected errors and log them
     35 
     36 Switched to LTP infrastructure for the test scripts. The driver scripts however
     37 are not switched yet (easy to do). I did this by writing some LTP API shims
     38 rather than try to toss it into ltp-full-XXXXXX.tgz. Then, once everything
     39 uses LTP we can integrate it.
     40 
     41 Made mkdir logdir quiet (restore it??)
     42 
     43 Count 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 
     48 Added quotes around paths, variables, and output that may someday contain
     49 spaces (hopefully never, but..)
     50 
     51 Added logdir/errors redirection of stderr
     52 
     53 Removed testcases/<Up> script
     54 
     55 Removed .c files in testcases/cloneNS which appeared to be unused
     56 
     57 Added Makefiles for .c files and for toplevel dir (for LTP integration)
     58 
     59 Converted "mmount" to "smount" to match the .c file.
     60 
     61 Fixed up nsclone.c and smount.c to compile and do so without warnings.
     62 	(at least on gcc 4.2.3-1 debian)
     63 
     64 Fixed 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 
     69 Added 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 
     75 Added umounts and comments describing cleanup bits which cleanup in case of
     76 	unexpected mount --move failure for example
     77 
     78 Added a BUGS file
     79 
     80 Added a CHANGELOG
     81 
     82 Added TODO file(s)
     83 
     84 Moved the sharedSubtree test to LTPROOT/testscripts and rewrote it for LTP
     85