diff --git a/autotests/freecell_solver.cpp b/autotests/freecell_solver.cpp index 8a5063b..1e081af 100644 --- a/autotests/freecell_solver.cpp +++ b/autotests/freecell_solver.cpp @@ -1,45 +1,45 @@ /* Copyright (c) 2019 Shlomi Fish * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software without * restriction, including without limitation the rights to use, * copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following * conditions: * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR * OTHER DEALINGS IN THE SOFTWARE. */ #include #include class TestSolver: public QObject { Q_OBJECT private slots: void runSolver(); }; void TestSolver::runSolver() { QProcess kpat; const char *const deal = "830910836"; - kpat.start(QStringLiteral("../kpat"), QStringList() << QStringLiteral("--start") << deal << QStringLiteral("--end") << deal << QStringLiteral("--solve") << QStringLiteral("3")); + kpat.start(QStringLiteral("../bin/kpat"), QStringList() << QStringLiteral("--start") << deal << QStringLiteral("--end") << deal << QStringLiteral("--solve") << QStringLiteral("3")); QCOMPARE(kpat.waitForFinished(), true); QCOMPARE(kpat.exitStatus(), QProcess::NormalExit); QCOMPARE(kpat.exitCode(), 0); } QTEST_MAIN(TestSolver) #include "freecell_solver.moc" diff --git a/autotests/solve_by_name.cpp b/autotests/solve_by_name.cpp index 7d07dc6..dd1b3a6 100644 --- a/autotests/solve_by_name.cpp +++ b/autotests/solve_by_name.cpp @@ -1,44 +1,44 @@ /* Copyright (c) 2019 Shlomi Fish * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software without * restriction, including without limitation the rights to use, * copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following * conditions: * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR * OTHER DEALINGS IN THE SOFTWARE. */ #include #include class TestSolver: public QObject { Q_OBJECT private slots: void runSolver(); }; void TestSolver::runSolver() { QProcess kpat; - kpat.start(QStringLiteral("../kpat"), QStringList() << QStringLiteral("--start") << "1" << QStringLiteral("--end") << "3" << QStringLiteral("--solve") << QStringLiteral("Freecell")); + kpat.start(QStringLiteral("../bin/kpat"), QStringList() << QStringLiteral("--start") << "1" << QStringLiteral("--end") << "3" << QStringLiteral("--solve") << QStringLiteral("Freecell")); QCOMPARE(kpat.waitForFinished(), true); QCOMPARE(kpat.exitStatus(), QProcess::NormalExit); QCOMPARE(kpat.exitCode(), 0); } QTEST_MAIN(TestSolver) #include "solve_by_name.moc"