1.2 KiB
1.2 KiB
Running wireshark bugs
After running the container you need to follow the following
steps to prepare SOSRepair for running:
- Copy
makeout,compile.sh,test.shandtests-listto the container's/experiment/. - Copy
settings.pyto the container's/opt/sosrepair/sosrepair. - Unfortunately
wiresharkonManyBugsdataset is preprocessed. So we need to download it from git repository:
cd /experiment
rm -r src
git clone https://github.com/wireshark/wireshark.git src
cd src
./autogen.sh
- In the container, reconfigure the project with coverage flags:
cd /experiment/src
./configure --disable-warnings-as-errors "CFLAGS=-fprofile-arcs -ftest-coverage" "CXXFLAGS=-fprofile-arcs -ftest-coverage" "LDFLAGS=-lgcov --coverage"
make clean
make
- Run
/opt/sosrepair/prepare/setup.sh. - Set proper permissions by running
sudo chmod -R 777 /opt/sosrepair/sosrepair. - Setup environment variables:
export PYTHONPATH="/opt/sosrepair/bindings:${PYTHONPATH}"
export CPATH=":/opt/sosrepair/include"
export PATH="/opt/sosrepair/bin:$PATH"
- You need to change permission of the test script:
chmod +x /experiment/wireshark-run-tests.sh