annotate test/classes/@Gork/get.m @ 13192:968e89b45bbf

move tests for classes into subdirectories * classes/test_classes.m: Rename from test_classes.m. * classes/module.mk: New file with contents from @Blork/module.mk, @Dork/module.mk, @Pork/module.mk, @Snork/module.mk, @Cork/module.mk, @Gork/module.mk, @Sneetch/module.mk, and @Spork/module.mk. (classes_FCN_FILES): Include test_classes.m in the list. * @Blork/module.mk, @Dork/module.mk, @Pork/module.mk, @Snork/module.mk, @Cork/module.mk, @Gork/module.mk, @Sneetch/module.mk, @Spork/module.mk: Delete. * ctor-vs-method/test_ctor_vs_method.m: Rename from test_ctor_vs_method.m. * ctor-vs-method/module.mk (ctor_vs_method_FCN_FILES): Include test_ctor_vs_method.m in the list. * test/Makefile.am (FCN_FILES): Remove test_classes.m and test_ctor_vs_method.m from the list. Don't include @Blork/module.mk, @Dork/module.mk, @Pork/module.mk, @Snork/module.mk, @Cork/module.mk, @Gork/module.mk, @Sneetch/module.mk, @Spork/module.mk. Do include classes/module.mk and ctor-vs-method/module.mk. * fntests.m (run_test_dir): Also skip private directories and directories with names that begin with "@". Work recursively. Change to test directory when running tests.
author John W. Eaton <jwe@octave.org>
date Thu, 22 Sep 2011 16:44:54 -0400
parents test/@Gork/get.m@f9ab19428cd8
children b1283d4c06c2
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
9381
f9ab19428cd8 * run-octave.in: Exclude @-files from path. Remove CVS exclusions.
Robert T. Short <octave@phaselockedsystems.com>
parents:
diff changeset
1 function [ v ] = get( s, propName )
f9ab19428cd8 * run-octave.in: Exclude @-files from path. Remove CVS exclusions.
Robert T. Short <octave@phaselockedsystems.com>
parents:
diff changeset
2
f9ab19428cd8 * run-octave.in: Exclude @-files from path. Remove CVS exclusions.
Robert T. Short <octave@phaselockedsystems.com>
parents:
diff changeset
3 switch propName
f9ab19428cd8 * run-octave.in: Exclude @-files from path. Remove CVS exclusions.
Robert T. Short <octave@phaselockedsystems.com>
parents:
diff changeset
4 case 'cork'
f9ab19428cd8 * run-octave.in: Exclude @-files from path. Remove CVS exclusions.
Robert T. Short <octave@phaselockedsystems.com>
parents:
diff changeset
5 v = s.Cork;
f9ab19428cd8 * run-octave.in: Exclude @-files from path. Remove CVS exclusions.
Robert T. Short <octave@phaselockedsystems.com>
parents:
diff changeset
6 case 'gark'
f9ab19428cd8 * run-octave.in: Exclude @-files from path. Remove CVS exclusions.
Robert T. Short <octave@phaselockedsystems.com>
parents:
diff changeset
7 v = s.gark;
f9ab19428cd8 * run-octave.in: Exclude @-files from path. Remove CVS exclusions.
Robert T. Short <octave@phaselockedsystems.com>
parents:
diff changeset
8 otherwise
f9ab19428cd8 * run-octave.in: Exclude @-files from path. Remove CVS exclusions.
Robert T. Short <octave@phaselockedsystems.com>
parents:
diff changeset
9 % Note that get/set for multiple parents is hard. We only do one
f9ab19428cd8 * run-octave.in: Exclude @-files from path. Remove CVS exclusions.
Robert T. Short <octave@phaselockedsystems.com>
parents:
diff changeset
10 % branch of the parent tree just to test this stuff out.
f9ab19428cd8 * run-octave.in: Exclude @-files from path. Remove CVS exclusions.
Robert T. Short <octave@phaselockedsystems.com>
parents:
diff changeset
11 v = get(s.Dork,propName);
f9ab19428cd8 * run-octave.in: Exclude @-files from path. Remove CVS exclusions.
Robert T. Short <octave@phaselockedsystems.com>
parents:
diff changeset
12 end
f9ab19428cd8 * run-octave.in: Exclude @-files from path. Remove CVS exclusions.
Robert T. Short <octave@phaselockedsystems.com>
parents:
diff changeset
13
f9ab19428cd8 * run-octave.in: Exclude @-files from path. Remove CVS exclusions.
Robert T. Short <octave@phaselockedsystems.com>
parents:
diff changeset
14 end