mirror of
https://github.com/haiwen/seafile-server.git
synced 2025-04-27 11:10:49 +00:00
Mirror
* Add online gc core * Add check gc when update repo * Go add check gc when update repo * Add gc unit test * Support set pwd_hash for gc and fsck * Optimize to check if block exists --------- Co-authored-by: 杨赫然 <heran.yang@seafile.com> |
||
---|---|---|
.github/workflows | ||
ci | ||
common | ||
controller | ||
doc | ||
fileserver | ||
fuse | ||
include | ||
lib | ||
m4 | ||
notification-server | ||
python | ||
scripts | ||
server | ||
tests | ||
tools | ||
.gitignore | ||
autogen.sh | ||
configure.ac | ||
LICENSE.txt | ||
Makefile.am | ||
pytest.ini | ||
README.markdown | ||
README.testing.md | ||
run_tests.sh | ||
updateversion.sh |
Seafile Server Tests
Run it locally
To run the tests, you need to install pytest first:
pip install -r ci/requirements.txt
Compile and install ccnet-server and seafile-server
cd ccnet-server
make
sudo make install
cd seafile-server
make
sudo make install
Then run the tests with
cd seafile-server
./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:
SEAFILE_INSTALL_PREFIX=/opt/local ./run_tests.sh