[prev in list] [next in list] [prev in thread] [next in thread] 

List:       monetdb-checkins
Subject:    MonetDB: Oct2020 - Added test for bug 7031
From:       Pedro Ferreira <commits+pedro.ferreira=monetdbsolutions.com () monetdb ! org>
Date:       2020-12-29 10:20:54
Message-ID: hg.8f3e9f235662.1609237254.6315528441665844383 () monetdb-vm0 ! spin-off ! cwi ! nl
[Download RAW message or body]

Changeset: 8f3e9f235662 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=8f3e9f235662
Added Files:
	sql/test/BugTracker-2020/Tests/dbfarm-foreign-chars.Bug-7031.py
	sql/test/BugTracker-2020/Tests/dbfarm-foreign-chars.Bug-7031.stable.err
	sql/test/BugTracker-2020/Tests/dbfarm-foreign-chars.Bug-7031.stable.out
Modified Files:
	sql/test/BugTracker-2020/Tests/All
Branch: Oct2020
Log Message:

Added test for bug 7031


diffs (80 lines):

diff --git a/sql/test/BugTracker-2020/Tests/All b/sql/test/BugTracker-2020/Tests/All
--- a/sql/test/BugTracker-2020/Tests/All
+++ b/sql/test/BugTracker-2020/Tests/All
@@ -41,4 +41,5 @@ view_with_aggr_column.Bug-7023
 delete-transaction-loose-inserts.Bug-7024
 revokeRoleUserLoggedIN.Bug-7026
 drop-table-with-auto_increment.Bug-7030
+HAVE_PYMONETDB?dbfarm-foreign-chars.Bug-7031
 user-update-privs.Bug-7035
diff --git a/sql/test/BugTracker-2020/Tests/dbfarm-foreign-chars.Bug-7031.py \
b/sql/test/BugTracker-2020/Tests/dbfarm-foreign-chars.Bug-7031.py new file mode \
                100644
--- /dev/null
+++ b/sql/test/BugTracker-2020/Tests/dbfarm-foreign-chars.Bug-7031.py
@@ -0,0 +1,32 @@
+import sys, os, socket, tempfile, pymonetdb
+
+try:
+    from MonetDBtesting import process
+except ImportError:
+    import process
+
+def freeport():
+    sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
+    sock.bind(('', 0))
+    port = sock.getsockname()[1]
+    sock.close()
+    return port
+
+with tempfile.TemporaryDirectory() as farm_dir:
+    mypath = os.path.join(farm_dir, '进起都家', 'myserver','mynode')
+    os.makedirs(mypath)
+
+    prt = freeport()
+    with process.server(mapiport=prt, dbname='mynode', dbfarm=mypath,
+                        stdin=process.PIPE, stdout=process.PIPE,
+                        stderr=process.PIPE) as prc:
+        conn = pymonetdb.connect(database='mynode', port=prt, autocommit=True)
+        cur = conn.cursor()
+
+        cur.execute('SELECT \'进起都家\';')
+        if cur.fetchall() != [('进起都家',)]:
+            sys.stderr.write("'进起都家' expected")
+
+        cur.close()
+        conn.close()
+        prc.communicate()
diff --git a/sql/test/BugTracker-2020/Tests/dbfarm-foreign-chars.Bug-7031.stable.err \
b/sql/test/BugTracker-2020/Tests/dbfarm-foreign-chars.Bug-7031.stable.err new file \
                mode 100644
--- /dev/null
+++ b/sql/test/BugTracker-2020/Tests/dbfarm-foreign-chars.Bug-7031.stable.err
@@ -0,0 +1,12 @@
+stderr of test 'dbfarm-foreign-chars.Bug-7031` in directory \
'sql/test/BugTracker-2020` itself: +
+
+# 10:13:05 >  
+# 10:13:05 >  "/usr/bin/python3.9" "dbfarm-foreign-chars.Bug-7031.py" \
"dbfarm-foreign-chars.Bug-7031" +# 10:13:05 >  
+
+
+# 10:13:07 >  
+# 10:13:07 >  "Done."
+# 10:13:07 >  
+
diff --git a/sql/test/BugTracker-2020/Tests/dbfarm-foreign-chars.Bug-7031.stable.out \
b/sql/test/BugTracker-2020/Tests/dbfarm-foreign-chars.Bug-7031.stable.out new file \
                mode 100644
--- /dev/null
+++ b/sql/test/BugTracker-2020/Tests/dbfarm-foreign-chars.Bug-7031.stable.out
@@ -0,0 +1,12 @@
+stdout of test 'dbfarm-foreign-chars.Bug-7031` in directory \
'sql/test/BugTracker-2020` itself: +
+
+# 10:13:05 >  
+# 10:13:05 >  "/usr/bin/python3.9" "dbfarm-foreign-chars.Bug-7031.py" \
"dbfarm-foreign-chars.Bug-7031" +# 10:13:05 >  
+
+
+# 10:13:07 >  
+# 10:13:07 >  "Done."
+# 10:13:07 >  
+
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic