Files
fixminer_source/python/data/tests-list/lighttpd/README.md
T
2020-08-19 15:07:37 +02:00

1.1 KiB

Running lighttpd bugs

After running the container you need to follow the following steps to prepare SOSRepair for running:

  1. Copy makeout, compile.sh, test.sh and tests-list to the container's /experiment/.
  2. Copy settings.py to the container's /opt/sosrepair/sosrepair.
  3. In the container, reconfigure the project with coverage flags:
cd /experiment/src
./configure "CFLAGS=-fprofile-arcs -ftest-coverage" "CXXFLAGS=-fprofile-arcs -ftest-coverage" "LDFLAGS=-lgcov" --with-ldap --with-bzip2 --with-openssl --with-gdbm --with-memcache --with-webdav-props --with-webdav-locks
make clean
make
  1. Run /opt/sosrepair/prepare/setup.sh.
  2. Set proper permissions by running sudo chmod -R 777 /opt/sosrepair/sosrepair.
  3. Setup environment variables:
export PYTHONPATH="/opt/sosrepair/bindings:${PYTHONPATH}"
export CPATH=":/opt/sosrepair/include"
export PATH="/opt/sosrepair/bin:$PATH"

Pay attention that lighttpd tests occupy a single port. Therefore, you can only run on a single bug at a time if you're sharing ports. Otherwise, the tests will fail.