mirror of
https://github.com/dvorka/hstr.git
synced 2024-09-20 06:46:13 +08:00
HSTR/HH reconciliation in tests.
This commit is contained in:
parent
52726718e4
commit
4c46770566
|
@ -14,6 +14,6 @@
|
|||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
cd .. && make clean && qmake CONFIG+=hhdebug hh.pro && make && gdb ./hh
|
||||
cd .. && make clean && qmake CONFIG+=hstrdebug hstr.pro && make && gdb ./hh
|
||||
|
||||
# eof
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
# Run HSTR w/ 1 history entry to hunt memleaks w/ valgrind
|
||||
|
||||
# compile
|
||||
cd .. && qmake CONFIG+=hhdebug hh.pro && make clean && make -j 8
|
||||
cd .. && qmake CONFIG+=hstrdebug hstr.pro && make clean && make -j 8
|
||||
if [ ${?} -ne 0 ]
|
||||
then
|
||||
exit 1
|
||||
|
@ -28,7 +28,7 @@ fi
|
|||
export HISTFILE=`pwd`/test/resources/.bash_history_valgrind_1_entry
|
||||
|
||||
# Valgrind
|
||||
valgrind --track-origins=yes --tool=memcheck --leak-check=full --show-leak-kinds=all ./hh -n hist
|
||||
valgrind --track-origins=yes --tool=memcheck --leak-check=full --show-leak-kinds=all ./hstr -n hist
|
||||
# Valgrind's GDB
|
||||
#valgrind --vgdb=yes --vgdb-error=0 --track-origins=yes --tool=memcheck --leak-check=full --show-leak-kinds=all ./hstr -n hist
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
./test-generate-unity-test-runner.sh
|
||||
|
||||
# compile
|
||||
cd ../test && qmake hh-unit-tests.pro && make clean && make -j 8
|
||||
cd ../test && qmake hstr-unit-tests.pro && make clean && make -j 8
|
||||
if [ ${?} -ne 0 ]
|
||||
then
|
||||
exit 1
|
||||
|
@ -32,11 +32,11 @@ fi
|
|||
# run
|
||||
if [ ${OPTION_RUN_VALGRIND} ]
|
||||
then
|
||||
valgrind --track-origins=yes --tool=memcheck --leak-check=full --show-leak-kinds=all ./hh-unit-tests
|
||||
valgrind --track-origins=yes --tool=memcheck --leak-check=full --show-leak-kinds=all ./hstr-unit-tests
|
||||
# Valgrind's GDB
|
||||
#valgrind --vgdb=yes --vgdb-error=0 --track-origins=yes --tool=memcheck --leak-check=full --show-leak-kinds=all ./hh-unit-tests
|
||||
#valgrind --vgdb=yes --vgdb-error=0 --track-origins=yes --tool=memcheck --leak-check=full --show-leak-kinds=all ./hstr-unit-tests
|
||||
else
|
||||
./hh-unit-tests
|
||||
./hstr-unit-tests
|
||||
fi
|
||||
|
||||
# eof
|
||||
|
|
4
hstr.pro
4
hstr.pro
|
@ -1,4 +1,4 @@
|
|||
# hh.pro Qt project file for HSTR shell history compleation utility
|
||||
# hstr.pro Qt project file for HSTR shell history compleation utility
|
||||
#
|
||||
# Copyright (C) 2014-2018 Martin Dvorak <martin.dvorak@mindforger.com>
|
||||
#
|
||||
|
@ -17,7 +17,7 @@
|
|||
#########################################################################
|
||||
#
|
||||
# QMake build options:
|
||||
# qmake CONFIG+=hhdebug ... add extra debug and profiling info
|
||||
# qmake CONFIG+=hstrdebug ... add extra debug and profiling info
|
||||
#
|
||||
#########################################################################
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# hh-unit-tests.pro Qt project file of UNIT tests for HSTR
|
||||
# hstr-unit-tests.pro Qt project file of UNIT tests for HSTR
|
||||
#
|
||||
# Copyright (C) 2014-2018 Martin Dvorak <martin.dvorak@mindforger.com>
|
||||
#
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
ěščřžýáíé
|
||||
ŘŠČŽ
|
||||
./hh
|
||||
./hstr
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
main.c UNIT tests main for HSTR shell history completion utility
|
||||
test.c UNIT tests main for HSTR shell history completion utility
|
||||
|
||||
Copyright (C) 2014-2018 Martin Dvorak <martin.dvorak@mindforger.com>
|
||||
|
||||
|
|
|
@ -15,12 +15,11 @@
|
|||
# limitations under the License.
|
||||
|
||||
export HH_CONFIG=hicolor
|
||||
export HISTFILE=/tmp/hh-bug-124
|
||||
export HISTFILE=/tmp/hstr-bug-124
|
||||
|
||||
cp -vf ~/p/hstr/.bash_history_BUG_124 ${HISTFILE}
|
||||
cp -vf ~/p/hstr/.bash_history_bug_124 ${HISTFILE}
|
||||
|
||||
#cd ~/p/hstr/github/hstr/Debug && gdbserver :9999 ./hh
|
||||
#cd ~/p/hstr/github/hstr/Debug && ./hh
|
||||
hh
|
||||
|
||||
# eof
|
|
@ -17,10 +17,9 @@
|
|||
export HH_CONFIG=hicolor,regexp
|
||||
export HISTFILE=/tmp/hh-bug-163
|
||||
|
||||
cp -vf ~/p/hstr/.bash_history_BUG_163 ${HISTFILE}
|
||||
cp -vf ~/p/hstr/.bash_history_bug_163 ${HISTFILE}
|
||||
|
||||
#cd ~/p/hstr/github/hstr/Debug && gdbserver :9999 ./hh
|
||||
cd ~/p/hstr/github/hstr/Debug && ./hh
|
||||
#hh
|
||||
#cd ~/p/hstr/github/hstr && gdbserver :9999 ./hh
|
||||
cd ~/p/hstr/github/hstr && ./hstr
|
||||
|
||||
# eof
|
|
@ -18,9 +18,8 @@
|
|||
infocmp | sed -e 's/[sr]mcup=[^,]*,//' > /tmp/noaltscreen-terminfo
|
||||
tic -o ~/.terminfo/ /tmp/noaltscreen-terminfo
|
||||
|
||||
#cd ~/p/hstr/github/hstr/Debug && gdbserver :9999 ./hh
|
||||
#cd ~/p/hstr/github/hstr/Debug && ./hh
|
||||
#hh
|
||||
#cd ~/p/hstr/github/hstr && gdbserver :9999 ./hstr
|
||||
#cd ~/p/hstr/github/hstr && ./hstr
|
||||
top
|
||||
|
||||
# eof
|
|
@ -19,8 +19,7 @@ export HISTFILE=/tmp/hh-bug-176
|
|||
|
||||
cp -vf ~/p/hstr/github/hstr/tests/resources/.bash_history_BUG_176 ${HISTFILE}
|
||||
|
||||
#cd ~/p/hstr/github/hstr/Debug && gdbserver :9999 ./hh
|
||||
#cd ~/p/hstr/github/hstr/Debug && ./hh
|
||||
hh
|
||||
#cd ~/p/hstr/github/hstr && gdbserver :9999 ./hstr
|
||||
#cd ~/p/hstr/github/hstr && ./hstr
|
||||
|
||||
# eof
|
Loading…
Reference in a new issue