Debian Codegraph @

tests/tableopts.sh

raw symbols SCIP
1 #!/bin/shscip-shell filesystem . . `/bin/sh`.
2 set -eu
3 # IFS=$'\n\t'
4 IFS='
5 '' '
6
7 # This script is present to generate the automake _SOURCES variables
8 # for the tableopts_* tests. It also generates the linking rules for
9 # each test since automake isn't able to handle the pattern rules that
10 # would be natural to use. Output is written to standard output for
11 # inclusion in a Makefile.am, typically by redirecting the output and
12 # then an automake include directive.
13
14 TABLEOPTS_TESTS=""
15 tableopts_tables=""
16
17 for kind in opt ser ver ; do
18 for threading in nr r ; do
19 for opt in -Ca -Ce -Cf -CF -Cm -Cem -Cae -Caef -CaeF -Cam -Caem ; do
20 bare_opt=${opt#-}
21 # The filenames must work on case-insensitive filesystems.
22 bare_opt=`echoscip-shell system . . echo. ${bare_opt}| sedscip-shell system . . sed. 's/F$/_F/'`
23
24 testname=tableopts_${kind}_${threading}-${bare_opt}.${kind}
25 if [scip-shell system . . `[`. "${TABLEOPTS_TESTS}" = "" ] ;then
26 TABLEOPTS_TESTS=${testname}
27 if [scip-shell system . . `[`. "$kind" = "ser" ] || [scip-shell system . . `[`. "$kind" = "ver" ] ; then
28 tableopts_tables=${testname}.tables
29 fi
30 else
31 TABLEOPTS_TESTS="${TABLEOPTS_TESTS} ${testname}"
32 if [scip-shell system . . `[`. "$kind" = "ser" ] || [scip-shell system . . `[`. "$kind" = "ver" ] ; then
33 tableopts_tables="${tableopts_tables} ${testname}.tables"
34 fi
35 fi
36
37 catscip-shell system . . cat. << EOF
38 tableopts_${kind}_${threading}_${bare_opt}_${kind}_SOURCES = tableopts.l4
39
40 ${testname}\$(EXEEXT): tableopts_${kind}_${threading}-${bare_opt}.\$(OBJEXT)
41 \$(AM_V_CCLD)\$(LINK) -o \$@ \$<
42
43 EOF
44 done
45 done
46 done
47
48 echoscip-shell system . . echo. TABLEOPTS_TESTS = ${TABLEOPTS_TESTS}
49 echoscip-shell system . . echo.
50 echoscip-shell system . . echo. tableopts_tables = ${tableopts_tables}