File indexing completed on 2024-04-28 05:50:35

0001 /*
0002     SPDX-FileCopyrightText: 2008 Robert Knight <robertknight@gmail.com>
0003     SPDX-FileCopyrightText: 2013 Kurt Hindenburg <kurt.hindenburg@gmail.com>
0004 
0005     SPDX-License-Identifier: GPL-2.0-or-later
0006 */
0007 
0008 #ifndef SHELLCOMMANDTEST_H
0009 #define SHELLCOMMANDTEST_H
0010 
0011 #include <QObject>
0012 
0013 #include "../ShellCommand.h"
0014 
0015 namespace Konsole
0016 {
0017 class ShellCommandTest : public QObject
0018 {
0019     Q_OBJECT
0020 
0021 private Q_SLOTS:
0022     void init();
0023     void cleanup();
0024 
0025     void testConstructorWithOneArguemnt();
0026     void testConstructorWithTwoArguments();
0027     void testExpandEnvironmentVariable();
0028     void testValidEnvCharacter();
0029     void testValidLeadingEnvCharacter();
0030     void testArgumentsWithSpaces();
0031     void testEmptyCommand();
0032 };
0033 
0034 }
0035 
0036 #endif // SHELLCOMMANDTEST_H