Skip to content

Commit 84311d2

Browse files
committed
Aded some sugar to the test running scripts
1 parent 172a49c commit 84311d2

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed

test/run_tests.cmd

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ REM
1212

1313
(
1414
echo vim9script
15-
echo # ---- dummy vimrc file content -----
15+
echo/
1616
echo set runtimepath+=..
1717
echo set runtimepath+=../after
1818
echo filetype plugin indent on
19-
echo # ----------------------------------
19+
echo/
2020
) >> "%VIMRC%"
2121

2222
SET "VIM_CMD=%VIMPRG% --clean -u %VIMRC% -i NONE"
@@ -28,6 +28,8 @@ if NOT EXIST "%VIMRC%" (
2828
)
2929

3030
REM Display the contents of VIMRC (for debugging purposes)
31+
echo/
32+
echo ----- dummy_vimrc content -------
3133
type "%VIMRC%"
3234

3335
REM Run Vim with the specified configuration and additional commands
@@ -46,8 +48,11 @@ if %ERRORLEVEL% EQU 0 (
4648
)
4749

4850
REM REM Check test results
49-
echo MARKDOWN_EXTRAS unit test results:
51+
echo ----------------------------------
52+
echo MARKDOWN_EXTRAS unit-test results:
53+
echo/
5054
type results.txt
55+
echo/
5156

5257
REM REM Check for FAIL in results.txt
5358
findstr /I "FAIL" results.txt > nul 2>&1
@@ -56,7 +61,7 @@ if %ERRORLEVEL% EQU 0 (
5661
del %VIMRC%
5762
exit /b 1
5863
) else (
59-
echo All tests passed.
64+
echo SUCCESS: All tests passed.
6065
)
6166

6267
REM REM Exit script with success

test/run_tests.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ fi
2424
VIMRC="VIMRC"
2525

2626
echo "vim9script" > "$VIMRC"
27-
echo "# ---- dummy vimrc file content -----" >> "$VIMRC"
27+
echo ""
2828
echo "set runtimepath+=.." >> "$VIMRC"
2929
echo "set runtimepath+=../after" >> "$VIMRC"
3030
echo "filetype plugin on" >> "$VIMRC"
31-
echo "# -----------------------------------" >> "$VIMRC"
31+
echo "" >> "$VIMRC"
3232

3333
# Construct the VIM_CMD with correct variable substitution and quoting
3434
# VIM_CMD="$VIM_PRG -u $VIMRC -U NONE -i NONE --noplugin -N --not-a-term"
@@ -51,7 +51,10 @@ RunTestsInFile() {
5151
fi
5252
fi
5353

54+
echo "Test results: "
55+
echo ""
5456
cat results.txt
57+
echo ""
5558

5659
if grep -qw FAIL results.txt; then
5760
echo "ERROR: Some test(s) in $testfile failed."

0 commit comments

Comments
 (0)