From 3e04c240568cf06bdf1e6f4e5c8f87430b6b91d2 Mon Sep 17 00:00:00 2001 From: LtWorf Date: Sun, 20 Mar 2011 17:16:34 +0000 Subject: [PATCH] - Added new test - More details in test driver - Re-building GUI, idioticly eliminated long ago git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@277 014f5005-505e-4b48-8d0a-63407b615a7c --- relational_gui/maingui.ui | 224 ++++++++++++++++++++++++++++ test/driver.py | 3 +- test/max_rating_in_age_range.query | 1 + test/max_rating_in_age_range.result | 2 + 4 files changed, 229 insertions(+), 1 deletion(-) create mode 100644 relational_gui/maingui.ui create mode 100644 test/max_rating_in_age_range.query create mode 100644 test/max_rating_in_age_range.result diff --git a/relational_gui/maingui.ui b/relational_gui/maingui.ui new file mode 100644 index 0000000..a1208d0 --- /dev/null +++ b/relational_gui/maingui.ui @@ -0,0 +1,224 @@ + + + MainWindow + + + + 0 + 0 + 800 + 600 + + + + MainWindow + + + + + + 340 + 10 + 274 + 317 + + + + GroupBox + + + + + + + + + PushButton + + + + + + + PushButton + + + + + + + PushButton + + + + + + + + + 340 + 330 + 274 + 233 + + + + GroupBox + + + + + + + + + + + 30 + 30 + 125 + 500 + + + + + + + GroupBox + + + + + + About + + + + + + + Survey + + + + + + + + + + GroupBox + + + + + + PushButton + + + + + + + PushButton + + + + + + + PushButton + + + + + + + PushButton + + + + + + + PushButton + + + + + + + PushButton + + + + + + + PushButton + + + + + + + PushButton + + + + + + + PushButton + + + + + + + PushButton + + + + + + + PushButton + + + + + + + PushButton + + + + + + + PushButton + + + + + + + + + + + + + 0 + 0 + 800 + 21 + + + + + + + + diff --git a/test/driver.py b/test/driver.py index 6cd71a4..0e997a3 100644 --- a/test/driver.py +++ b/test/driver.py @@ -205,7 +205,8 @@ def run_test(testname): if (o_result==result_rel) and (result==result_rel): print "\033[32;1mTest passed\033[0m" return True - except: + except Exception as inst: + print inst pass print "\033[31;1mERROR\033[0m" print "Query: %s -> %s" % (query,expr) diff --git a/test/max_rating_in_age_range.query b/test/max_rating_in_age_range.query new file mode 100644 index 0000000..9a53737 --- /dev/null +++ b/test/max_rating_in_age_range.query @@ -0,0 +1 @@ +(σ age<25(people) ᑌ σ age>30(people)) ᐅᐊ ratings-πid,name,chief,age,rating(σ rating30(people)) ᐅᐊ ratings))) * (σ age<25(people) ᑌ σ age>30(people)) ᐅᐊ ratings)) \ No newline at end of file diff --git a/test/max_rating_in_age_range.result b/test/max_rating_in_age_range.result new file mode 100644 index 0000000..5d1f9f3 --- /dev/null +++ b/test/max_rating_in_age_range.result @@ -0,0 +1,2 @@ +id,name,chief,age,rating +1,carl,0,20,6