From 517dab7d055d2084cfd55e7ab2c8722860cf2b62 Mon Sep 17 00:00:00 2001 From: Francisco Miamoto Date: Sun, 12 Sep 2021 16:59:38 -0300 Subject: [PATCH] add annotated tag integration test --- .../tags4/expected/.git_keep/COMMIT_EDITMSG | 1 + .../tags4/expected/.git_keep/FETCH_HEAD | 0 test/integration/tags4/expected/.git_keep/HEAD | 1 + .../integration/tags4/expected/.git_keep/config | 8 ++++++++ .../tags4/expected/.git_keep/description | 1 + test/integration/tags4/expected/.git_keep/index | Bin 0 -> 209 bytes .../tags4/expected/.git_keep/info/exclude | 6 ++++++ .../tags4/expected/.git_keep/logs/HEAD | 2 ++ .../expected/.git_keep/logs/refs/heads/master | 2 ++ .../1e/3e67b999db1576ad1ee08bf4f02bdf29e49442 | Bin 0 -> 50 bytes .../38/143ad4a0fe2ab6ee53c2ef89a5d9e2bd9535da | Bin 0 -> 21 bytes .../3a/64c1649510c0dcaca3815291e3d43980f1bb99 | Bin 0 -> 673 bytes .../56/18f31c7550111a878fb63f6079e8462ae94c42 | 2 ++ .../a5/bce3fd2565d8f458555a0c6f42d0504a848bd5 | Bin 0 -> 21 bytes .../d0/76cc9cc09acaa2d36fbc7a95fd3e2306494641 | 2 ++ .../db/03048dbacea165536b49c030c9aaca108cc571 | Bin 0 -> 129 bytes .../f0/4e94a59e6159acf554fc1268742df10fe6b0d3 | Bin 0 -> 639 bytes .../tags4/expected/.git_keep/packed-refs | 1 + .../tags4/expected/.git_keep/refs/heads/master | 1 + .../tags4/expected/.git_keep/refs/tags/atag2 | 1 + test/integration/tags4/expected/file0 | 1 + test/integration/tags4/expected/file1 | 1 + test/integration/tags4/recording.json | 1 + test/integration/tags4/setup.sh | 16 ++++++++++++++++ test/integration/tags4/test.json | 1 + 25 files changed, 48 insertions(+) create mode 100644 test/integration/tags4/expected/.git_keep/COMMIT_EDITMSG create mode 100644 test/integration/tags4/expected/.git_keep/FETCH_HEAD create mode 100644 test/integration/tags4/expected/.git_keep/HEAD create mode 100644 test/integration/tags4/expected/.git_keep/config create mode 100644 test/integration/tags4/expected/.git_keep/description create mode 100644 test/integration/tags4/expected/.git_keep/index create mode 100644 test/integration/tags4/expected/.git_keep/info/exclude create mode 100644 test/integration/tags4/expected/.git_keep/logs/HEAD create mode 100644 test/integration/tags4/expected/.git_keep/logs/refs/heads/master create mode 100644 test/integration/tags4/expected/.git_keep/objects/1e/3e67b999db1576ad1ee08bf4f02bdf29e49442 create mode 100644 test/integration/tags4/expected/.git_keep/objects/38/143ad4a0fe2ab6ee53c2ef89a5d9e2bd9535da create mode 100644 test/integration/tags4/expected/.git_keep/objects/3a/64c1649510c0dcaca3815291e3d43980f1bb99 create mode 100644 test/integration/tags4/expected/.git_keep/objects/56/18f31c7550111a878fb63f6079e8462ae94c42 create mode 100644 test/integration/tags4/expected/.git_keep/objects/a5/bce3fd2565d8f458555a0c6f42d0504a848bd5 create mode 100644 test/integration/tags4/expected/.git_keep/objects/d0/76cc9cc09acaa2d36fbc7a95fd3e2306494641 create mode 100644 test/integration/tags4/expected/.git_keep/objects/db/03048dbacea165536b49c030c9aaca108cc571 create mode 100644 test/integration/tags4/expected/.git_keep/objects/f0/4e94a59e6159acf554fc1268742df10fe6b0d3 create mode 100644 test/integration/tags4/expected/.git_keep/packed-refs create mode 100644 test/integration/tags4/expected/.git_keep/refs/heads/master create mode 100644 test/integration/tags4/expected/.git_keep/refs/tags/atag2 create mode 100644 test/integration/tags4/expected/file0 create mode 100644 test/integration/tags4/expected/file1 create mode 100644 test/integration/tags4/recording.json create mode 100644 test/integration/tags4/setup.sh create mode 100644 test/integration/tags4/test.json diff --git a/test/integration/tags4/expected/.git_keep/COMMIT_EDITMSG b/test/integration/tags4/expected/.git_keep/COMMIT_EDITMSG new file mode 100644 index 000000000..e2129701f --- /dev/null +++ b/test/integration/tags4/expected/.git_keep/COMMIT_EDITMSG @@ -0,0 +1 @@ +file1 diff --git a/test/integration/tags4/expected/.git_keep/FETCH_HEAD b/test/integration/tags4/expected/.git_keep/FETCH_HEAD new file mode 100644 index 000000000..e69de29bb diff --git a/test/integration/tags4/expected/.git_keep/HEAD b/test/integration/tags4/expected/.git_keep/HEAD new file mode 100644 index 000000000..cb089cd89 --- /dev/null +++ b/test/integration/tags4/expected/.git_keep/HEAD @@ -0,0 +1 @@ +ref: refs/heads/master diff --git a/test/integration/tags4/expected/.git_keep/config b/test/integration/tags4/expected/.git_keep/config new file mode 100644 index 000000000..596ebaeb3 --- /dev/null +++ b/test/integration/tags4/expected/.git_keep/config @@ -0,0 +1,8 @@ +[core] + repositoryformatversion = 0 + filemode = true + bare = false + logallrefupdates = true +[user] + email = CI@example.com + name = CI diff --git a/test/integration/tags4/expected/.git_keep/description b/test/integration/tags4/expected/.git_keep/description new file mode 100644 index 000000000..498b267a8 --- /dev/null +++ b/test/integration/tags4/expected/.git_keep/description @@ -0,0 +1 @@ +Unnamed repository; edit this file 'description' to name the repository. diff --git a/test/integration/tags4/expected/.git_keep/index b/test/integration/tags4/expected/.git_keep/index new file mode 100644 index 0000000000000000000000000000000000000000..48e219dd6b89210501c1d679b806dd8477bf0b3d GIT binary patch literal 209 zcmZ?q402{*U|<5_M7!vl95RdiU^D|GGc&_2Z8rvn#w834%r79Afz3k1>dJzDTHD?Q zA9~-p^yZ_zQ%!F%u%>0^q#6K?VPF91=X{ni4@N`H@jy3c>7K`bRa0+#i3pA2$#=RC z;MLN76=IGd*qo3cS63iIlEFy9fa^lpnK=h$omzA`e^1razjn%Oo^Fm$8d%;dA68v= QnCs@BUN0xZc!qO40L)@XQ~&?~ literal 0 HcmV?d00001 diff --git a/test/integration/tags4/expected/.git_keep/info/exclude b/test/integration/tags4/expected/.git_keep/info/exclude new file mode 100644 index 000000000..a5196d1be --- /dev/null +++ b/test/integration/tags4/expected/.git_keep/info/exclude @@ -0,0 +1,6 @@ +# git ls-files --others --exclude-from=.git/info/exclude +# Lines that start with '#' are comments. +# For a project mostly in C, the following would be a good set of +# exclude patterns (uncomment them if you want to use them): +# *.[oa] +# *~ diff --git a/test/integration/tags4/expected/.git_keep/logs/HEAD b/test/integration/tags4/expected/.git_keep/logs/HEAD new file mode 100644 index 000000000..7544ecd9d --- /dev/null +++ b/test/integration/tags4/expected/.git_keep/logs/HEAD @@ -0,0 +1,2 @@ +0000000000000000000000000000000000000000 f04e94a59e6159acf554fc1268742df10fe6b0d3 CI 1631476697 -0300 commit (initial): file0 +f04e94a59e6159acf554fc1268742df10fe6b0d3 3a64c1649510c0dcaca3815291e3d43980f1bb99 CI 1631476697 -0300 commit: file1 diff --git a/test/integration/tags4/expected/.git_keep/logs/refs/heads/master b/test/integration/tags4/expected/.git_keep/logs/refs/heads/master new file mode 100644 index 000000000..7544ecd9d --- /dev/null +++ b/test/integration/tags4/expected/.git_keep/logs/refs/heads/master @@ -0,0 +1,2 @@ +0000000000000000000000000000000000000000 f04e94a59e6159acf554fc1268742df10fe6b0d3 CI 1631476697 -0300 commit (initial): file0 +f04e94a59e6159acf554fc1268742df10fe6b0d3 3a64c1649510c0dcaca3815291e3d43980f1bb99 CI 1631476697 -0300 commit: file1 diff --git a/test/integration/tags4/expected/.git_keep/objects/1e/3e67b999db1576ad1ee08bf4f02bdf29e49442 b/test/integration/tags4/expected/.git_keep/objects/1e/3e67b999db1576ad1ee08bf4f02bdf29e49442 new file mode 100644 index 0000000000000000000000000000000000000000..79fcadf67fdecb0f0cffca7ff27b2ae5c031e4d7 GIT binary patch literal 50 zcmV-20L}k+0V^p=O;s>9W-v4`Ff%bxNXyJgHDIt1vAVM0pVqc_!H3>=F1`6^?^M%U I033l4YT~68jQ{`u literal 0 HcmV?d00001 diff --git a/test/integration/tags4/expected/.git_keep/objects/38/143ad4a0fe2ab6ee53c2ef89a5d9e2bd9535da b/test/integration/tags4/expected/.git_keep/objects/38/143ad4a0fe2ab6ee53c2ef89a5d9e2bd9535da new file mode 100644 index 0000000000000000000000000000000000000000..06c9cb73d7a8ed6841ce407bd6bb15235c8fa15c GIT binary patch literal 21 ccmb|y2)08mZ`J^%m! literal 0 HcmV?d00001 diff --git a/test/integration/tags4/expected/.git_keep/objects/3a/64c1649510c0dcaca3815291e3d43980f1bb99 b/test/integration/tags4/expected/.git_keep/objects/3a/64c1649510c0dcaca3815291e3d43980f1bb99 new file mode 100644 index 0000000000000000000000000000000000000000..25a275337756aeb28dd63d8ff93c90d3f6c9d7ed GIT binary patch literal 673 zcmV;S0$%-i0gaN$4y#5GMYHBBdXHYr&@><=Q81GYn8APz?4TKpnGM+3U;ms$*=3Ph z9@W(?sSX~xu3mt^)4wc_q5wI?BaB6iDKW)q%H%96Gt8$VSLSTNuoQwKM35%N^ilK+ zC@ENoFy+Jo(cCvuavUr%%^-n?OkUDdS)h!{St4DR+wcJL5&R|}|17q&8{6VnJam5m z8nHCw5fXXugJLO)_|orDOYuL~tFfBv3jFwM_NsogfvdZ~KkBv=glF|{P5=Vbp8nZO z(q5LNT&q=;Ir;oPu%1jhO&a9bD&%hQ`qotgYEq|?SFw@gs`38i1W*kGUGF6^{%H5U z(l|8Y9UN4aCO&T;mMzj`%RD=SRxUHV-gI5!%NH%%U4sua4;ulJdx1Q?b!|#E+bKNJ z{V49vA5y<(+w^hl(azj)emuiN#H}ZKT&*RuG;)7lJQdydDFK$VeYrDi?_A+fKO5+n zrJ>!7__Cl@{7li@lf8LNjL?rugvns!jFTT)ucGc4W+_hukacegqJvpq)uTq0z9TBm zv^rFnjrT?nSkm9otI4siA!fQg`QbCiA$cQ!pq#IR-eW84HlySq-UYL2R&5e)tpCE} zA>me}9FihX@X)?;-D#s43R`N-jWCw+_nU|s6o=gt;P;*~BH|whRa^Nl1BtS33!3-| Hx5N&z0+&(- literal 0 HcmV?d00001 diff --git a/test/integration/tags4/expected/.git_keep/objects/56/18f31c7550111a878fb63f6079e8462ae94c42 b/test/integration/tags4/expected/.git_keep/objects/56/18f31c7550111a878fb63f6079e8462ae94c42 new file mode 100644 index 000000000..ffbba8d79 --- /dev/null +++ b/test/integration/tags4/expected/.git_keep/objects/56/18f31c7550111a878fb63f6079e8462ae94c42 @@ -0,0 +1,2 @@ +xA +0E]&M1&1(6 -3P7T`;!bO(8 ہ.8RϪ K)jj6\o.KMyK.Nh?+h'i \ No newline at end of file diff --git a/test/integration/tags4/expected/.git_keep/objects/a5/bce3fd2565d8f458555a0c6f42d0504a848bd5 b/test/integration/tags4/expected/.git_keep/objects/a5/bce3fd2565d8f458555a0c6f42d0504a848bd5 new file mode 100644 index 0000000000000000000000000000000000000000..285df3e5fbab12262e28d85e78af8a31cd0024c1 GIT binary patch literal 21 ccmb`~^A08nuUMF0Q* literal 0 HcmV?d00001 diff --git a/test/integration/tags4/expected/.git_keep/objects/d0/76cc9cc09acaa2d36fbc7a95fd3e2306494641 b/test/integration/tags4/expected/.git_keep/objects/d0/76cc9cc09acaa2d36fbc7a95fd3e2306494641 new file mode 100644 index 000000000..2e9066287 --- /dev/null +++ b/test/integration/tags4/expected/.git_keep/objects/d0/76cc9cc09acaa2d36fbc7a95fd3e2306494641 @@ -0,0 +1,2 @@ +x+)JMU03c040031QHI5`ֶww.hT[H + yW5Ɨ(| ^-W(x9 \ No newline at end of file diff --git a/test/integration/tags4/expected/.git_keep/objects/db/03048dbacea165536b49c030c9aaca108cc571 b/test/integration/tags4/expected/.git_keep/objects/db/03048dbacea165536b49c030c9aaca108cc571 new file mode 100644 index 0000000000000000000000000000000000000000..59aa04b0e19f6e87bd87f806956dd7a749697c18 GIT binary patch literal 129 zcmV-{0Dk{?0Tql(4#FT509|v6cLB|N7$zw72rfQD literal 0 HcmV?d00001 diff --git a/test/integration/tags4/expected/.git_keep/objects/f0/4e94a59e6159acf554fc1268742df10fe6b0d3 b/test/integration/tags4/expected/.git_keep/objects/f0/4e94a59e6159acf554fc1268742df10fe6b0d3 new file mode 100644 index 0000000000000000000000000000000000000000..e15c21c24c5235564ba16e944388c150725dd49c GIT binary patch literal 639 zcmV-_0)YK^0gaN$uA4v*MYHBBdT%8UFjGrO6u=Dzj0eDAvtwumLz}@&_SeTrlwB67 z{xhcKvDSF$N4?V?m4|glWw1q7bDF#5Tnz0abkmFb?8i%6k zfog!Ss__Fa5ov4uC27cazzA!G69oZ^;4{6ZY3fbiAp`!;^}Nj=Wez_78U^Xb9vt-} za1DJgduIpz<`kendD35sEGw!kr&@^+YrCT2?It$rI*sGk`I#@S<5Nc_r^y7Z0$9mv zUY-7O3LsOkule-h#2Nc?^|Ncdrj5VpR55Utk4>d&((Q-}Vm~(SViEIHF}>NY2Q<~=HOmycOt`VeZSA;n%>?Mv|1gO>ta=M`XMrh zNTR@S=%3>)n>=yfKJGo~FWo~!;>R=Ojk6=gtH^Boa}~~A-7`M9G1GvznMf-<1?sDh zhror}E;E(aNq@3q+Rp1SFyPI*D)jYvDIC7NMwZV8ez4`5OEwTED*A;N=wZU0JZ6ryqhUF~rRX{Q$UadJAZ^Q8(bJJuy-1~}Vb9-JIub{v; Ze~2>bkArBx`ImuIR@RuNegcZa1OzUcKXCv6 literal 0 HcmV?d00001 diff --git a/test/integration/tags4/expected/.git_keep/packed-refs b/test/integration/tags4/expected/.git_keep/packed-refs new file mode 100644 index 000000000..250f18738 --- /dev/null +++ b/test/integration/tags4/expected/.git_keep/packed-refs @@ -0,0 +1 @@ +# pack-refs with: peeled fully-peeled sorted diff --git a/test/integration/tags4/expected/.git_keep/refs/heads/master b/test/integration/tags4/expected/.git_keep/refs/heads/master new file mode 100644 index 000000000..2a642862a --- /dev/null +++ b/test/integration/tags4/expected/.git_keep/refs/heads/master @@ -0,0 +1 @@ +3a64c1649510c0dcaca3815291e3d43980f1bb99 diff --git a/test/integration/tags4/expected/.git_keep/refs/tags/atag2 b/test/integration/tags4/expected/.git_keep/refs/tags/atag2 new file mode 100644 index 000000000..131e3c98f --- /dev/null +++ b/test/integration/tags4/expected/.git_keep/refs/tags/atag2 @@ -0,0 +1 @@ +db03048dbacea165536b49c030c9aaca108cc571 diff --git a/test/integration/tags4/expected/file0 b/test/integration/tags4/expected/file0 new file mode 100644 index 000000000..38143ad4a --- /dev/null +++ b/test/integration/tags4/expected/file0 @@ -0,0 +1 @@ +test0 diff --git a/test/integration/tags4/expected/file1 b/test/integration/tags4/expected/file1 new file mode 100644 index 000000000..a5bce3fd2 --- /dev/null +++ b/test/integration/tags4/expected/file1 @@ -0,0 +1 @@ +test1 diff --git a/test/integration/tags4/recording.json b/test/integration/tags4/recording.json new file mode 100644 index 000000000..4c7e689c5 --- /dev/null +++ b/test/integration/tags4/recording.json @@ -0,0 +1 @@ +{"KeyEvents":[{"Timestamp":928,"Mod":0,"Key":256,"Ch":52},{"Timestamp":1864,"Mod":0,"Key":256,"Ch":84},{"Timestamp":2752,"Mod":0,"Key":258,"Ch":0},{"Timestamp":2936,"Mod":0,"Key":13,"Ch":13},{"Timestamp":5085,"Mod":0,"Key":256,"Ch":97},{"Timestamp":5306,"Mod":0,"Key":256,"Ch":116},{"Timestamp":5392,"Mod":0,"Key":256,"Ch":97},{"Timestamp":5526,"Mod":0,"Key":256,"Ch":103},{"Timestamp":5754,"Mod":0,"Key":256,"Ch":49},{"Timestamp":5983,"Mod":0,"Key":13,"Ch":13},{"Timestamp":7385,"Mod":0,"Key":256,"Ch":116},{"Timestamp":7489,"Mod":0,"Key":256,"Ch":97},{"Timestamp":7808,"Mod":0,"Key":256,"Ch":103},{"Timestamp":7911,"Mod":0,"Key":256,"Ch":32},{"Timestamp":8171,"Mod":0,"Key":256,"Ch":109},{"Timestamp":8240,"Mod":0,"Key":256,"Ch":101},{"Timestamp":8404,"Mod":0,"Key":256,"Ch":115},{"Timestamp":8572,"Mod":0,"Key":256,"Ch":115},{"Timestamp":8656,"Mod":0,"Key":256,"Ch":97},{"Timestamp":8749,"Mod":0,"Key":256,"Ch":103},{"Timestamp":8832,"Mod":0,"Key":256,"Ch":101},{"Timestamp":10162,"Mod":0,"Key":256,"Ch":33},{"Timestamp":10432,"Mod":0,"Key":13,"Ch":13},{"Timestamp":11766,"Mod":0,"Key":256,"Ch":106},{"Timestamp":13092,"Mod":0,"Key":256,"Ch":84},{"Timestamp":14177,"Mod":0,"Key":258,"Ch":0},{"Timestamp":14482,"Mod":0,"Key":13,"Ch":13},{"Timestamp":15660,"Mod":0,"Key":256,"Ch":97},{"Timestamp":15783,"Mod":0,"Key":256,"Ch":116},{"Timestamp":15857,"Mod":0,"Key":256,"Ch":97},{"Timestamp":15991,"Mod":0,"Key":256,"Ch":103},{"Timestamp":17243,"Mod":0,"Key":256,"Ch":50},{"Timestamp":17536,"Mod":0,"Key":13,"Ch":13},{"Timestamp":19574,"Mod":0,"Key":256,"Ch":115},{"Timestamp":19641,"Mod":0,"Key":256,"Ch":101},{"Timestamp":19834,"Mod":0,"Key":256,"Ch":99},{"Timestamp":19863,"Mod":0,"Key":256,"Ch":111},{"Timestamp":19958,"Mod":0,"Key":256,"Ch":110},{"Timestamp":20013,"Mod":0,"Key":256,"Ch":100},{"Timestamp":20092,"Mod":0,"Key":256,"Ch":32},{"Timestamp":20181,"Mod":0,"Key":256,"Ch":109},{"Timestamp":20265,"Mod":0,"Key":256,"Ch":101},{"Timestamp":20436,"Mod":0,"Key":256,"Ch":115},{"Timestamp":20590,"Mod":0,"Key":256,"Ch":115},{"Timestamp":20675,"Mod":0,"Key":256,"Ch":97},{"Timestamp":20706,"Mod":0,"Key":256,"Ch":103},{"Timestamp":20805,"Mod":0,"Key":256,"Ch":101},{"Timestamp":21237,"Mod":0,"Key":13,"Ch":13},{"Timestamp":22701,"Mod":0,"Key":256,"Ch":51},{"Timestamp":23066,"Mod":0,"Key":256,"Ch":93},{"Timestamp":23235,"Mod":0,"Key":256,"Ch":93},{"Timestamp":24842,"Mod":0,"Key":256,"Ch":106},{"Timestamp":25574,"Mod":0,"Key":256,"Ch":100},{"Timestamp":26166,"Mod":0,"Key":13,"Ch":13},{"Timestamp":27722,"Mod":0,"Key":256,"Ch":113}],"ResizeEvents":[{"Timestamp":0,"Width":211,"Height":42}]} \ No newline at end of file diff --git a/test/integration/tags4/setup.sh b/test/integration/tags4/setup.sh new file mode 100644 index 000000000..75cd7a91b --- /dev/null +++ b/test/integration/tags4/setup.sh @@ -0,0 +1,16 @@ +#!/bin/sh + +cd $1 + +git init + +git config user.email "CI@example.com" +git config user.name "CI" + +echo test0 > file0 +git add . +git commit -am file0 + +echo test1 > file1 +git add . +git commit -am file1 diff --git a/test/integration/tags4/test.json b/test/integration/tags4/test.json new file mode 100644 index 000000000..26a2080c6 --- /dev/null +++ b/test/integration/tags4/test.json @@ -0,0 +1 @@ +{ "description": "annotated tag CRUD", "speed": 5 }