Skip to content

Instantly share code, notes, and snippets.

@amtal
Created August 30, 2011 23:55
Show Gist options
  • Save amtal/1182439 to your computer and use it in GitHub Desktop.
Save amtal/1182439 to your computer and use it in GitHub Desktop.
Check that a release upgrade works and touches the expected applications.
Rel=fun(Vsn) ->
release_handler:unpack_release("eg_"++Vsn),
A = application:which_applications(),
{ok,OldVsn,[]} = release_handler:install_release(Vsn),
B = application:which_applications(),
Delta = lists:zip(A--B,B--A),
[{relup,OldVsn,Vsn}
,{appups,[{App,From,To}||{{App,_,From},{App,_,To}}<-Delta]}
]
end.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment