[Avida-SVN] r1707 - in development/tests: . _asl_fail_001_type _asl_fail_001_type/config _asl_fail_002_variable_set _asl_fail_002_variable_set/config _asl_good_002_variable _asl_good_002_variable/config _asl_good_003_variable_set _asl_good_003_variable_set/config _asl_good_004_basic_math _asl_good_004_basic_math/config _asl_good_005_math_whitespace _asl_good_005_math_whitespace/config _asl_good_006_math_longer _asl_good_006_math_longer/config _asl_good_007_math_order_op _asl_good_007_math_order_op/config _asl_good_008_variable_types _asl_good_008_variable_types/config

brysonda at myxo.css.msu.edu brysonda at myxo.css.msu.edu
Thu Jun 21 11:58:45 PDT 2007


Author: brysonda
Date: 2007-06-21 14:58:44 -0400 (Thu, 21 Jun 2007)
New Revision: 1707

Added:
   development/tests/_asl_fail_001_type/
   development/tests/_asl_fail_001_type/config/
   development/tests/_asl_fail_001_type/config/main.asl
   development/tests/_asl_fail_001_type/expected/
   development/tests/_asl_fail_001_type/test_list
   development/tests/_asl_fail_002_variable_set/
   development/tests/_asl_fail_002_variable_set/config/
   development/tests/_asl_fail_002_variable_set/config/main.asl
   development/tests/_asl_fail_002_variable_set/expected/
   development/tests/_asl_fail_002_variable_set/test_list
   development/tests/_asl_good_002_variable/
   development/tests/_asl_good_002_variable/config/
   development/tests/_asl_good_002_variable/config/main.asl
   development/tests/_asl_good_002_variable/expected/
   development/tests/_asl_good_002_variable/test_list
   development/tests/_asl_good_003_variable_set/
   development/tests/_asl_good_003_variable_set/config/
   development/tests/_asl_good_003_variable_set/config/main.asl
   development/tests/_asl_good_003_variable_set/expected/
   development/tests/_asl_good_003_variable_set/test_list
   development/tests/_asl_good_004_basic_math/
   development/tests/_asl_good_004_basic_math/config/
   development/tests/_asl_good_004_basic_math/config/main.asl
   development/tests/_asl_good_004_basic_math/expected/
   development/tests/_asl_good_004_basic_math/test_list
   development/tests/_asl_good_005_math_whitespace/
   development/tests/_asl_good_005_math_whitespace/config/
   development/tests/_asl_good_005_math_whitespace/config/main.asl
   development/tests/_asl_good_005_math_whitespace/expected/
   development/tests/_asl_good_005_math_whitespace/test_list
   development/tests/_asl_good_006_math_longer/
   development/tests/_asl_good_006_math_longer/config/
   development/tests/_asl_good_006_math_longer/config/main.asl
   development/tests/_asl_good_006_math_longer/expected/
   development/tests/_asl_good_006_math_longer/test_list
   development/tests/_asl_good_007_math_order_op/
   development/tests/_asl_good_007_math_order_op/config/
   development/tests/_asl_good_007_math_order_op/config/main.asl
   development/tests/_asl_good_007_math_order_op/expected/
   development/tests/_asl_good_007_math_order_op/test_list
   development/tests/_asl_good_008_variable_types/
   development/tests/_asl_good_008_variable_types/config/
   development/tests/_asl_good_008_variable_types/config/main.asl
   development/tests/_asl_good_008_variable_types/expected/
   development/tests/_asl_good_008_variable_types/test_list
Log:
Add some basic ASL tests.

Added: development/tests/_asl_fail_001_type/config/main.asl
===================================================================
--- development/tests/_asl_fail_001_type/config/main.asl	                        (rev 0)
+++ development/tests/_asl_fail_001_type/config/main.asl	2007-06-21 18:58:44 UTC (rev 1707)
@@ -0,0 +1,3 @@
+# A type with no variable name
+int ;
+

