2018-08-04 09:42:55 +02:00
|
|
|
#!/bin/bash
|
|
|
|
#
|
|
|
|
# Test a patch using the daca script
|
|
|
|
#
|
|
|
|
# Arguments:
|
|
|
|
# $1: patch file name
|
|
|
|
# $2: daca folder
|
|
|
|
#
|
|
|
|
# Example usage:
|
|
|
|
# daca-test-patch.sh 1234.diff a
|
|
|
|
|
|
|
|
set -e
|
|
|
|
cd ~/cppcheck
|
|
|
|
git checkout -f
|
|
|
|
git apply $1
|
|
|
|
make clean
|
2019-08-17 10:53:07 +02:00
|
|
|
nice make MATCHCOMPILER=yes FILESDIR=~/cppcheck CXXFLAGS=-O2
|
2018-08-04 09:42:55 +02:00
|
|
|
mv cppcheck ~/daca2/cppcheck-patch
|
|
|
|
git checkout -f
|
2019-08-17 10:53:07 +02:00
|
|
|
nice make MATCHCOMPILER=yes FILESDIR=~/cppcheck CXXFLAGS=-O2
|
2018-08-04 09:42:55 +02:00
|
|
|
mv cppcheck ~/daca2/cppcheck-head
|
|
|
|
make clean
|
|
|
|
nice make
|
|
|
|
python tools/daca2.py --baseversion patch $2
|
|
|
|
|
|
|
|
|
|
|
|
|