Changeset: 30939eacb0bb for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=30939eacb0bb
Removed Files:
        sql/backends/monet5/iot/Tests/All
        sql/backends/monet5/iot/Tests/TestingRecipe
        sql/backends/monet5/iot/Tests/genbasket.c
        sql/backends/monet5/iot/Tests/iot00.sql
        sql/backends/monet5/iot/Tests/iot05.sql
        sql/backends/monet5/iot/Tests/iot10.sql
        sql/backends/monet5/iot/Tests/iot15.sql
        sql/backends/monet5/iot/Tests/iot99.sql
        sql/backends/monet5/iot/Tests/petrinet00.mal
Branch: default
Log Message:

Backing out changeset d4ae7aed539c: it belongs on branch iot.


diffs (203 lines):

diff --git a/sql/backends/monet5/iot/Tests/All 
b/sql/backends/monet5/iot/Tests/All
deleted file mode 100644
--- a/sql/backends/monet5/iot/Tests/All
+++ /dev/null
@@ -1,4 +0,0 @@
-iothings00.sql
-iothings05.sql
-iothings99.sql
-petrinet00.mal
diff --git a/sql/backends/monet5/iot/Tests/TestingRecipe 
b/sql/backends/monet5/iot/Tests/TestingRecipe
deleted file mode 100644
--- a/sql/backends/monet5/iot/Tests/TestingRecipe
+++ /dev/null
@@ -1,17 +0,0 @@
-In most cases we have to test Datacell using manual
-interactions.
-
-The key debugging operations are datacell.baskets()
-and datacell.queries();
-Furthermore some
-The scenarios contain some hints to test the datacell.
-
-A short checklist on functionality tests:
-- test datacell.dump() on non-initialized datacell
-- test if the actuator refus to contact non-started datacell
-- test pause/resume of emitter using scenario00
-- test pause/resume of query using scenarion00
-- test pause/resume of receptor
-
-- test emitter in UDP protocol (easiest)
-- test emitter in TCP protocol, actuator start first!
diff --git a/sql/backends/monet5/iot/Tests/genbasket.c 
b/sql/backends/monet5/iot/Tests/genbasket.c
deleted file mode 100644
--- a/sql/backends/monet5/iot/Tests/genbasket.c
+++ /dev/null
@@ -1,36 +0,0 @@
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-
-/* Create a binay column for testing purposes */
-
-int main(int argc, char **argv)
-{
-       int i,j,lim,val;
-       FILE *f;
-
-       if ( argc <3 || (argc %2 != 0) ){
-               printf("use:%s <recordcount> [<filename> <type>] ...\n", 
argv[0]);
-               return -1;
-       }
-       lim = atoi(argv[1]);
-       if( lim < 0){
-               printf("record count <0\n");
-               return -1;
-       }
-       for( i= 2; i< argc; i+=2){
-               f= fopen(argv[i],"w");
-               if( f== NULL){
-                       printf("could not create '%s'\n",argv[i]);
-                       return -1;
-               }
-
-               if( strcmp(argv[i+1],"int") == 0 ){
-                       for(j=0; j< lim; j++){
-                               fwrite((void*)&val, sizeof(val), 1, f);
-                               val++;
-                       }
-               } else printf("invalid type %s\n", argv[i+1]);
-               fclose(f);
-       }
-}
diff --git a/sql/backends/monet5/iot/Tests/iot00.sql 
b/sql/backends/monet5/iot/Tests/iot00.sql
deleted file mode 100644
--- a/sql/backends/monet5/iot/Tests/iot00.sql
+++ /dev/null
@@ -1,9 +0,0 @@
--- Clear the stream testing environment
-set schema iot;
-set optimizer='iot_pipe';
-
-create stream table stream_tmp (t timestamp, sensor integer, val decimal(8,2)) 
;
-
-insert into stream_tmp values(timestamp '2016-03-13 08:58:14', 1, 23.4);
-
-select * from stream_tmp;
diff --git a/sql/backends/monet5/iot/Tests/iot05.sql 
b/sql/backends/monet5/iot/Tests/iot05.sql
deleted file mode 100644
--- a/sql/backends/monet5/iot/Tests/iot05.sql
+++ /dev/null
@@ -1,37 +0,0 @@
--- introduce a heartbeat query
-set schema iot;
-set optimizer='iot_pipe';
-
-declare hbclk1 integer;
-declare hbclk2 integer;
-declare cnt integer;
-
-set hbclk1 = 0;
-set hbclk2 = 0;
-set cnt = 0;
-
--- continuous queries should be encapsulated in procedures
--- this way their naming becomes easier, and mult-statement
--- actions are better supported.
-
-create procedure clk1()
-begin
-       set hbclk1 = hbclk1+1;
-end;
-
-create procedure clk3()
-begin
-       set hbclk1 = hbclk1+1;
-       set hbclk1 = hbclk1+1;
-       --set cnt =(select count(*) from stream_tmp);
-end;
-
--- alternative is a simple query
-call iot.query('iot','clk1');
-call iot.query('iot','clk3');
-call iot.query('select 1;');
-call iot.petrinet();
-call iot.resume();
-call iot.stop();
-call iot.drop();
-call iot.dump();
diff --git a/sql/backends/monet5/iot/Tests/iot10.sql 
b/sql/backends/monet5/iot/Tests/iot10.sql
deleted file mode 100644
--- a/sql/backends/monet5/iot/Tests/iot10.sql
+++ /dev/null
@@ -1,21 +0,0 @@
--- introduce a heartbeat query
-set schema iot;
-set optimizer='iot_pipe';
-
-create table tmp_aggregate(tmp_total decimal(8,2), tmp_count decimal(8,2));
-insert into tmp_aggregate values(0.0,0.0);
-
-
-create procedure collector()
-begin
-       update tmp_aggregate
-               set tmp_total = tmp_total + (select sum(val) from 
iot.stream_tmp),
-                       tmp_count = tmp_total + (select count(*) from 
iot.stream_tmp);
-end;
-
--- alternative is a simple query
-iot.pause();
-iot.query('iot','collector');
-iot.dump();
-iot.resume();
-iot.stop();
diff --git a/sql/backends/monet5/iot/Tests/iot15.sql 
b/sql/backends/monet5/iot/Tests/iot15.sql
deleted file mode 100644
--- a/sql/backends/monet5/iot/Tests/iot15.sql
+++ /dev/null
@@ -1,16 +0,0 @@
--- use a consolidated view
-set schema iot;
-set optimizer='iot_pipe';
-
-create view temp_view(temp_total, temp_count) 
-as select sum(val), count(*) from stream_tmp;
-
--- alternative is a simple query
-iot.pause();
-iot.query('iot','temp_view');
-iot.dump();
-iot.resume();
-iot.stop();
-
-select * from temp_view;
-drop view temp_view;
diff --git a/sql/backends/monet5/iot/Tests/iot99.sql 
b/sql/backends/monet5/iot/Tests/iot99.sql
deleted file mode 100644
--- a/sql/backends/monet5/iot/Tests/iot99.sql
+++ /dev/null
@@ -1,9 +0,0 @@
--- initialize the stream testing environment
-set schema iot;
-set optimizer='iot_pipe';
-
-call iot.receptor();
-drop procedure clk1;
-drop procedure clk3;
-drop procedure collector;
-drop table stream_tmp;
diff --git a/sql/backends/monet5/iot/Tests/petrinet00.mal 
b/sql/backends/monet5/iot/Tests/petrinet00.mal
deleted file mode 100644
--- a/sql/backends/monet5/iot/Tests/petrinet00.mal
+++ /dev/null
@@ -1,9 +0,0 @@
-function hello();
-       io.print("helloworld");
-       alarm.sleep(2);
-end hello;
-
-petrinet.register("user","hello");
-
-(mod:bat[:str],fcn:bat[:str], 
status:bat[:str],lastrun:bat[:timestamp],cycles:bat[:int], 
events:bat[:int],time:bat[:lng],error:bat[:str]):= petrinet.queries();
-io.print(mod,fcn, status,lastrun,cycles, events,time,error);
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to