Updated Vim test running script

This commit is contained in:
Emmanuel BENOîT 2018-12-16 12:41:54 +01:00
parent e2a2535dc2
commit 2f4a3b7283

View file

@ -1,14 +1,14 @@
#!/bin/bash
if make -j 8 all CONFIG=.vim.local/scripts/build-config; then
if [ "$VIM_RELDIR" = "tests" ] && [ "$VIM_FILEEXT" = ".cc" ]; then
if [ -f "output/fast/test-$VIM_FILENOEXT" ]; then
LD_LIBRARY_PATH=./output \
./output/test-$VIM_FILENOEXT 2>&1 \
if [ -f "output/linux/test-$VIM_FILENOEXT" ]; then
LD_LIBRARY_PATH=./output/linux:./output/linux/cppunit/lib \
./output/linux/test-$VIM_FILENOEXT 2>&1 \
| sed -e s/"$VIM_FILENAME"/'tests\/'"$VIM_FILENAME"/g
exit 0
fi
fi
LD_LIBRARY_PATH=./output \
./output/run-all-tests 2>&1 \
LD_LIBRARY_PATH=./output/linux:./output/linux/cppunit/lib \
./output/linux/run-all-tests 2>&1 \
| sed -e 's/^\([a-z\-]\+\.cc\)/tests\/\1/g'
fi