Browse Source

Add and fix test cases

Andrew Young 8 years ago
parent
commit
0be446e24a
2 changed files with 1215 additions and 255 deletions
  1. 11 5
      tests/Makefile.am
  2. 1204 250
      tests/test.org

+ 11 - 5
tests/Makefile.am

@@ -1,5 +1,11 @@
 ## Process this file with automake to produce Makefile.in
-TESTS = check_org-merge-driver check_merge_rules.sh
+test_org_tests = heading_tests.sh heading_movement_tests.sh \
+	text_tests.sh property_tests.sh
+
+TESTS = check_org-merge-driver $(test_org_tests)
+
+#test_suite_runner.sh 
+#test_org_tests =  
 
 ## Check Unit Tests
 check_PROGRAMS = check_org-merge-driver
@@ -14,11 +20,11 @@ check_org_merge_driver_LDADD = @CHECK_LIBS@ $(top_srcdir)/gnulib/lib/libgnu.a
 ## Merge Rule Tests
 #check_org-merge-driver
 TEST_EXTENSIONS = .sh
-SH_LOG_DRIVER = env AM_TAP_AWK='$(AWK)' $(SHELL) \
-                       $(top_srcdir)/config/tap-driver.sh
+SH_LOG_DRIVER = env AM_TAP_AWK='$(AWK)' bash \
+                      $(top_srcdir)/config/tap-driver.sh
 
 # retangle the test files if the tests are updated
-check_merge_rules.sh : test.org
+retangle : test.org
 	echo "Must re-tangle files"
 	emacs --batch --file test.org --eval "(org-babel-tangle)"
-	chmod 700 check_merge_rules.sh # make the generated test script executable
+	chmod 700 test_suite_runner.sh # make the generated test script executable

File diff suppressed because it is too large
+ 1204 - 250
tests/test.org