"Fossies" - the Fresh Open Source Software Archive

Member "gnuastro-0.8/tests/mkprof/mosaic3.sh" (15 Aug 2018, 1683 Bytes) of package /linux/privat/gnuastro-0.8.tar.lz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "mosaic3.sh": 0.7_vs_0.8.

    1 # Create a mock image from cat2.txt:
    2 #
    3 #  - It doesn't have any random profiles, only the large profile from
    4 #    cat1.txt. The central position is set to be on the same real
    5 #    place as in cat1.txt
    6 #
    7 #
    8 # See the Tests subsection of the manual for a complete explanation
    9 # (in the Installing gnuastro section).
   10 #
   11 # Original author:
   12 #     Mohammad Akhlaghi <mohammad@akhlaghi.org>
   13 # Contributing author(s):
   14 #
   15 # Copying and distribution of this file, with or without modification,
   16 # are permitted in any medium without royalty provided the copyright
   17 # notice and this notice are preserved.  This file is offered as-is,
   18 # without any warranty.
   19 
   20 
   21 
   22 
   23 
   24 # Preliminaries
   25 # =============
   26 #
   27 # Set the variables (The executable is in the build tree). Do the
   28 # basic checks to see if the executable is made or if the defaults
   29 # file exists (basicchecks.sh is in the source tree).
   30 prog=mkprof
   31 execname=../bin/$prog/ast$prog
   32 cat=$topsrc/tests/$prog/mkprofcat3.txt
   33 
   34 
   35 
   36 
   37 
   38 # Skip?
   39 # =====
   40 #
   41 # If the dependencies of the test don't exist, then skip it. There are two
   42 # types of dependencies:
   43 #
   44 #   - The executable was not made (for example due to a configure option)
   45 #
   46 #   - Catalog doesn't exist (problem in tarball release).
   47 if [ ! -f $execname ]; then echo "$execname not created."; exit 77; fi
   48 if [ ! -f $cat      ]; then echo "$cat does not exist.";   exit 77; fi
   49 
   50 
   51 
   52 
   53 # Actual test script
   54 # ==================
   55 #
   56 # `check_with_program' can be something like `Valgrind' or an empty
   57 # string. Such programs will execute the command if present and help in
   58 # debugging when the developer doesn't have access to the user's system.
   59 $check_with_program $execname $cat --mergedsize=100,100 --crpix=1,-99