You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"${func}""SELECT name, size, modetotxt(mode), strftime('%a %b %d %H:%M:%S UTC %Y', mtime) FROM gufi_vt_${name}('${INDEXROOT}', ${THREADS}) ORDER BY name ASC, size ASC;"
77
+
"${func}""SELECT name, size, modetotxt(mode), strftime('%a %b %d %H:%M:%S UTC %Y', mtime) FROM gufi_vt_${name}('${INDEXROOT}') ORDER BY name ASC, size ASC;"
78
78
done
79
79
80
80
echo"# Query with WHERE size < 10"
@@ -92,6 +92,6 @@ run_tests() {
92
92
echo"# Missing thread count (not an error)"
93
93
"${func}""SELECT name FROM gufi_vt_pentries('${INDEXROOT}') ORDER BY name ASC, size ASC;"
94
94
95
-
echo"# NULL thread count (not an error)"
96
-
"${func}""SELECT name FROM gufi_vt_pentries('${INDEXROOT}', NULL) ORDER BY name ASC, size ASC;"
95
+
echo"# NULL arguments (not an error)"
96
+
"${func}""SELECT name FROM gufi_vt_pentries('${INDEXROOT}', NULL, NULL, NULL, NULL, NULL, NULL, NULL) ORDER BY name ASC, size ASC;"
Copy file name to clipboardExpand all lines: test/regression/gufi_vt.expected
+19-7Lines changed: 19 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ $ (
18
18
# Query summary
19
19
$ (
20
20
echo ".load gufi_vt"
21
-
echo "SELECT name, size, modetotxt(mode), strftime('%a %b %d %H:%M:%S UTC %Y', mtime) FROM gufi_vt_summary('prefix', 2) ORDER BY name ASC, size ASC;"
21
+
echo "SELECT name, size, modetotxt(mode), strftime('%a %b %d %H:%M:%S UTC %Y', mtime) FROM gufi_vt_summary('prefix') ORDER BY name ASC, size ASC;"
22
22
) | sqlite3
23
23
directory|7|drwxrwxr-x|Thu Jan 01 00:00:07 UTC 1970
24
24
empty_directory|8|drwxrwxr-x|Thu Jan 01 00:00:08 UTC 1970
@@ -30,7 +30,7 @@ unusual#? directory ,|16|drwxrwxr-x|Thu Jan 01 00:00:16 UTC 1970
30
30
# Query entries
31
31
$ (
32
32
echo ".load gufi_vt"
33
-
echo "SELECT name, size, modetotxt(mode), strftime('%a %b %d %H:%M:%S UTC %Y', mtime) FROM gufi_vt_entries('prefix', 2) ORDER BY name ASC, size ASC;"
33
+
echo "SELECT name, size, modetotxt(mode), strftime('%a %b %d %H:%M:%S UTC %Y', mtime) FROM gufi_vt_entries('prefix') ORDER BY name ASC, size ASC;"
34
34
) | sqlite3
35
35
.hidden|10|-rw-rw-r--|Thu Jan 01 00:00:10 UTC 1970
36
36
1KB|1024|-rw-rw-r--|Thu Jan 01 00:17:04 UTC 1970
@@ -50,7 +50,7 @@ writable|3|-rw-rw-rw-|Thu Jan 01 00:00:03 UTC 1970
50
50
# Query pentries
51
51
$ (
52
52
echo ".load gufi_vt"
53
-
echo "SELECT name, size, modetotxt(mode), strftime('%a %b %d %H:%M:%S UTC %Y', mtime) FROM gufi_vt_pentries('prefix', 2) ORDER BY name ASC, size ASC;"
53
+
echo "SELECT name, size, modetotxt(mode), strftime('%a %b %d %H:%M:%S UTC %Y', mtime) FROM gufi_vt_pentries('prefix') ORDER BY name ASC, size ASC;"
54
54
) | sqlite3
55
55
.hidden|10|-rw-rw-r--|Thu Jan 01 00:00:10 UTC 1970
56
56
1KB|1024|-rw-rw-r--|Thu Jan 01 00:17:04 UTC 1970
@@ -70,7 +70,7 @@ writable|3|-rw-rw-rw-|Thu Jan 01 00:00:03 UTC 1970
70
70
# Query vrsummary
71
71
$ (
72
72
echo ".load gufi_vt"
73
-
echo "SELECT name, size, modetotxt(mode), strftime('%a %b %d %H:%M:%S UTC %Y', mtime) FROM gufi_vt_vrsummary('prefix', 2) ORDER BY name ASC, size ASC;"
73
+
echo "SELECT name, size, modetotxt(mode), strftime('%a %b %d %H:%M:%S UTC %Y', mtime) FROM gufi_vt_vrsummary('prefix') ORDER BY name ASC, size ASC;"
74
74
) | sqlite3
75
75
directory|7|drwxrwxr-x|Thu Jan 01 00:00:07 UTC 1970
76
76
empty_directory|8|drwxrwxr-x|Thu Jan 01 00:00:08 UTC 1970
@@ -82,7 +82,7 @@ unusual#? directory ,|16|drwxrwxr-x|Thu Jan 01 00:00:16 UTC 1970
82
82
# Query vrpentries
83
83
$ (
84
84
echo ".load gufi_vt"
85
-
echo "SELECT name, size, modetotxt(mode), strftime('%a %b %d %H:%M:%S UTC %Y', mtime) FROM gufi_vt_vrpentries('prefix', 2) ORDER BY name ASC, size ASC;"
85
+
echo "SELECT name, size, modetotxt(mode), strftime('%a %b %d %H:%M:%S UTC %Y', mtime) FROM gufi_vt_vrpentries('prefix') ORDER BY name ASC, size ASC;"
86
86
) | sqlite3
87
87
.hidden|10|-rw-rw-r--|Thu Jan 01 00:00:10 UTC 1970
88
88
1KB|1024|-rw-rw-r--|Thu Jan 01 00:17:04 UTC 1970
@@ -158,10 +158,10 @@ repeat_name
158
158
unusual, name?#
159
159
writable
160
160
161
-
# NULL thread count (not an error)
161
+
# NULL arguments (not an error)
162
162
$ (
163
163
echo ".load gufi_vt"
164
-
echo "SELECT name FROM gufi_vt_pentries('prefix', NULL) ORDER BY name ASC, size ASC;"
164
+
echo "SELECT name FROM gufi_vt_pentries('prefix', NULL, NULL, NULL, NULL, NULL, NULL, NULL) ORDER BY name ASC, size ASC;"
echo "CREATE VIRTUAL TABLE gufi USING gufi_vt("prefix", I="CREATE TABLE intermediate(i INTEGER);", S="INSERT INTO intermediate SELECT rpath(sname, sroll) FROM vrsummary;", K="CREATE TABLE aggregate(i INTEGER);", J="INSERT INTO aggregate SELECT * FROM intermediate;", G="SELECT * from aggregate;");SELECT * FROM gufi ORDER BY i ASC;"
0 commit comments