hint about req. free space, formatting cleanup, drop completed todo items

This commit is contained in:
George Danchev 2011-07-09 07:33:33 +00:00
parent d81ac5328b
commit 0a3923c2ed
4 changed files with 38 additions and 39 deletions

View File

@ -1,10 +1,10 @@
Release Engineering Release Engineering
~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~
* SOFTWARE TO TEST * SOFTWARE TO TEST
Use latest libburnia libraries code base from svn and bzr + Use latest libburnia libraries code base from svn and bzr
(see README for aditional and autodetected library dependencies) (see top-level README for aditional library dependencies)
Alternatively, use latest all-in-one development tarball from: + Alternatively, use latest all-in-one development tarball from:
http://www.gnu.org/software/xorriso/ http://www.gnu.org/software/xorriso/
* SETUP THE TEST ENVIRONMENT AND RUN THE TEST SUITE * SETUP THE TEST ENVIRONMENT AND RUN THE TEST SUITE
+ All tests have to be run from the releng/ directory, within + All tests have to be run from the releng/ directory, within
@ -16,8 +16,8 @@ Release Engineering
* DELIVERING A NEW TEST SCRIPT * DELIVERING A NEW TEST SCRIPT
+ Start a new test script over the top of template_new_releng + Start a new test script over the top of template_new_releng
+ All filenames start with releng_ prefix + Each completed script starts with releng_ prefix
+ Self generated data are to be stored in + Each script' self-generated data are to be stored in
./releng_generated_data/scriptname/ directory ./releng_generated_data/scriptname/ directory
+ Keep the newly added script options in sync with other scripts + Keep the newly added script options in sync with other scripts
+ Throw FAIL string to stdout if any failure is detected + Throw FAIL string to stdout if any failure is detected

View File

@ -1,27 +1,14 @@
* Invent an interpreter to read options from config files and sets the variables
or use confget ( http://devel.ringlet.net/textproc/confget/ )
OR BETTER YET TRY TO DROP the entire concept of config files and
rely solely on cmdline options.
* Write a common configuration facility. * Expose xorriso --version of tested binary just once.
* Expose ldd and --version of tested binary just once.
* Also support 'run_all_releng /path/to/xorriso [-keep]'
i.e. without the need to install config files in place.
* Merge 'merge_into_isocontent' into 'releng_isocontent' (former hardlinks) * Merge 'merge_into_isocontent' into 'releng_isocontent' (former hardlinks)
Extend it to use some more demanding directory tree. Extend it to use some more demanding directory tree.
MD5s should be checked. ACLs and xattr (if we are on Linux). MD5s should be checked. ACLs and xattr (if we are on Linux).
All file types as of stat(2) should be tested. All file types as of stat(2) should be tested.
* Also check trivial operations like --devices, etc. * Also check as many as possible trivial operations like:
xorriso --devices
* Split off common functionality in common ./lib/ so it can be re-used xorriso -indev file.iso -pvd_info
by all scripts. This might include cmdline option parsing, some
validation code like releng_isocontent:is_valid_iso9660
* We need to give a hint about how much storage space will be consumed.
* We could mark all own stderr messages by a prefix like "===". * We could mark all own stderr messages by a prefix like "===".

View File

@ -26,13 +26,22 @@ done
if [ ! "${1}" ]; then if [ ! "${1}" ]; then
cat << HLP cat << HLP
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
${SELF} runs executables from CWD starting
with releng_*, passing them its own options.
stdout/stderr output stored in:
${CLOG}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
self generated data are stored in ${GEN_DATA_DIR}.
required space for these data is about 300 megabytes.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
examples:
# run xorriso and keep the self generated data
$ ./${SELF} -x path/to/xorriso [-k1]
${SELF} runs executables from CWD starting with releng_*, passing them its own options. # clean up self generated data from previous run
stdout/stderr output stored in ${CLOG} $ ./${SELF} -c1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
${SELF} -x path/to/xorriso [-k1]
${SELF} -c1
HLP HLP
exit 31 exit 31
fi fi
@ -82,12 +91,14 @@ fi
printf "\n${SELF}: Removed my own log ${CLOG}.prev." printf "\n${SELF}: Removed my own log ${CLOG}.prev."
rm -f "${CLOG}".prev rm -f "${CLOG}".prev
fi fi
printf "\n"
else else
E2=`date '+%s'` E2=`date '+%s'`
let ES="${E2} - ${E1}" if [ ${E2} -eq ${E1} ]; then
printf " Total elapsed ${ES} sec." printf " Total elapsed 0 sec."
else
let ES="${E2} - ${E1}"
printf " Total elapsed ${ES} sec."
fi
##### #####
printf "\n${SELF}: Std(out|err) logged in ${CLOG}." printf "\n${SELF}: Std(out|err) logged in ${CLOG}."
printf "\n${SELF}: Trivial log file examination:" printf "\n${SELF}: Trivial log file examination:"
@ -126,6 +137,10 @@ fi
printf "diff -Naur ${CLOG}.prev ${CLOG} | less" printf "diff -Naur ${CLOG}.prev ${CLOG} | less"
fi fi
fi fi
#
printf "\n${SELF}: Leaving the following cruft in ${GEN_DATA_DIR}:\n"
ls -lth "${GEN_DATA_DIR}"
# Fin # Fin
exit 0 exit 0

View File

@ -5,6 +5,8 @@ set -e
# Include common bits # Include common bits
. inc/releng_getopts.inc . inc/releng_getopts.inc
printf "\n$0: FAIL: === TEPLATE === RENAME ME TO releng_<title>\n"
# Each releng_ test should decide whether or not it need # Each releng_ test should decide whether or not it need
# a xorriso binary to test, since some do compilations only. # a xorriso binary to test, since some do compilations only.
if [ ! -x $RELENG_XORRISO ]; then if [ ! -x $RELENG_XORRISO ]; then
@ -22,10 +24,5 @@ else
mkdir "${GEN_DATA_DIR}" mkdir "${GEN_DATA_DIR}"
fi fi
printf "\n$0: FAIL: === TEPLATE === RENAME ME TO releng_<title>\n"
exit 31
##################################################################### #####################################################################
print_help exit 1
exit 0