anchor.diff:      case erlang:system_info(otp_release) of
           %% make them never run for now
           V when V =:= "22" ; V =:= "23" ->
  -            [{group, shortname},
  -             {group, longname},
  -             {group, custom_replace_vars},
  +            [{group, custom_replace_vars},
                {group, start_fail},
  -             {group, extension_scripts},
                {group, hooks},
                {group, custom_setup}];
           _ ->
  
positive.code: 
      %% now start/stop the release to make sure the extended script is working
      ?assertMatch({error, ExpectedCode, _}, sh(filename:join([OutputDir, "foo", "bin", "foo daemon"]))).
  
  %%-------------------------------------------------------------------
  %% Helper Functions for extension_script* tests
  %%-------------------------------------------------------------------
  setup_extension_script(Config, ExtensionScript) ->
      LibDir = ?config(lib_dir, Config),
      PrivDir = ?config(priv_dir, Config),
      DirName = rlx_test_utils:create_random_name("start-fail-testcase-output"),
      OutputDir = filename:join(PrivDir, DirName),
      ok = rlx_file_utils:mkdir_p(OutputDir),
  
      rlx_test_utils:create_full_app(OutputDir, "goal_app", "0.0.1",
                                     [stdlib,kernel], []),
  
      RelxConfig= [{release, {foo, "0.0.1"},
                    [goal_app]},
                   {generate_start_script, true},
                   {extended_start_script, true},
                   {extended_start_script_extensions, [
                                                       {bar, "extensions/bar"}
                                                      ]},
                   {overlay, [
                              {copy, "./bar", "bin/extensions/bar"}]}
                  ],
  
      %% write the extension script
      ok = file:write_file(filename:join([OutputDir, "./bar"]),
                           ExtensionScript),
  
      {ok, _State} = relx:build_release(foo, [{root_dir, OutputDir}, {lib_dirs, [OutputDir, LibDir]},
                                              {output_dir, OutputDir} | RelxConfig]),
  
  
      OutputDir.
  
  %%%===================================================================
  %%% Helper Functions
  
negative.code: end_per_suite(_Config) ->
      ok.
  
  init_per_group(start_fail, Config) ->
      PrivDir = ?config(priv_dir, Config),
      DirName = rlx_test_utils:create_random_name("longname-extended-testcase-output"),
  