Moving the old code aside into the archive as i begin a new
[glcas.git] / unittests / datastores.php
diff --git a/unittests/datastores.php b/unittests/datastores.php
deleted file mode 100644 (file)
index f5313c4..0000000
+++ /dev/null
@@ -1,62 +0,0 @@
-<?php
-
-require_once("../lib/lib.php");
-
-echo "create 3 datastores\n";
-ds_createDS("name1", "/tmp");
-ds_createDS("name2", "/tmp");
-ds_createDS("name3", "/tmp");
-
-$tl = ds_listDS();
-
-print_r($tl);
-
-echo "try to create them again\n";
-ds_createDS("name1", "/tmp");
-ds_createDS("name2", "/tmp");
-ds_createDS("name3", "/tmp");
-
-$tl = ds_listDS();
-
-print_r($tl);
-
-echo "Delete 2 of them\n";
-ds_deleteDS("name1");
-ds_deleteDS("name2");
-
-$tl = ds_listDS();
-
-print_r($tl);
-
-echo "delete the last one\n";
-ds_deleteDS("name3");
-
-$tl = ds_listDS();
-
-print_r($tl);
-
-echo "now create a new ds\n";
-ds_createDS("name1", "/tmp");
-
-$myfname = "/asdf/asdf/asdf/asdf";
-$mytag = "mytag";
-
-echo "now createa a file inside our ds\n";
-//ds_fileds($ds_name, $file_name, $file_tag)
-$lk = ds_fileds("name1", $myfname, $mytag);
-echo "file created as name: $lk\n";
-
-echo "get file list:\n";
-$lk = ds_getFileList("name1", $mytag);
-print_r($lk);
-
-echo "delete the file\n";
-ds_deleteFile("name1", $myfname, $mytag);
-
-echo "get file list:\n";
-$lk = ds_getFileList("name1", $mytag);
-print_r($lk);
-
-echo "delete the last ds\n";
-ds_deleteDS("name1");
-?>
\ No newline at end of file