2018-01-16 09:10:56 +00:00
# Seafile Server Tests
## Run it locally
To run the tests, you need to install pytest first:
```sh
pip install -r ci/requirements.txt
```
2018-01-16 10:19:33 +00:00
Compile and install ccnet-server and seafile-server
```
cd ccnet-server
make
sudo make install
cd seafile-server
make
sudo make install
```
2018-01-16 09:10:56 +00:00
Then run the tests with
```sh
2018-01-16 10:19:33 +00:00
cd seafile-server
2018-01-16 09:10:56 +00:00
./run_tests.sh
```
By default the test script would try to start ccnet-server and seaf-server in `/usr/local/bin` , if you `make install` to another location, say `/opt/local` , run it like this:
```sh
SEAFILE_INSTALL_PREFIX=/opt/local ./run_tests.sh
```