@@ -69,7 +69,7 @@ groups() ->
69
69
[tar_options , relname_tar , normal_tar , no_mod_vsn_tar , system_files_tar ,
70
70
system_src_file_tar , invalid_system_files_tar , variable_tar ,
71
71
src_tests_tar , var_tar , exref_tar , link_tar , no_sasl_tar ,
72
- otp_9507_path_ebin , additional_files_tar , erts_tar ]},
72
+ otp_9507_path_ebin , additional_files_tar , erts_tar , appup_tar ]},
73
73
{relup , [],
74
74
[normal_relup , restart_relup , abnormal_relup , no_sasl_relup ,
75
75
no_appup_relup , bad_appup_relup , app_start_type_relup , regexp_relup ,
@@ -1571,6 +1571,28 @@ otp_9507_path_ebin(Config) when is_list(Config) ->
1571
1571
1572
1572
ok .
1573
1573
1574
+ % % make_tar: Check application upgrade file included
1575
+ appup_tar (Config ) when is_list (Config ) ->
1576
+ {ok , OldDir } = file :get_cwd (),
1577
+
1578
+ {LatestDir , LatestName } = create_script (latest_no_mod_vsn ,Config ),
1579
+
1580
+ DataDir = filename :absname (? copydir ),
1581
+ LibDir = fname ([DataDir , d_normal , lib ]),
1582
+ P = [fname ([LibDir , 'db-3.1' , ebin ]),
1583
+ fname ([LibDir , 'fe-3.1' , ebin ])],
1584
+
1585
+ ok = file :set_cwd (LatestDir ),
1586
+
1587
+ {ok , _ , []} = systools :make_script (LatestName , [silent , {path , P }, {script_name , " start" }]),
1588
+ ok = systools :make_tar (LatestName , [{path , P }]),
1589
+ ok = check_tar (fname ([lib ,'db-3.1' ,ebin ,'db.appup' ]), LatestName ),
1590
+ {ok , _ , []} = systools :make_tar (LatestName , [{path , P }, silent ]),
1591
+ ok = check_tar (fname ([lib ,'fe-3.1' ,ebin ,'fe.appup' ]), LatestName ),
1592
+
1593
+ ok = file :set_cwd (OldDir ),
1594
+ ok .
1595
+
1574
1596
1575
1597
% % make_relup: Check normal case
1576
1598
normal_relup (Config ) when is_list (Config ) ->
0 commit comments