diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2016-04-29 10:07:03 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2016-05-04 20:37:44 +0300 |
commit | 057a5d5d435d53166d1b8751748a9ba0a317bee3 (patch) | |
tree | 6770b5ba1566c95e79ad73e845ac4a04c145cbec /tests/manifest | |
parent | d61e9338c8eda118c5f2afd93827be4a84bdc36a (diff) |
Add signature_manifest class
Diffstat (limited to 'tests/manifest')
-rw-r--r-- | tests/manifest/.gitignore | 1 | ||||
-rw-r--r-- | tests/manifest/buildfile | 10 | ||||
-rw-r--r-- | tests/manifest/driver.cxx | 4 | ||||
-rw-r--r-- | tests/manifest/signature | 13 |
4 files changed, 24 insertions, 4 deletions
diff --git a/tests/manifest/.gitignore b/tests/manifest/.gitignore index d0bb148..d9c2bbc 100644 --- a/tests/manifest/.gitignore +++ b/tests/manifest/.gitignore @@ -1,2 +1,3 @@ pdriver rdriver +sdriver diff --git a/tests/manifest/buildfile b/tests/manifest/buildfile index 0696a1c..c417a08 100644 --- a/tests/manifest/buildfile +++ b/tests/manifest/buildfile @@ -7,7 +7,7 @@ # @@ Hack until build2 supports multiple tests. Also remove .gitignore. # -./: exe{pdriver} exe{rdriver} +./: exe{pdriver} exe{rdriver} exe{sdriver} exe{pdriver}: obj{pdriver} exe{pdriver}: test.roundtrip = packages @@ -15,10 +15,14 @@ exe{pdriver}: test.roundtrip = packages exe{rdriver}: obj{rdriver} exe{rdriver}: test.roundtrip = repositories -obj{pdriver rdriver}: cxx{driver} -exe{pdriver rdriver} obj{pdriver rdriver}: ../../bpkg/lib{bpkg} +exe{sdriver}: obj{sdriver} +exe{sdriver}: test.roundtrip = signature + +obj{pdriver rdriver sdriver}: cxx{driver} +exe{pdriver rdriver sdriver} obj{pdriver rdriver sdriver}: ../../bpkg/lib{bpkg} obj{pdriver}: cxx.poptions += -DTEST_PACKAGES obj{rdriver}: cxx.poptions += -DTEST_REPOSITORIES +obj{sdriver}: cxx.poptions += -DTEST_SIGNATURE include ../../bpkg/ diff --git a/tests/manifest/driver.cxx b/tests/manifest/driver.cxx index e9551ae..c153477 100644 --- a/tests/manifest/driver.cxx +++ b/tests/manifest/driver.cxx @@ -31,8 +31,10 @@ main (int argc, char* argv[]) #ifdef TEST_PACKAGES package_manifests ms (p); -#else +#elif TEST_REPOSITORIES repository_manifests ms (p); +#else + signature_manifest ms (p); #endif manifest_serializer s (cout, "stdout"); diff --git a/tests/manifest/signature b/tests/manifest/signature new file mode 100644 index 0000000..5a83eeb --- /dev/null +++ b/tests/manifest/signature @@ -0,0 +1,13 @@ +: 1 +sha256sum: a2b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 +signature: \ +geWdw7Gm+Rt+CLDMBby5Y796E8rxwImb0bmcZwGWar9D3vkFm9Kjh00Buuo1PuU7tP1dV6yvRbH8 +NzC0IryEoUJHx9909AJ449ET9Zb+C3ykEeBlKH2wonj7cAVK9ZEDpPEGAtp56XWZQEawl50mwq6t +XkZAABxtOswXiicdh3HK7kaPHp38/9CBMc0rva6wDnkbTigUYA2ULqLtP5a5mLovVc48zI9A/hmb +Qx1/Nr7nzTZNDGK7CwTAb1fPam9rZklTfCTPSPUUjvWjM9XdY8cbRE1FrE14TXdyQPxCLzHO2dUO +YWH5/qMikEoCYhYXQ6KhekoT/MUiVC3PMcYQbYOrOtSxq6RcgnymexBe1XIyld5Rfo1eXu8TK11r +QPULIqAGy6RwEUhGznuEiGHQwb1UymNyJ/qgr4vBPjJtlvptqG5XNmtiJ22f07nmeVRi2Vg2UyOw +HoVpy5t/w0tEnUXPA39Vt0v1bUm7Knhc8qL4JFEqK/j/CzEHzEtAjn0aoGuKubCO0WUa+v6ZlkLU +YrNUIdgT1wgj4yEhLO3g+NsnxFH05D2sfR16rrkI2E6st5crAHR8FOl2FDsWxgKqNbzXZw7rl+Fa +TobGycX7MDf2mbBmR/KmEkMBJ4mziWLAycSAGyE5VRYDwHPJlQE0143wBzT8eNw4VLm/r+88VYw= +\ |