Added: development/tests/_asl_fail_001_type/test_list
===================================================================
--- development/tests/_asl_fail_001_type/test_list	                        (rev 0)
+++ development/tests/_asl_fail_001_type/test_list	2007-06-21 18:58:44 UTC (rev 1707)
@@ -0,0 +1,32 @@
+;--- Begin Test Configuration File (test_list) ---
+[main]
+; Command line arguments to pass to the application
+args = 
+app = %(builddir)s/work/avida-s
+nonzeroexit = require
+createdby = David Bryson ; Who created the test
+email = brysonda at egr.msu.edu ; Email address for the test's creator
+
+[consistency]
+enabled = yes            ; Is this test a consistency test?
+long = no                ; Is this test a long test?
+
+[performance]
+enabled = no             ; Is this test a performance test?
+long = no                ; Is this test a long test?
+
+; The following variables can be used in constructing setting values by calling
+; them with %(variable_name)s.  For example see 'app' above.
+;
+; builddir 
+; cpus
+; default_app 
+; mode 
+; perf_repeat 
+; perf_user_margin 
+; perf_wall_margin 
+; svn 
+; svnmetadir 
+; svnversion 
+; testdir 
+;--- End Test Configuration File ---

Added: development/tests/_asl_fail_002_variable_set/config/main.asl
===================================================================
--- development/tests/_asl_fail_002_variable_set/config/main.asl	                        (rev 0)
+++ development/tests/_asl_fail_002_variable_set/config/main.asl	2007-06-21 18:58:44 UTC (rev 1707)
@@ -0,0 +1,3 @@
+# A type with no variable name
+int x = ;
+

Added: development/tests/_asl_fail_002_variable_set/test_list
===================================================================
--- development/tests/_asl_fail_002_variable_set/test_list	                        (rev 0)
+++ development/tests/_asl_fail_002_variable_set/test_list	2007-06-21 18:58:44 UTC (rev 1707)
@@ -0,0 +1,32 @@
+;--- Begin Test Configuration File (test_list) ---
+[main]
+; Command line arguments to pass to the application
+args = 
+app = %(builddir)s/work/avida-s
+nonzeroexit = require
+createdby = David Bryson ; Who created the test
+email = brysonda at egr.msu.edu ; Email address for the test's creator
+
+[consistency]
+enabled = yes            ; Is this test a consistency test?
+long = no                ; Is this test a long test?
+
+[performance]
+enabled = no             ; Is this test a performance test?
+long = no                ; Is this test a long test?
+
+; The following variables can be used in constructing setting values by calling
+; them with %(variable_name)s.  For example see 'app' above.
+;
+; builddir 
+; cpus
+; default_app 
+; mode 
+; perf_repeat 
+; perf_user_margin 
+; perf_wall_margin 
+; svn 
+; svnmetadir 
+; svnversion 
+; testdir 
+;--- End Test Configuration File ---

Added: development/tests/_asl_good_002_variable/config/main.asl
===================================================================
--- development/tests/_asl_good_002_variable/config/main.asl	                        (rev 0)
+++ development/tests/_asl_good_002_variable/config/main.asl	2007-06-21 18:58:44 UTC (rev 1707)
@@ -0,0 +1,3 @@
+# define a variable
+int x;
+

Added: development/tests/_asl_good_002_variable/test_list
===================================================================
--- development/tests/_asl_good_002_variable/test_list	                        (rev 0)
+++ development/tests/_asl_good_002_variable/test_list	2007-06-21 18:58:44 UTC (rev 1707)
@@ -0,0 +1,36 @@
+;--- Begin Test Configuration File (test_list) ---
+[main]
+; Command line arguments to pass to the application
+args = 
+app = %(builddir)s/work/avida-s
+nonzeroexit = disallow   ; Exit code handling (disallow, allow, or require)
+                         ;  disallow - treat non-zero exit codes as failures
+                         ;  allow - all exit codes are acceptable
+                         ;  require - treat zero exit codes as failures, useful
+                         ;            for creating tests for app error checking
+createdby = David Bryson ; Who created the test
+email = brysonda at egr.msu.edu ; Email address for the test's creator
+
+[consistency]
+enabled = yes            ; Is this test a consistency test?
+long = no                ; Is this test a long test?
+
+[performance]
+enabled = no             ; Is this test a performance test?
+long = no                ; Is this test a long test?
+
+; The following variables can be used in constructing setting values by calling
+; them with %(variable_name)s.  For example see 'app' above.
+;
+; builddir 
+; cpus
+; default_app 
+; mode 
+; perf_repeat 
+; perf_user_margin 
+; perf_wall_margin 
+; svn 
+; svnmetadir 
+; svnversion 
+; testdir 
+;--- End Test Configuration File ---

