/
niceSOFT
/
valgrind
Обзор
Документация
Войти
/
niceSOFT
/
valgrind
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
none/tests/scripts/shell
40 строк
1010 B
Florian Krohm
Add two more tests with missing interpreter names.
22 июл 2015, 01:05
22 июл 2015, 01:05
4977f55
Код
Авторство
О чём код?
#! /bin/sh # # Testing various shell script invocations. #---------------------------------------------------------------------------- # Shell scripts that should fail #---------------------------------------------------------------------------- LC_ALL=C echo "Execute a directory" ./x86/ echo "Execute a non-executable file" ./shell.vgtest echo "Execute a script with a bad interpreter name" ./shell_badinterp echo "Execute a binary file" ./shell_binaryfile echo "Execute a non-existent file" ./shell_nosuchfile echo "Execute a non-existent file (2)" shell_nosuchfile #---------------------------------------------------------------------------- # Shell scripts that should pass #---------------------------------------------------------------------------- echo "Execute a valid script with a #! line" ./shell_valid1 echo "Execute a valid script without a #! line" ./nointerp1 echo "Execute a valid script with #! but no interpname" ./nointerp2 echo "Execute a zero-length file" ./shell_zerolength