Add a testing suite for CMD based on CMD scripts.
[reactos.git] / rostests / win32 / cmd / script_testsuite / tests / at.cmd
1 ::
2 :: PROJECT: ReactOS CMD Testing Suite
3 :: LICENSE: GPL v2 or any later version
4 :: FILE: tests/at.cmd
5 :: PURPOSE: Tests for the correct parsing of the "@" character
6 :: COPYRIGHT: Copyright 2008 Colin Finck <mail@colinfinck.de>
7 ::
8
9 :: Calling a command should work with any number of "@" characters prepended
10 call :_test "@echo Test >nul"
11 call :_test "@@echo Test >nul"
12
13 :: Files with an "@" sign at the beginning should work as well
14 echo @^@echo Test > "temp\@file.cmd"
15 call :_test "call temp\@file.cmd >nul"
16
17 echo ^@echo Test > "temp\@file.cmd"
18 call :_test "call temp\@file.cmd >nul"
19
20 goto :EOF