diff --git a/test/core_to_app.xml.in b/test/core_to_app.xml.in
new file mode 100644
index 0000000000..ff02dd5323
--- /dev/null
+++ b/test/core_to_app.xml.in
@@ -0,0 +1,6 @@
+0
+0
+0
+0
+1
+0
diff --git a/test/init.inc b/test/init.inc
index 4a68749410..9e0f580fe2 100644
--- a/test/init.inc
+++ b/test/init.inc
@@ -179,5 +179,21 @@ function check_results_done() {
}
}
+function compare_files($out, $correct) {
+ PassThru("diff $out $correct", $retval);
+ if ($retval) {
+ echo "File mismatch: $out $correct\n";
+ } else {
+ echo "Files match: $out $correct\n";
+ }
+}
+
+function initialize_api() {
+ PassThru("cp core_to_app.xml.in core_to_app.xml");
+}
+
+function run_api_test() {
+ PassThru("../api/api_test");
+}
?>
diff --git a/test/prefs1.xml b/test/prefs1.xml
index f0be5df539..b85e995a71 100644
--- a/test/prefs1.xml
+++ b/test/prefs1.xml
@@ -4,7 +4,7 @@
1
1
- http://localhost/
+ http://localhost/boinc-cgi/index.html
3f7b90793a0175ad0bda68684e8bd136
diff --git a/test/ta_correct_atc b/test/ta_correct_atc
new file mode 100644
index 0000000000..d2d2b125f6
--- /dev/null
+++ b/test/ta_correct_atc
@@ -0,0 +1,2 @@
+0.000000
+5.000000
diff --git a/test/ta_correct_f b/test/ta_correct_f
new file mode 100644
index 0000000000..f34ce8fe5f
--- /dev/null
+++ b/test/ta_correct_f
@@ -0,0 +1,7 @@
+blah 17 34.500000
+foo
+checkpoint
+checkpoint
+checkpoint
+checkpoint
+checkpoint
diff --git a/test/test_api.php b/test/test_api.php
new file mode 100644
index 0000000000..4d1dd278fe
--- /dev/null
+++ b/test/test_api.php
@@ -0,0 +1,10 @@
+#! /usr/local/bin/php
+
+