From 523573110b7afc1491c1e67865303da2468bcf0f Mon Sep 17 00:00:00 2001 From: Siri Hansen Date: Mon, 30 Jan 2012 14:43:06 +0100 Subject: [reltool] Add tests for sorting of applications in .rel and .script files OTP-9794 Test cases create_release_sort and create_script_sort are added. The test are temporarily skipped since they detected quite a few bugs that will be corrected with OTP-9792. The following bug is corrected in this commit:' reltool_server did not recognize {App,InclApps} inside a 'rel' specification in the reltool config, e.g. {rel, "myrel", "1.0", [{myapp,[app2]}]}. --- .../test/reltool_server_SUITE_data/sort_apps/x-1.0/ebin/x.app | 7 +++++++ .../test/reltool_server_SUITE_data/sort_apps/y-1.0/ebin/y.app | 7 +++++++ .../test/reltool_server_SUITE_data/sort_apps/z-1.0/ebin/z.app | 8 ++++++++ 3 files changed, 22 insertions(+) create mode 100644 lib/reltool/test/reltool_server_SUITE_data/sort_apps/x-1.0/ebin/x.app create mode 100644 lib/reltool/test/reltool_server_SUITE_data/sort_apps/y-1.0/ebin/y.app create mode 100644 lib/reltool/test/reltool_server_SUITE_data/sort_apps/z-1.0/ebin/z.app (limited to 'lib/reltool/test/reltool_server_SUITE_data') diff --git a/lib/reltool/test/reltool_server_SUITE_data/sort_apps/x-1.0/ebin/x.app b/lib/reltool/test/reltool_server_SUITE_data/sort_apps/x-1.0/ebin/x.app new file mode 100644 index 0000000000..5fa2a92969 --- /dev/null +++ b/lib/reltool/test/reltool_server_SUITE_data/sort_apps/x-1.0/ebin/x.app @@ -0,0 +1,7 @@ +% -*-erlang-*- +{application, x, + [{description, "Application in reltool sort app test - circular dependency"}, + {vsn, "1.0"}, + {modules,[]}, + {registered, []}, + {applications, [kernel, stdlib, y]}]}. diff --git a/lib/reltool/test/reltool_server_SUITE_data/sort_apps/y-1.0/ebin/y.app b/lib/reltool/test/reltool_server_SUITE_data/sort_apps/y-1.0/ebin/y.app new file mode 100644 index 0000000000..c4bc62f55f --- /dev/null +++ b/lib/reltool/test/reltool_server_SUITE_data/sort_apps/y-1.0/ebin/y.app @@ -0,0 +1,7 @@ +% -*-erlang-*- +{application, y, + [{description, "Application in reltool sort app test - circular dependency"}, + {vsn, "1.0"}, + {modules,[]}, + {registered, []}, + {applications, [kernel, stdlib, x]}]}. diff --git a/lib/reltool/test/reltool_server_SUITE_data/sort_apps/z-1.0/ebin/z.app b/lib/reltool/test/reltool_server_SUITE_data/sort_apps/z-1.0/ebin/z.app new file mode 100644 index 0000000000..1622975bf6 --- /dev/null +++ b/lib/reltool/test/reltool_server_SUITE_data/sort_apps/z-1.0/ebin/z.app @@ -0,0 +1,8 @@ +% -*-erlang-*- +{application, z, + [{description, "Application in reltool sort app test - included applications"}, + {vsn, "1.0"}, + {modules,[]}, + {registered, []}, + {applications, [kernel, stdlib]}, + {included_applications, [tools]}]}. -- cgit v1.2.3