comparison test/build-bc-overload-tests.sh @ 20343:bacaec9b5535

eliminate recursive make invocation in test directory tree * test/module.mk: New file created from test/Makefile.am, test/bug-35448/module.mk, test/bug-36025/module.mk, test/bug-38236/module.mk, test/bug-38691/module.mk, test/bug-44940/module.mk, test/class-concat/module.mk, test/classdef/module.mk, test/classes/module.mk, test/ctor-vs-method/module.mk, test/fcn-handle-derived-resolution/module.mk, and test/nest/module.mk. * test/Makefile.am, test/bug-35448/module.mk, test/bug-36025/module.mk, test/bug-38236/module.mk, test/bug-38691/module.mk, test/bug-44940/module.mk, test/class-concat/module.mk, test/classdef/module.mk, test/classes/module.mk, test/ctor-vs-method/module.mk, test/fcn-handle-derived-resolution/module.mk, test/nest/module.mk: Delete. * configure.ac (AC_OUTPUT): Don't generate test/Makefile. * Makefile.am: Include test/module.mk. * build-aux/common.mk, test/build-bc-overload-tests.sh: Adapt to changes in Makefile structure.
author John W. Eaton <jwe@octave.org>
date Tue, 07 Jul 2015 10:40:38 -0400
parents 4f911b4e012b
children
comparison
equal deleted inserted replaced
20342:c3c1fb44f9b5 20343:bacaec9b5535
34 struct 34 struct
35 cell 35 cell
36 function_handle 36 function_handle
37 " 37 "
38 38
39 if [ $# -eq 1 ]; then 39 if [ $# -eq 2 ]; then
40 output_dir="$1"
41 shift
40 case "$1" in 42 case "$1" in
41 --list-files) 43 --list-files)
42 echo tbcover.m 44 echo $output_dir/tbcover.m
43 echo bc-overloads.tst 45 echo $output_dir/bc-overloads.tst
44 for class in $CLASSES; do 46 for class in $CLASSES; do
45 echo @$class/tbcover.m 47 echo $output_dir/@$class/tbcover.m
46 done 48 done
47 exit 49 exit
48 ;; 50 ;;
49 --list-dirs) 51 --list-dirs)
50 for class in $CLASSES; do 52 for class in $CLASSES; do
51 echo @$class 53 echo $output_dir/@$class
52 done 54 done
53 exit 55 exit
54 ;; 56 ;;
55 --list-classes) 57 --list-classes)
56 echo $CLASSES 58 echo $CLASSES
57 exit 59 exit
58 ;; 60 ;;
59 *) 61 *)
60 echo "usage: build-bc-overload-tests.sh option" 1>&2 62 expected_results_file="$1"
61 exit 1
62 ;; 63 ;;
63 esac 64 esac
64 elif [ $# -eq 2 ]; then
65 output_dir="$1"
66 expected_results_file="$2"
67 else 65 else
68 echo "usage: build-bc-overload-tests.sh expected-results-file" 1>&2 66 echo "usage: build-bc-overload-tests.sh output_dir option" 1>&2
69 exit 1 67 exit 1
70 fi 68 fi
71 69
72 for class in $CLASSES; do 70 for class in $CLASSES; do
73 DIR="$output_dir/@$class" 71 DIR="$output_dir/@$class"