File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -600,34 +600,6 @@ function run_master_restart_test() {
600600 return $ret
601601}
602602
603- # run_doc_test
604- # --------------------
605- # Checks whether `help.1` file with specific terms is included in default
606- # working directory in the container image.
607- run_doc_test () {
608- local tmpdir=$( mktemp -d)
609- local f
610- echo " Testing documentation in the container image"
611- # Extract the help files from the container
612- for f in help.1 ; do
613- docker run --rm ${IMAGE_NAME} /bin/bash -c " cat /${f} " > ${tmpdir} /$( basename ${f} )
614- # Check whether the files include some important information
615- for term in ' POSTGRESQL\\?_ADMIN\\?_PASSWORD' Volume 5432 ; do
616- if ! cat ${tmpdir} /$( basename ${f} ) | grep -E -q -e " ${term} " ; then
617- echo " ERROR: File /${f} does not include '${term} '."
618- return 1
619- fi
620- done
621- done
622- # Check whether the files use the correct format
623- if ! file ${tmpdir} /help.1 | grep -q roff ; then
624- echo " ERROR: /help.1 is not in troff or groff format"
625- return 1
626- fi
627- echo " Success!"
628- echo
629- }
630-
631603
632604# ###
633605# TESTING FUNCTIONS
You can’t perform that action at this time.
0 commit comments