Added: development/tests/_asl_good_003_variable_set/config/main.asl
===================================================================
--- development/tests/_asl_good_003_variable_set/config/main.asl	                        (rev 0)
+++ development/tests/_asl_good_003_variable_set/config/main.asl	2007-06-21 18:58:44 UTC (rev 1707)
@@ -0,0 +1,2 @@
+# define a variable, then sit it
+float y = 0.1;

Added: development/tests/_asl_good_003_variable_set/test_list
===================================================================
--- development/tests/_asl_good_003_variable_set/test_list	                        (rev 0)
+++ development/tests/_asl_good_003_variable_set/test_list	2007-06-21 18:58:44 UTC (rev 1707)
@@ -0,0 +1,36 @@
+;--- Begin Test Configuration File (test_list) ---
+[main]
+; Command line arguments to pass to the application
+args = 
+app = %(builddir)s/work/avida-s
+nonzeroexit = disallow   ; Exit code handling (disallow, allow, or require)
+                         ;  disallow - treat non-zero exit codes as failures
+                         ;  allow - all exit codes are acceptable
+                         ;  require - treat zero exit codes as failures, useful
+                         ;            for creating tests for app error checking
+createdby = David Bryson ; Who created the test
+email = brysonda at egr.msu.edu ; Email address for the test's creator
+
+[consistency]
+enabled = yes            ; Is this test a consistency test?
+long = no                ; Is this test a long test?
+
+[performance]
+enabled = no             ; Is this test a performance test?
+long = no                ; Is this test a long test?
+
+; The following variables can be used in constructing setting values by calling
+; them with %(variable_name)s.  For example see 'app' above.
+;
+; builddir 
+; cpus
+; default_app 
+; mode 
+; perf_repeat 
+; perf_user_margin 
+; perf_wall_margin 
+; svn 
+; svnmetadir 
+; svnversion 
+; testdir 
+;--- End Test Configuration File ---

Added: development/tests/_asl_good_004_basic_math/config/main.asl
===================================================================
--- development/tests/_asl_good_004_basic_math/config/main.asl	                        (rev 0)
+++ development/tests/_asl_good_004_basic_math/config/main.asl	2007-06-21 18:58:44 UTC (rev 1707)
@@ -0,0 +1,3 @@
+# define a variable, set with some basic math
+int x = 5 + 2;
+

Added: development/tests/_asl_good_004_basic_math/test_list
===================================================================
--- development/tests/_asl_good_004_basic_math/test_list	                        (rev 0)
+++ development/tests/_asl_good_004_basic_math/test_list	2007-06-21 18:58:44 UTC (rev 1707)
@@ -0,0 +1,36 @@
+;--- Begin Test Configuration File (test_list) ---
+[main]
+; Command line arguments to pass to the application
+args = 
+app = %(builddir)s/work/avida-s
+nonzeroexit = disallow   ; Exit code handling (disallow, allow, or require)
+                         ;  disallow - treat non-zero exit codes as failures
+                         ;  allow - all exit codes are acceptable
+                         ;  require - treat zero exit codes as failures, useful
+                         ;            for creating tests for app error checking
+createdby = David Bryson ; Who created the test
+email = brysonda at egr.msu.edu ; Email address for the test's creator
+
+[consistency]
+enabled = yes            ; Is this test a consistency test?
+long = no                ; Is this test a long test?
+
+[performance]
+enabled = no             ; Is this test a performance test?
+long = no                ; Is this test a long test?
+
+; The following variables can be used in constructing setting values by calling
+; them with %(variable_name)s.  For example see 'app' above.
+;
+; builddir 
+; cpus
+; default_app 
+; mode 
+; perf_repeat 
+; perf_user_margin 
+; perf_wall_margin 
+; svn 
+; svnmetadir 
+; svnversion 
+; testdir 
+;--- End Test Configuration File ---

