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
Copy file name to clipboardExpand all lines: README.md
+26-38Lines changed: 26 additions & 38 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,37 +6,27 @@ Testing SQL compabillity for [AlaSQL](https://github.com/agershun/alasql)
6
6
How?
7
7
----
8
8
9
-
Go get markdown summery run npm test (will include starting node with garbagecollection set to true):
9
+
Go get markdown summery run npm test :
10
10
11
11
npm test
12
12
13
-
Result will output to results.md
13
+
Result will output to `results/results.md`
14
14
15
15
16
-
----
17
-
18
-
**==> The rest of this file is probably outdated <==**
19
-
20
-
----
21
-
22
-
**To get more details** execute `run_raw.js` in the sqllogic folder. As the output is very big its suggested to direct output to a file and let the garbagecollection be initiated between the run of each file. To execute `run_raw.js` run node with the --expose-gc flag:
23
-
24
-
cd sqllogic
25
-
node --expose-gc run_raw > results.log
26
16
27
17
28
18
What?
29
19
-----
30
20
31
-
The output of `run_raw.js` is the output of each test file followed by the total score. (so you can keep track on overall % of passed tests why its running)
21
+
The output of `run.js` is the output of each test file followed by the total score. (so you can keep track on overall % of passed tests why its running)
32
22
33
23
There are about 2 million tests in the full test suite. Many of the tests will trigger the same kind of error - this is why the output will only print the same error the first time it comes forward. To have more examples it will randomly print errors even if it has been printes before. You can also choose to print all errors. Please see the config section in the run.js file.
34
24
35
25
Please note that the current version of the script **ONLY TESTS IF THE SQL CAN COMPILE** - not if the returned values are correct.
36
26
37
27
To make sure you are testing the lates stable release please run the following:
38
28
39
-
cd sqllogic && npm install alasql
29
+
npm install alasql
40
30
41
31
Please see the config section of the `run` files to run tests on local version instead of npm version.
42
32
@@ -62,6 +52,7 @@ Supported
62
52
63
53
- NULL values are rendered as "NULL". Empty strings are rendered as "(empty)". Within non-empty strings, all control characters and unprintable characters are rendered as "@".
64
54
55
+
- Implement verification of returned valued with sortorder set
65
56
66
57
67
58
@@ -77,9 +68,6 @@ ToDo
77
68
78
69
79
70
80
-
- Implement verification of returned valued with sortorder set
81
-
> The <sort-mode> argument is optional. If included, it must be one of "nosort", "rowsort", or "valuesort". The default is "nosort". In nosort mode, the results appear in exactly the order in which they were received from the database engine. The nosort mode should only be used on queries that have an ORDER BY clause or which only have a single row of result, since otherwise the order of results is undefined and might vary from one database engine to another. The "rowsort" mode gathers all output from the database engine then sorts it by rows on the client side. Sort comparisons use strcmp() on the rendered ASCII text representation of the values. Hence, "9" sorts after "10", not before. The "valuesort" mode works like rowsort except that it does not honor row groupings. Each individual result value is sorted on its own.
82
-
83
71
**Not ToDo**
84
72
- Impelment mocha testframework (testresults does not get printed before all are done - so fills the memory)
85
73
@@ -102,26 +90,26 @@ The output from run.js is structured the following way:
102
90
103
91
The output from a single testfile could look like this
It makes sense, as no errors was found. But it can also look like this:
116
104
117
-
-----------------------------
118
-
Looking at ./test/evidence/slt_lang_update.test
119
-
120
-
Ran 25 tests
121
-
96% was OK
122
-
1 was not
123
-
./test/evidence/slt_lang_update.test: 98ms
124
-
125
-
-----------------------------
126
-
127
-
making less sense as an error was found but was not printed. Because there are about 2 million tests in the full testset the same errors will be found many times. To limit noise an error only gets printed first time its seen. Settings for printing errors can be found in the config section of run_x.js
making less sense as an error was found but was not printed. Because there are about 2 million tests in the full testset the same errors will be found many times. To limit noise an error only gets printed first time its seen. Settings for printing errors can be found in the config section of run.js
0 commit comments