Please see Issues for bugs and creating new tasks.
-
Prerequisites
-
Create configure script.
autoreconf --install
-
Create Makefiles.
./configure
-
Make.
make
-
Install
sudo make install
This would install avl to /usr/local/bin, header files to /usr/local/include and libraries to /usr/local/lib.
make check
You can run make check -j [N]
if you have multiple CPUs.
Suppose you want to test if
control flow.
-
Create
if1.avl
intests/avl.test/
, assuming you have multiple test cases forif
. -
Write a bash script
if1.sh
, also put it intotests/avl.test/
:#!/bin/bash avl -o if1 if1.avl
Don't forget chmod +x if1.sh
. If the test case is expected to fail, the bash script
should be as follows:
```bash
#!/bin/bash
avl -t if1.avl
```
since the error should be reported before invoking g++
.
-
Modify
tests/avl.test/Makefile.am
, addif1.sh
toTESTS
variable. If the test case is expected to fail, also add the script toXFAIL_TESTS
variable. Whether the test case passes or fails depends on the exit code of the script (0 for success). -
Rerun
make check
.