diff --git a/src/commands/debug_files/mod.rs b/src/commands/debug_files/mod.rs index 04f475e766..7464550855 100644 --- a/src/commands/debug_files/mod.rs +++ b/src/commands/debug_files/mod.rs @@ -3,16 +3,16 @@ use clap::{ArgMatches, Command}; pub mod bundle_sources; pub mod check; -pub mod dump_sources; pub mod find; +pub mod print_sources; pub mod upload; macro_rules! each_subcommand { ($mac:ident) => { $mac!(bundle_sources); $mac!(check); - $mac!(dump_sources); $mac!(find); + $mac!(print_sources); $mac!(upload); }; } diff --git a/src/commands/debug_files/dump_sources.rs b/src/commands/debug_files/print_sources.rs similarity index 100% rename from src/commands/debug_files/dump_sources.rs rename to src/commands/debug_files/print_sources.rs diff --git a/tests/integration/_cases/debug_files/debug_files-help.trycmd b/tests/integration/_cases/debug_files/debug_files-help.trycmd index 525c4cbbbe..7b89150070 100644 --- a/tests/integration/_cases/debug_files/debug_files-help.trycmd +++ b/tests/integration/_cases/debug_files/debug_files-help.trycmd @@ -21,9 +21,9 @@ OPTIONS: SUBCOMMANDS: bundle-sources Create a source bundle for a given debug information file check Check the debug info file at a given path. - dump-sources Print source files linked by the given debug info file. find Locate debug information files for given debug identifiers. help Print this message or the help of the given subcommand(s) + print-sources Print source files linked by the given debug info file. upload Upload debugging information files. ``` diff --git a/tests/integration/_cases/debug_files/debug_files-no-subcommand.trycmd b/tests/integration/_cases/debug_files/debug_files-no-subcommand.trycmd index a97ab59fd6..42ad4a8a18 100644 --- a/tests/integration/_cases/debug_files/debug_files-no-subcommand.trycmd +++ b/tests/integration/_cases/debug_files/debug_files-no-subcommand.trycmd @@ -21,9 +21,9 @@ OPTIONS: SUBCOMMANDS: bundle-sources Create a source bundle for a given debug information file check Check the debug info file at a given path. - dump-sources Print source files linked by the given debug info file. find Locate debug information files for given debug identifiers. help Print this message or the help of the given subcommand(s) + print-sources Print source files linked by the given debug info file. upload Upload debugging information files. ``` diff --git a/tests/integration/_cases/debug_files/debug_files-dump_sources-dll-embedded-ppdb-with-sources.trycmd b/tests/integration/_cases/debug_files/debug_files-print_sources-dll-embedded-ppdb-with-sources.trycmd similarity index 85% rename from tests/integration/_cases/debug_files/debug_files-dump_sources-dll-embedded-ppdb-with-sources.trycmd rename to tests/integration/_cases/debug_files/debug_files-print_sources-dll-embedded-ppdb-with-sources.trycmd index 3e6687a4a3..057e45d867 100644 --- a/tests/integration/_cases/debug_files/debug_files-dump_sources-dll-embedded-ppdb-with-sources.trycmd +++ b/tests/integration/_cases/debug_files/debug_files-print_sources-dll-embedded-ppdb-with-sources.trycmd @@ -1,5 +1,5 @@ ``` -$ sentry-cli debug-files dump-sources tests/integration/_fixtures/Sentry.Samples.Console.Basic-embedded-ppdb-with-sources.dll +$ sentry-cli debug-files print-sources tests/integration/_fixtures/Sentry.Samples.Console.Basic-embedded-ppdb-with-sources.dll ? success pe 623535c7-c0ea-4dee-b99b-4669e99a7ecc-a878d1fa has no sources. portablepdb 623535c7-c0ea-4dee-b99b-4669e99a7ecc-a878d1fa references sources: diff --git a/tests/integration/_cases/debug_files/debug_files-dump_sources-ppdb.trycmd b/tests/integration/_cases/debug_files/debug_files-print_sources-ppdb.trycmd similarity index 87% rename from tests/integration/_cases/debug_files/debug_files-dump_sources-ppdb.trycmd rename to tests/integration/_cases/debug_files/debug_files-print_sources-ppdb.trycmd index fc7ace6e04..0173f06da2 100644 --- a/tests/integration/_cases/debug_files/debug_files-dump_sources-ppdb.trycmd +++ b/tests/integration/_cases/debug_files/debug_files-print_sources-ppdb.trycmd @@ -1,5 +1,5 @@ ``` -$ sentry-cli debug-files dump-sources tests/integration/_fixtures/Sentry.Samples.Console.Basic.pdb +$ sentry-cli debug-files print-sources tests/integration/_fixtures/Sentry.Samples.Console.Basic.pdb ? success portablepdb 54fdf14a-41a1-426a-a073-8185e11a89d6-83920e6f references sources: C:/dev/sentry-dotnet/samples/Sentry.Samples.Console.Basic/Program.cs diff --git a/tests/integration/debug_files/dump_sources.rs b/tests/integration/debug_files/dump_sources.rs deleted file mode 100644 index 865b11f350..0000000000 --- a/tests/integration/debug_files/dump_sources.rs +++ /dev/null @@ -1,7 +0,0 @@ -use crate::integration::register_test; - -#[test] -fn command_debug_files_dump_sources() { - register_test("debug_files/debug_files-dump_sources-dll-embedded-ppdb-with-sources.trycmd"); - register_test("debug_files/debug_files-dump_sources-ppdb.trycmd"); -} diff --git a/tests/integration/debug_files/mod.rs b/tests/integration/debug_files/mod.rs index 0e5408f1dc..b071e8902b 100644 --- a/tests/integration/debug_files/mod.rs +++ b/tests/integration/debug_files/mod.rs @@ -1,7 +1,7 @@ use crate::integration::register_test; mod check; -mod dump_sources; +mod print_sources; mod upload; #[test] diff --git a/tests/integration/debug_files/print_sources.rs b/tests/integration/debug_files/print_sources.rs new file mode 100644 index 0000000000..4252cdd8a8 --- /dev/null +++ b/tests/integration/debug_files/print_sources.rs @@ -0,0 +1,11 @@ +use crate::integration::register_test; + +#[test] +fn command_debug_files_print_sources_ppdb() { + register_test("debug_files/debug_files-print_sources-ppdb.trycmd"); +} + +#[test] +fn command_debug_files_print_sources_dll_embedded_ppdb_with_sources() { + register_test("debug_files/debug_files-print_sources-dll-embedded-ppdb-with-sources.trycmd"); +}