Skip to content

Commit 04bc3e6

Browse files
authored
Update documentation to include running application tests. (#1)
1 parent e855ba8 commit 04bc3e6

File tree

2 files changed

+29
-12
lines changed

2 files changed

+29
-12
lines changed

README.md

+22-9
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,43 @@
11
# The Checked C LLVM test-suite repo
22

33
This repo contains a version of the LLVM test-suite repo that is being modified
4-
to use Checked C. The modified programs will be used to benchmark the Checked C
4+
to use Checked C. The modified programs will be used to benchmark the Checked C
55
version of LLVM/clang.
66

7-
We have deleted test-only code from this repo and left only benchmarks in the
8-
repo. That makes the repo easier to work with. It decreases disk usage from
9-
about 2.3 GBytes to under 500 MBytes.
7+
We have deleted test-only code from the master branch repo and left only benchmarks
8+
in the master branch. That makes the repo easier to work with. It decreases disk
9+
usage from about 2.3 GBytes to under 500 MBytes when using the master branch.
1010

1111
Checked C is an extension to C that adds checking to detect or prevent common
1212
programming errors such as out-of-bounds memory accesses. For more information
13-
on Checked C, see the Checked C specification in the
13+
on Checked C, see the Checked C specification in the
1414
[Checked C repo](https://github.com/Microsoft/checkedc). The Checked C
1515
version of LLVM/clang lives in two repos: the
1616
[Checked C clang repo](https://github.com/Microsoft/checked-clang)
17-
and the [Checked C LLVM repo](https://github.com/Microsoft/checkedc-llvm).
17+
and the [Checked C LLVM repo](https://github.com/Microsoft/checkedc-llvm).
1818

1919
## Status
2020

2121
At this time, no benchmarks have been converted to use Checked C.
2222

23-
## Running benchmarks
23+
## Branch organization
2424

25-
To run benchmarks on Linux, see the LNT [quick start directions](http://llvm.org/docs/lnt/quickstart.html)
25+
There are 3 branches in the repo:
26+
- master: this branch contains benchmarks, some of which may have been modified
27+
to use Checked C.
28+
- baseline: this branch contains benchmarks that have not been modified.
29+
- original: this contains all the tests, including application tests.
30+
31+
This master branch should be used for modifying benchmarks. This branch can be diffed
32+
agaisnt the baseline branch to see benchmarks that have changed.
33+
The original branch can be used to test that
34+
the Checked C implementation has not broken existing tests.
35+
36+
## Running tests
37+
38+
To run tests on Linux, see the LNT [quick start directions](http://llvm.org/docs/lnt/quickstart.html)
2639
on the LLVM site. You will want to add the argument `--ccflags -fcheckedc-extension`
27-
to the LNT command-line. The benchmarks can also be run on Windows 10 using
40+
to the LNT command-line. The tests can also be run on Windows 10 using
2841
the [Windows Subsystem for Linux](https://blogs.msdn.microsoft.com/wsl/2016/04/22/windows-subsystem-for-linux-overview/).
2942
See the directions [here](docs/Benchmarking-on-Windows.md).
3043

docs/Benchmarking-on-Windows.md

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Running Benchmarks on Windows 10
1+
# Running LNT Tests on Windows 10
22

33
The LNT testing framework is tied to Unix. However, it can be run on Windows 10
44
using the beta
@@ -22,14 +22,18 @@ You will have to reboot your computer as the last step.
2222
and type `bash`. This will prompt you to install Ubuntu on Windows.
2323
You will need to create a UNIX user account and password.
2424
- Install additional packages needed by LNT:
25-
2625
```
2726
sudo apt-get install python-virtualenv
2827
sudo apt-get install python-dev -y
2928
sudo apt-get install tcl
3029
sudo apt-get install bison
3130
```
3231

32+
- Install a development verison of zlib. The header files are needed to compile some application tests:
33+
```
34+
sudo apt-get install zlib1g-dev
35+
```
36+
3337
Note that you can find your Windows files under `/mnt/`_{drive letter}_`/`.
3438

3539
## Setup LNT
@@ -47,7 +51,7 @@ virtualenv ~/mysandbox
4751
```
4852
~/mysandbox/bin/python setup.py install.
4953
```
50-
There will be many error messages.
54+
There will be many warning messages.
5155

5256
## (Temporary) Build a Linux version of clang
5357
The Windows Subsystem for Linux added the ability to

0 commit comments

Comments
 (0)