]>
Commit | Line | Data |
---|---|---|
f67539c2 TL |
1 | Thrift D Software Library |
2 | ========================= | |
3 | ||
4 | License | |
5 | ------- | |
6 | ||
7 | Licensed to the Apache Software Foundation (ASF) under one | |
8 | or more contributor license agreements. See the NOTICE file | |
9 | distributed with this work for additional information | |
10 | regarding copyright ownership. The ASF licenses this file | |
11 | to you under the Apache License, Version 2.0 (the | |
12 | "License"); you may not use this file except in compliance | |
13 | with the License. You may obtain a copy of the License at | |
14 | ||
15 | http://www.apache.org/licenses/LICENSE-2.0 | |
16 | ||
17 | Unless required by applicable law or agreed to in writing, | |
18 | software distributed under the License is distributed on an | |
19 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | |
20 | KIND, either express or implied. See the License for the | |
21 | specific language governing permissions and limitations | |
22 | under the License. | |
23 | ||
24 | Testing | |
25 | ------- | |
26 | ||
27 | D support in Thrift is covered by two sets of tests: first, | |
28 | the unit test blocks contained in the D source files, and | |
29 | second, the more extensive testing applications in the test/ | |
30 | subdirectory, which also make use of the Thrift compiler. | |
31 | Both are built when running "make check", but only the | |
32 | unit tests are immediately run, however – the separate test | |
33 | cases typically run longer or require manual intervention. | |
34 | It might also be prudent to run the independent tests, | |
35 | which typically consist of a server and a client part, | |
36 | against the other language implementations. | |
37 | ||
38 | To build the unit tests on Windows, the easiest way might | |
39 | be to manually create a file containing an empty main() and | |
40 | invoke the compiler by running the following in the src/ | |
41 | directory (PowerShell syntax): | |
42 | ||
43 | dmd -ofunittest -unittest -w $(dir -r -filter '*.d' -name) | |
44 | ||
45 | Async and SSL | |
46 | ------------- | |
47 | Using SSL with async is experimental (always has been) and | |
48 | the unit test "async_test --ssl" hangs. Use at your own | |
49 | risk. |