Added: development/tests/_asl_good_005_math_whitespace/config/main.asl
===================================================================
--- development/tests/_asl_good_005_math_whitespace/config/main.asl	                        (rev 0)
+++ development/tests/_asl_good_005_math_whitespace/config/main.asl	2007-06-21 18:58:44 UTC (rev 1707)
@@ -0,0 +1,5 @@
+# test arbitrary whitespace
+
+
+int abc    =    54	+   		 37;
+

Added: development/tests/_asl_good_005_math_whitespace/test_list
===================================================================
--- development/tests/_asl_good_005_math_whitespace/test_list	                        (rev 0)
+++ development/tests/_asl_good_005_math_whitespace/test_list	2007-06-21 18:58:44 UTC (rev 1707)
@@ -0,0 +1,36 @@
+;--- Begin Test Configuration File (test_list) ---
+[main]
+; Command line arguments to pass to the application
+args = 
+app = %(builddir)s/work/avida-s
+nonzeroexit = disallow   ; Exit code handling (disallow, allow, or require)
+                         ;  disallow - treat non-zero exit codes as failures
+                         ;  allow - all exit codes are acceptable
+                         ;  require - treat zero exit codes as failures, useful
+                         ;            for creating tests for app error checking
+createdby = David Bryson ; Who created the test
+email = brysonda at egr.msu.edu ; Email address for the test's creator
+
+[consistency]
+enabled = yes            ; Is this test a consistency test?
+long = no                ; Is this test a long test?
+
+[performance]
+enabled = no             ; Is this test a performance test?
+long = no                ; Is this test a long test?
+
+; The following variables can be used in constructing setting values by calling
+; them with %(variable_name)s.  For example see 'app' above.
+;
+; builddir 
+; cpus
+; default_app 
+; mode 
+; perf_repeat 
+; perf_user_margin 
+; perf_wall_margin 
+; svn 
+; svnmetadir 
+; svnversion 
+; testdir 
+;--- End Test Configuration File ---

Added: development/tests/_asl_good_006_math_longer/config/main.asl
===================================================================
--- development/tests/_asl_good_006_math_longer/config/main.asl	                        (rev 0)
+++ development/tests/_asl_good_006_math_longer/config/main.asl	2007-06-21 18:58:44 UTC (rev 1707)
@@ -0,0 +1,4 @@
+# A longer math statement
+int foo = 3 * 3 * 3 * 3 * 3 + 5 / 6 / 2 - 4 - 12;
+
+

Added: development/tests/_asl_good_006_math_longer/test_list
===================================================================
--- development/tests/_asl_good_006_math_longer/test_list	                        (rev 0)
+++ development/tests/_asl_good_006_math_longer/test_list	2007-06-21 18:58:44 UTC (rev 1707)
@@ -0,0 +1,36 @@
+;--- Begin Test Configuration File (test_list) ---
+[main]
+; Command line arguments to pass to the application
+args = 
+app = %(builddir)s/work/avida-s
+nonzeroexit = disallow   ; Exit code handling (disallow, allow, or require)
+                         ;  disallow - treat non-zero exit codes as failures
+                         ;  allow - all exit codes are acceptable
+                         ;  require - treat zero exit codes as failures, useful
+                         ;            for creating tests for app error checking
+createdby = David Bryson ; Who created the test
+email = brysonda at egr.msu.edu ; Email address for the test's creator
+
+[consistency]
+enabled = yes            ; Is this test a consistency test?
+long = no                ; Is this test a long test?
+
+[performance]
+enabled = no             ; Is this test a performance test?
+long = no                ; Is this test a long test?
+
+; The following variables can be used in constructing setting values by calling
+; them with %(variable_name)s.  For example see 'app' above.
+;
+; builddir 
+; cpus
+; default_app 
+; mode 
+; perf_repeat 
+; perf_user_margin 
+; perf_wall_margin 
+; svn 
+; svnmetadir 
+; svnversion 
+; testdir 
+;--- End Test Configuration File ---

