Browse Source

check for execution from releng/

master
George Danchev 11 years ago
parent
commit
e30bf90933
  1. 7
      releng/manual_devices
  2. 7
      releng/releng_cxx
  3. 7
      releng/releng_isocontent
  4. 7
      releng/releng_isojigdo
  5. 7
      releng/releng_printsize
  6. 8
      releng/run_all_releng
  7. 7
      releng/template_new_releng

7
releng/manual_devices

@ -5,8 +5,13 @@
# set -e
not_in_releng_exit() {
printf "\nPlease execute the tests from releng directory.\n\n"
exit 1
}
# Include common bits
. inc/releng_getopts.inc
. inc/releng_getopts.inc || not_in_releng_exit
# Each releng_ test should decide whether or not it needs
# a xorriso binary to test, since some do compilations only.

7
releng/releng_cxx

@ -5,7 +5,12 @@
set -e
. inc/releng_getopts.inc
not_in_releng_exit() {
printf "\nPlease execute the tests from releng directory.\n\n"
exit 1
}
. inc/releng_getopts.inc || not_in_releng_exit
# xorriso binary is not needed for that particular test

7
releng/releng_isocontent

@ -7,7 +7,12 @@
# Test the correct handling of hardlinks by xorriso options
# -update_r , -hardlinks perform_update , and -extract
. inc/releng_getopts.inc
not_in_releng_exit() {
printf "\nPlease execute the tests from releng directory.\n\n"
exit 1
}
. inc/releng_getopts.inc || not_in_releng_exit
if [ ! -x $RELENG_XORRISO ]; then
print_help

7
releng/releng_isojigdo

@ -6,7 +6,12 @@
set -e
. inc/releng_getopts.inc
not_in_releng_exit() {
printf "\nPlease execute the tests from releng directory.\n\n"
exit 1
}
. inc/releng_getopts.inc || not_in_releng_exit
if [ ! -x $RELENG_XORRISO ]; then
print_help

7
releng/releng_printsize

@ -5,8 +5,13 @@
set -e
not_in_releng_exit() {
printf "\nPlease execute the tests from releng directory.\n\n"
exit 1
}
# Include common bits
. inc/releng_getopts.inc
. inc/releng_getopts.inc || not_in_releng_exit
# Each releng_ test should decide whether or not it needs
# a xorriso binary to test, since some do compilations only.

8
releng/run_all_releng

@ -5,9 +5,17 @@
set -e
not_in_releng_exit() {
printf "\nPlease execute the tests from releng directory.\n\n"
exit 1
}
# It is not a good idea to include inc/releng_getopts.inc with the
# master script as it calls the subordinate scripts and they include
# this file too, and we want to avoid sharing variable with subshells
if [ ! -f inc/releng_getopts.inc ]; then
not_in_releng_exit
fi
SELF=$(basename "$0")
GEN_DATA_DIR=releng_generated_data

7
releng/template_new_releng

@ -3,10 +3,15 @@
# Copyright 2011 George Danchev <danchev@spnet.net>
# Licensed under GNU GPL version 2
not_in_releng_exit() {
printf "\nPlease execute the tests from releng directory.\n\n"
exit 1
}
set -e
# Include common bits
. inc/releng_getopts.inc
. inc/releng_getopts.inc || not_in_releng_exit
printf "\n$0: FAIL: === TEPLATE === RENAME ME TO releng_<title>\n"

Loading…
Cancel
Save