/rebar3_2208

An application to test rebar3 issue 2208

Primary LanguageErlangApache License 2.0Apache-2.0

test_script

A test repo OTP application for bin/START upgrade VERSION failed when using sys.config.src and vm.args.src #2208

Get repos

git clone https://github.com/qingchuwudi/test_script

download rebar3:

cd test_script
wget https://s3.amazonaws.com/rebar3/rebar3 && chmod +x ./rebar3

Environment

export TEST_SCRIPT_NODE_NAME=hello_2208
export TEST_CONF="\"hello_conf\""

Old Version

package:

git checkout 0.1.0
rebar3 as prod tar

run:

mkdir /tmp/test_script
tar xzf `pwd`/_build/prod/rel/test_script/test_script-0.1.0.tar.gz -C /tmp/test_script/
/tmp/test_script/bin/test_script start

check:

$ /tmp/test_script/bin/test_script versions
Installed versions:
* 0.1.0 permanent

New Version

package:

git checkout 0.1.1
rebar3 as prod release
rebar3 as prod appup generate --previous_version 0.1.0
rebar3 as prod relup tar

install (or upgrade):

cp `pwd`/_build/prod/rel/test_script/test_script-0.1.1.tar.gz /tmp/test_script/releases/
/tmp/test_script/bin/test_script install 0.1.1

check(if not crash):

$ /tmp/test_script/bin/test_script versions
Installed versions:
* 0.1.1 permanent
* 0.1.0 old