Added: development/tests/_asl_good_007_math_order_op/config/main.asl
===================================================================
--- development/tests/_asl_good_007_math_order_op/config/main.asl	                        (rev 0)
+++ development/tests/_asl_good_007_math_order_op/config/main.asl	2007-06-21 18:58:44 UTC (rev 1707)
@@ -0,0 +1,3 @@
+# Math order of operations
+int bar = 5 * (4 - 2) + 6 / 3;
+

Added: development/tests/_asl_good_007_math_order_op/test_list
===================================================================
--- development/tests/_asl_good_007_math_order_op/test_list	                        (rev 0)
+++ development/tests/_asl_good_007_math_order_op/test_list	2007-06-21 18:58:44 UTC (rev 1707)
@@ -0,0 +1,36 @@
+;--- Begin Test Configuration File (test_list) ---
+[main]
+; Command line arguments to pass to the application
+args = 
+app = %(builddir)s/work/avida-s
+nonzeroexit = disallow   ; Exit code handling (disallow, allow, or require)
+                         ;  disallow - treat non-zero exit codes as failures
+                         ;  allow - all exit codes are acceptable
+                         ;  require - treat zero exit codes as failures, useful
+                         ;            for creating tests for app error checking
+createdby = David Bryson ; Who created the test
+email = brysonda at egr.msu.edu ; Email address for the test's creator
+
+[consistency]
+enabled = yes            ; Is this test a consistency test?
+long = no                ; Is this test a long test?
+
+[performance]
+enabled = no             ; Is this test a performance test?
+long = no                ; Is this test a long test?
+
+; The following variables can be used in constructing setting values by calling
+; them with %(variable_name)s.  For example see 'app' above.
+;
+; builddir 
+; cpus
+; default_app 
+; mode 
+; perf_repeat 
+; perf_user_margin 
+; perf_wall_margin 
+; svn 
+; svnmetadir 
+; svnversion 
+; testdir 
+;--- End Test Configuration File ---

Added: development/tests/_asl_good_008_variable_types/config/main.asl
===================================================================
--- development/tests/_asl_good_008_variable_types/config/main.asl	                        (rev 0)
+++ development/tests/_asl_good_008_variable_types/config/main.asl	2007-06-21 18:58:44 UTC (rev 1707)
@@ -0,0 +1,6 @@
+# Full gamut of built-in data types
+bool u;
+char w;
+int x;
+float y;
+

Added: development/tests/_asl_good_008_variable_types/test_list
===================================================================
--- development/tests/_asl_good_008_variable_types/test_list	                        (rev 0)
+++ development/tests/_asl_good_008_variable_types/test_list	2007-06-21 18:58:44 UTC (rev 1707)
@@ -0,0 +1,36 @@
+;--- Begin Test Configuration File (test_list) ---
+[main]
+; Command line arguments to pass to the application
+args = 
+app = %(builddir)s/work/avida-s
+nonzeroexit = disallow   ; Exit code handling (disallow, allow, or require)
+                         ;  disallow - treat non-zero exit codes as failures
+                         ;  allow - all exit codes are acceptable
+                         ;  require - treat zero exit codes as failures, useful
+                         ;            for creating tests for app error checking
+createdby = David Bryson ; Who created the test
+email = brysonda at egr.msu.edu ; Email address for the test's creator
+
+[consistency]
+enabled = yes            ; Is this test a consistency test?
+long = no                ; Is this test a long test?
+
+[performance]
+enabled = no             ; Is this test a performance test?
+long = no                ; Is this test a long test?
+
+; The following variables can be used in constructing setting values by calling
+; them with %(variable_name)s.  For example see 'app' above.
+;
+; builddir 
+; cpus
+; default_app 
+; mode 
+; perf_repeat 
+; perf_user_margin 
+; perf_wall_margin 
+; svn 
+; svnmetadir 
+; svnversion 
+; testdir 
+;--- End Test Configuration File ---




More information about the Avida-cvs mailing list