mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
juceaide: Add basic test
This commit is contained in:
parent
110e23785c
commit
e1b3836f42
2 changed files with 20 additions and 0 deletions
|
|
@ -161,4 +161,17 @@ else()
|
||||||
|
|
||||||
get_filename_component(binary_name "${imported_location}" NAME)
|
get_filename_component(binary_name "${imported_location}" NAME)
|
||||||
set(JUCE_JUCEAIDE_NAME "${binary_name}" CACHE INTERNAL "The name of the juceaide program")
|
set(JUCE_JUCEAIDE_NAME "${binary_name}" CACHE INTERNAL "The name of the juceaide program")
|
||||||
|
|
||||||
|
message(STATUS "Testing juceaide")
|
||||||
|
|
||||||
|
execute_process(COMMAND "${imported_location}" version
|
||||||
|
RESULT_VARIABLE result_variable
|
||||||
|
OUTPUT_VARIABLE output
|
||||||
|
ERROR_VARIABLE output)
|
||||||
|
|
||||||
|
if(result_variable)
|
||||||
|
message(FATAL_ERROR "Testing juceaide failed:\noutput: ${output}")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
message(STATUS "Finished setting up juceaide")
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -526,6 +526,12 @@ int writeHeader (juce::ArgumentList&& args)
|
||||||
return createAndWrite (output.resolveAsFile(), headerText);
|
return createAndWrite (output.resolveAsFile(), headerText);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int printJUCEVersion (juce::ArgumentList&&)
|
||||||
|
{
|
||||||
|
std::cout << juce::SystemStats::getJUCEVersion() << std::endl;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
||||||
int main (int argc, char** argv)
|
int main (int argc, char** argv)
|
||||||
|
|
@ -561,6 +567,7 @@ int main (int argc, char** argv)
|
||||||
{ "pkginfo", writePkgInfo },
|
{ "pkginfo", writePkgInfo },
|
||||||
{ "plist", writePlist },
|
{ "plist", writePlist },
|
||||||
{ "rcfile", writeRcFile },
|
{ "rcfile", writeRcFile },
|
||||||
|
{ "version", printJUCEVersion },
|
||||||
{ "winicon", writeWinIcon }
|
{ "winicon", writeWinIcon }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue