Skip to content

Commit

Permalink
remove cmake as submodule
Browse files Browse the repository at this point in the history
  • Loading branch information
ArdenButterfield committed Aug 30, 2024
1 parent f852c98 commit 13fb85a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,3 @@
[submodule "opus"]
path = opus
url = https://github.com/xiph/opus.git
[submodule "cmake-includes"]
path = cmake-includes
url = https://github.com/sudara/cmake-includes.git
12 changes: 11 additions & 1 deletion tests/PluginBasics.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@

#include "helpers/test_helpers.h"

#include <PluginProcessor.h>
#include <catch2/catch_test_macros.hpp>
#include <catch2/matchers/catch_matchers_string.hpp>
Expand All @@ -9,20 +12,27 @@ TEST_CASE ("one is equal to one", "[dummy]")

TEST_CASE ("Plugin instance", "[instance]")
{
MaimAudioProcessor testPlugin;

// This lets us use JUCE's MessageManager without leaking.
// PluginProcessor might need this if you use the APVTS for example.
// You'll also need it for tests that rely on juce::Graphics, juce::Timer, etc.
auto gui = juce::ScopedJuceInitialiser_GUI {};

MaimAudioProcessor testPlugin;


SECTION ("name")
{
CHECK_THAT (testPlugin.getName().toStdString(),
Catch::Matchers::Equals ("Maim"));
}
}

TEST_CASE("opus encode/decode", "[opusencodedecode]")
{

}


#ifdef PAMPLEJUCE_IPP
#include <ipp.h>
Expand Down
4 changes: 2 additions & 2 deletions tests/helpers/test_helpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
});
*/
[[maybe_unused]] void runWithinPluginEditor (const std::function<void (PluginProcessor& plugin)>& testCode)
[[maybe_unused]] void runWithinPluginEditor (const std::function<void (MaimAudioProcessor& plugin)>& testCode)
{
PluginProcessor plugin;
MaimAudioProcessor plugin;
auto gui = juce::ScopedJuceInitialiser_GUI {};
auto editor = plugin.createEditorIfNeeded();

Expand Down

0 comments on commit 13fb85a

Please sign in to comment.