From b13332c991ce2695626eaca367dd8208b174c9ca Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 14 Apr 2016 17:59:24 +0300 Subject: Add support for repository authentication --- tests/cert.sh | 46 +++ tests/default-openssl.cnf | 22 ++ tests/key.pem | 51 +++ tests/mismatch-openssl.cnf | 22 ++ tests/noemail-openssl.cnf | 20 ++ tests/pkg/.gitignore | 2 + .../auth/create-expired/libfoo-1.0.0.tar.gz | 1 + .../1/build2.org/auth/create-expired/repositories | 33 ++ .../auth/create-noemail/libfoo-1.0.0.tar.gz | 1 + .../1/build2.org/auth/create-noemail/repositories | 33 ++ .../1/build2.org/auth/expired/libfoo-1.0.0.tar.gz | 1 + tests/pkg/1/build2.org/auth/expired/packages | 11 + tests/pkg/1/build2.org/auth/expired/repositories | 33 ++ tests/pkg/1/build2.org/auth/expired/signature | 13 + tests/pkg/1/build2.org/auth/libfoo-1.0.0.tar.gz | Bin 0 -> 348 bytes .../auth/name-mismatch/libfoo-1.0.0.tar.gz | 1 + .../1/build2.org/auth/name-mismatch/repositories | 34 ++ .../auth/sha256sum-mismatch/libfoo-1.0.0.tar.gz | 1 + .../auth/sha256sum-mismatch/repositories | 33 ++ .../auth/signature-mismatch/libfoo-1.0.0.tar.gz | 1 + .../auth/signature-mismatch/repositories | 33 ++ .../1/build2.org/auth/signed/libfoo-1.0.0.tar.gz | 1 + tests/pkg/1/build2.org/auth/signed/repositories | 33 ++ .../build2.org/auth/unsigned1/libfoo-1.0.0.tar.gz | 1 + tests/pkg/1/build2.org/auth/unsigned1/repositories | 1 + .../build2.org/auth/unsigned2/libfoo-1.0.0.tar.gz | 1 + tests/pkg/1/build2.org/auth/unsigned2/repositories | 1 + .../common/bar/stable/libbar-1.0.0.tar.gz | Bin 0 -> 957 bytes .../1/build2.org/common/bar/stable/repositories | 6 + .../common/bar/testing/libbar-1.1.0.tar.gz | Bin 0 -> 959 bytes .../1/build2.org/common/bar/testing/repositories | 8 + .../common/bar/unstable/libbar-1.1.1.tar.gz | Bin 0 -> 1189 bytes .../1/build2.org/common/bar/unstable/repositories | 8 + .../common/foo/stable/libfoo-1.0.0.tar.gz | Bin 0 -> 881 bytes .../1/build2.org/common/foo/stable/repositories | 3 + .../common/foo/testing/libfoo-1.1.0.tar.gz | Bin 0 -> 874 bytes .../1/build2.org/common/foo/testing/repositories | 6 + .../common/hello/libhello-1.0.0+1.tar.gz | Bin 0 -> 1489 bytes tests/pkg/1/build2.org/common/hello/repositories | 36 ++ .../common/libhello-1.0.0+1/build/bootstrap.build | 15 + .../common/libhello-1.0.0+1/build/export.build | 6 + .../common/libhello-1.0.0+1/build/root.build | 10 + .../1/build2.org/common/libhello-1.0.0+1/buildfile | 3 + .../common/libhello-1.0.0+1/hello/buildfile | 8 + .../build2.org/common/libhello-1.0.0+1/hello/hello | 11 + .../common/libhello-1.0.0+1/hello/hello.cxx | 16 + .../1/build2.org/common/libhello-1.0.0+1/manifest | 13 + .../libhello-1.0.0+1/tests/build/bootstrap.build | 5 + .../common/libhello-1.0.0+1/tests/build/root.build | 10 + .../common/libhello-1.0.0+1/tests/buildfile | 3 + .../common/libhello-1.0.0+1/tests/test/buildfile | 4 + .../common/libhello-1.0.0+1/tests/test/driver.cxx | 11 + .../common/libhello-1.0.0+1/tests/test/test.out | 1 + .../1/build2.org/common/libhello-1.0.0+1/version | 1 + tests/pkg/1/build2.org/common/not-a-package.tar.gz | Bin 0 -> 259 bytes .../1/build2.org/depend/stable/libbar-1.0.0.tar.gz | Bin 0 -> 354 bytes .../1/build2.org/depend/stable/libbar-1.1.0.tar.gz | Bin 0 -> 359 bytes .../1/build2.org/depend/stable/libbar-1.2.0.tar.gz | Bin 0 -> 372 bytes .../1/build2.org/depend/stable/libbar-1.3.0.tar.gz | Bin 0 -> 378 bytes .../1/build2.org/depend/stable/libfoo-1.0.0.tar.gz | Bin 0 -> 348 bytes .../1/build2.org/depend/stable/libfoo-1.1.0.tar.gz | Bin 0 -> 349 bytes .../1/build2.org/depend/stable/libfoo-1.2.0.tar.gz | Bin 0 -> 348 bytes tests/pkg/1/build2.org/depend/stable/repositories | 1 + tests/pkg/1/build2.org/fetch/libfoo-1.0.0.tar.gz | Bin 0 -> 348 bytes tests/pkg/1/build2.org/fetch/libfoo-1.1.0.tar.gz | Bin 0 -> 349 bytes .../fetch/libfoo-1.1.0/build/bootstrap.build | 2 + .../pkg/1/build2.org/fetch/libfoo-1.1.0/buildfile | 1 + tests/pkg/1/build2.org/fetch/libfoo-1.1.0/manifest | 7 + tests/pkg/1/build2.org/fetch/repositories | 1 + .../pkg/1/build2.org/fetch/t1/libfoo-1.0.0.tar.gz | 1 + .../pkg/1/build2.org/fetch/t1/libfoo-1.1.0.tar.gz | 1 + tests/pkg/1/build2.org/fetch/t1/repositories | 1 + tests/pkg/1/build2.org/satisfy/libbar-1.0.0.tar.gz | Bin 0 -> 356 bytes tests/pkg/1/build2.org/satisfy/libbar-1.1.0.tar.gz | Bin 0 -> 360 bytes tests/pkg/1/build2.org/satisfy/libbar-1.2.0.tar.gz | Bin 0 -> 348 bytes tests/pkg/1/build2.org/satisfy/libbaz-1.0.0.tar.gz | Bin 0 -> 359 bytes tests/pkg/1/build2.org/satisfy/libbaz-1.1.0.tar.gz | Bin 0 -> 363 bytes tests/pkg/1/build2.org/satisfy/libbiz-1.0.0.tar.gz | Bin 0 -> 366 bytes tests/pkg/1/build2.org/satisfy/libfoo-0.0.0.tar.gz | Bin 0 -> 348 bytes tests/pkg/1/build2.org/satisfy/libfoo-1.0.0.tar.gz | Bin 0 -> 348 bytes tests/pkg/1/build2.org/satisfy/libfoo-1.1.0.tar.gz | Bin 0 -> 349 bytes .../satisfy/libfoo-1.1.0/build/bootstrap.build | 2 + .../1/build2.org/satisfy/libfoo-1.1.0/buildfile | 1 + .../pkg/1/build2.org/satisfy/libfoo-1.1.0/manifest | 7 + tests/pkg/1/build2.org/satisfy/libfoo-1.2.0.tar.gz | Bin 0 -> 350 bytes tests/pkg/1/build2.org/satisfy/libfox-1.0.0.tar.gz | Bin 0 -> 349 bytes tests/pkg/1/build2.org/satisfy/repositories | 1 + .../1/build2.org/satisfy/t1/libfoo-1.0.0.tar.gz | 1 + tests/pkg/1/build2.org/satisfy/t1/repositories | 1 + .../1/build2.org/satisfy/t2/libbar-1.0.0.tar.gz | 1 + .../1/build2.org/satisfy/t2/libfoo-1.0.0.tar.gz | 1 + tests/pkg/1/build2.org/satisfy/t2/repositories | 1 + .../1/build2.org/satisfy/t3/libbaz-1.0.0.tar.gz | 1 + .../1/build2.org/satisfy/t3/libfox-1.0.0.tar.gz | 1 + tests/pkg/1/build2.org/satisfy/t3/repositories | 4 + .../1/build2.org/satisfy/t4a/libfoo-1.1.0.tar.gz | 1 + tests/pkg/1/build2.org/satisfy/t4a/repositories | 1 + .../1/build2.org/satisfy/t4b/libbar-1.1.0.tar.gz | 1 + tests/pkg/1/build2.org/satisfy/t4b/repositories | 3 + .../1/build2.org/satisfy/t4c/libbaz-1.1.0.tar.gz | 1 + .../1/build2.org/satisfy/t4c/libfoo-1.0.0.tar.gz | 1 + tests/pkg/1/build2.org/satisfy/t4c/repositories | 3 + .../1/build2.org/satisfy/t4d/libbiz-1.0.0.tar.gz | 1 + .../1/build2.org/satisfy/t4d/libfox-1.0.0.tar.gz | 1 + tests/pkg/1/build2.org/satisfy/t4d/repositories | 3 + .../1/build2.org/satisfy/t5/libbar-1.2.0.tar.gz | 1 + tests/pkg/1/build2.org/satisfy/t5/repositories | 1 + .../build2.org/status/extra/libbar-1.1.0+1.tar.gz | Bin 0 -> 243 bytes tests/pkg/1/build2.org/status/extra/repositories | 3 + .../1/build2.org/status/stable/libbar-1.0.0.tar.gz | Bin 0 -> 241 bytes .../1/build2.org/status/stable/libfoo-1.0.0.tar.gz | Bin 0 -> 240 bytes tests/pkg/1/build2.org/status/stable/repositories | 1 + .../status/testing/libbar-1.0.0+1.tar.gz | Bin 0 -> 243 bytes .../build2.org/status/testing/libbar-1.1.0.tar.gz | Bin 0 -> 242 bytes tests/pkg/1/build2.org/status/testing/repositories | 6 + .../build2.org/status/unstable/libbar-2.0.0.tar.gz | Bin 0 -> 245 bytes .../pkg/1/build2.org/status/unstable/repositories | 4 + tests/pkg/publish | 17 + tests/repository/.gitignore | 1 - .../1/common/bar/stable/libbar-1.0.0.tar.gz | Bin 957 -> 0 bytes tests/repository/1/common/bar/stable/repositories | 6 - .../1/common/bar/testing/libbar-1.1.0.tar.gz | Bin 959 -> 0 bytes tests/repository/1/common/bar/testing/repositories | 8 - .../1/common/bar/unstable/libbar-1.1.1.tar.gz | Bin 1189 -> 0 bytes .../repository/1/common/bar/unstable/repositories | 8 - .../1/common/foo/stable/libfoo-1.0.0.tar.gz | Bin 881 -> 0 bytes tests/repository/1/common/foo/stable/repositories | 3 - .../1/common/foo/testing/libfoo-1.1.0.tar.gz | Bin 874 -> 0 bytes tests/repository/1/common/foo/testing/repositories | 6 - .../1/common/hello/libhello-1.0.0+1.tar.gz | Bin 1489 -> 0 bytes tests/repository/1/common/hello/repositories | 4 - .../common/libhello-1.0.0+1/build/bootstrap.build | 15 - .../1/common/libhello-1.0.0+1/build/export.build | 6 - .../1/common/libhello-1.0.0+1/build/root.build | 10 - .../repository/1/common/libhello-1.0.0+1/buildfile | 3 - .../1/common/libhello-1.0.0+1/hello/buildfile | 8 - .../1/common/libhello-1.0.0+1/hello/hello | 11 - .../1/common/libhello-1.0.0+1/hello/hello.cxx | 16 - .../repository/1/common/libhello-1.0.0+1/manifest | 13 - .../libhello-1.0.0+1/tests/build/bootstrap.build | 5 - .../common/libhello-1.0.0+1/tests/build/root.build | 10 - .../1/common/libhello-1.0.0+1/tests/buildfile | 3 - .../1/common/libhello-1.0.0+1/tests/test/buildfile | 4 - .../common/libhello-1.0.0+1/tests/test/driver.cxx | 11 - .../1/common/libhello-1.0.0+1/tests/test/test.out | 1 - tests/repository/1/common/libhello-1.0.0+1/version | 1 - tests/repository/1/common/not-a-package.tar.gz | Bin 259 -> 0 bytes .../repository/1/depend/stable/libbar-1.0.0.tar.gz | Bin 354 -> 0 bytes .../repository/1/depend/stable/libbar-1.1.0.tar.gz | Bin 359 -> 0 bytes .../repository/1/depend/stable/libbar-1.2.0.tar.gz | Bin 372 -> 0 bytes .../repository/1/depend/stable/libbar-1.3.0.tar.gz | Bin 378 -> 0 bytes .../repository/1/depend/stable/libfoo-1.0.0.tar.gz | Bin 348 -> 0 bytes .../repository/1/depend/stable/libfoo-1.1.0.tar.gz | Bin 349 -> 0 bytes .../repository/1/depend/stable/libfoo-1.2.0.tar.gz | Bin 348 -> 0 bytes tests/repository/1/depend/stable/repositories | 1 - tests/repository/1/fetch/libfoo-1.0.0.tar.gz | Bin 348 -> 0 bytes tests/repository/1/fetch/libfoo-1.1.0.tar.gz | Bin 349 -> 0 bytes .../1/fetch/libfoo-1.1.0/build/bootstrap.build | 2 - tests/repository/1/fetch/libfoo-1.1.0/buildfile | 1 - tests/repository/1/fetch/libfoo-1.1.0/manifest | 7 - tests/repository/1/fetch/repositories | 1 - tests/repository/1/fetch/t1/libfoo-1.0.0.tar.gz | 1 - tests/repository/1/fetch/t1/libfoo-1.1.0.tar.gz | 1 - tests/repository/1/fetch/t1/repositories | 1 - tests/repository/1/satisfy/libbar-1.0.0.tar.gz | Bin 356 -> 0 bytes tests/repository/1/satisfy/libbar-1.1.0.tar.gz | Bin 360 -> 0 bytes tests/repository/1/satisfy/libbar-1.2.0.tar.gz | Bin 348 -> 0 bytes tests/repository/1/satisfy/libbaz-1.0.0.tar.gz | Bin 359 -> 0 bytes tests/repository/1/satisfy/libbaz-1.1.0.tar.gz | Bin 363 -> 0 bytes tests/repository/1/satisfy/libbiz-1.0.0.tar.gz | Bin 366 -> 0 bytes tests/repository/1/satisfy/libfoo-0.0.0.tar.gz | Bin 348 -> 0 bytes tests/repository/1/satisfy/libfoo-1.0.0.tar.gz | Bin 348 -> 0 bytes tests/repository/1/satisfy/libfoo-1.1.0.tar.gz | Bin 349 -> 0 bytes .../1/satisfy/libfoo-1.1.0/build/bootstrap.build | 2 - tests/repository/1/satisfy/libfoo-1.1.0/buildfile | 1 - tests/repository/1/satisfy/libfoo-1.1.0/manifest | 7 - tests/repository/1/satisfy/libfoo-1.2.0.tar.gz | Bin 350 -> 0 bytes tests/repository/1/satisfy/libfox-1.0.0.tar.gz | Bin 349 -> 0 bytes tests/repository/1/satisfy/repositories | 1 - tests/repository/1/satisfy/t1/libfoo-1.0.0.tar.gz | 1 - tests/repository/1/satisfy/t1/repositories | 1 - tests/repository/1/satisfy/t2/libbar-1.0.0.tar.gz | 1 - tests/repository/1/satisfy/t2/libfoo-1.0.0.tar.gz | 1 - tests/repository/1/satisfy/t2/repositories | 1 - tests/repository/1/satisfy/t3/libbaz-1.0.0.tar.gz | 1 - tests/repository/1/satisfy/t3/libfox-1.0.0.tar.gz | 1 - tests/repository/1/satisfy/t3/repositories | 4 - tests/repository/1/satisfy/t4a/libfoo-1.1.0.tar.gz | 1 - tests/repository/1/satisfy/t4a/repositories | 1 - tests/repository/1/satisfy/t4b/libbar-1.1.0.tar.gz | 1 - tests/repository/1/satisfy/t4b/repositories | 3 - tests/repository/1/satisfy/t4c/libbaz-1.1.0.tar.gz | 1 - tests/repository/1/satisfy/t4c/libfoo-1.0.0.tar.gz | 1 - tests/repository/1/satisfy/t4c/repositories | 3 - tests/repository/1/satisfy/t4d/libbiz-1.0.0.tar.gz | 1 - tests/repository/1/satisfy/t4d/libfox-1.0.0.tar.gz | 1 - tests/repository/1/satisfy/t4d/repositories | 3 - tests/repository/1/satisfy/t5/libbar-1.2.0.tar.gz | 1 - tests/repository/1/satisfy/t5/repositories | 1 - .../1/status/extra/libbar-1.1.0+1.tar.gz | Bin 243 -> 0 bytes tests/repository/1/status/extra/repositories | 3 - .../repository/1/status/stable/libbar-1.0.0.tar.gz | Bin 241 -> 0 bytes .../repository/1/status/stable/libfoo-1.0.0.tar.gz | Bin 240 -> 0 bytes tests/repository/1/status/stable/repositories | 1 - .../1/status/testing/libbar-1.0.0+1.tar.gz | Bin 243 -> 0 bytes .../1/status/testing/libbar-1.1.0.tar.gz | Bin 242 -> 0 bytes tests/repository/1/status/testing/repositories | 6 - .../1/status/unstable/libbar-2.0.0.tar.gz | Bin 245 -> 0 bytes tests/repository/1/status/unstable/repositories | 4 - tests/repository/publish | 16 - tests/test.sh | 398 +++++++++++++++------ 211 files changed, 984 insertions(+), 352 deletions(-) create mode 100755 tests/cert.sh create mode 100644 tests/default-openssl.cnf create mode 100644 tests/key.pem create mode 100644 tests/mismatch-openssl.cnf create mode 100644 tests/noemail-openssl.cnf create mode 100644 tests/pkg/.gitignore create mode 120000 tests/pkg/1/build2.org/auth/create-expired/libfoo-1.0.0.tar.gz create mode 100644 tests/pkg/1/build2.org/auth/create-expired/repositories create mode 120000 tests/pkg/1/build2.org/auth/create-noemail/libfoo-1.0.0.tar.gz create mode 100644 tests/pkg/1/build2.org/auth/create-noemail/repositories create mode 120000 tests/pkg/1/build2.org/auth/expired/libfoo-1.0.0.tar.gz create mode 100644 tests/pkg/1/build2.org/auth/expired/packages create mode 100644 tests/pkg/1/build2.org/auth/expired/repositories create mode 100644 tests/pkg/1/build2.org/auth/expired/signature create mode 100644 tests/pkg/1/build2.org/auth/libfoo-1.0.0.tar.gz create mode 120000 tests/pkg/1/build2.org/auth/name-mismatch/libfoo-1.0.0.tar.gz create mode 100644 tests/pkg/1/build2.org/auth/name-mismatch/repositories create mode 120000 tests/pkg/1/build2.org/auth/sha256sum-mismatch/libfoo-1.0.0.tar.gz create mode 100644 tests/pkg/1/build2.org/auth/sha256sum-mismatch/repositories create mode 120000 tests/pkg/1/build2.org/auth/signature-mismatch/libfoo-1.0.0.tar.gz create mode 100644 tests/pkg/1/build2.org/auth/signature-mismatch/repositories create mode 120000 tests/pkg/1/build2.org/auth/signed/libfoo-1.0.0.tar.gz create mode 100644 tests/pkg/1/build2.org/auth/signed/repositories create mode 120000 tests/pkg/1/build2.org/auth/unsigned1/libfoo-1.0.0.tar.gz create mode 100644 tests/pkg/1/build2.org/auth/unsigned1/repositories create mode 120000 tests/pkg/1/build2.org/auth/unsigned2/libfoo-1.0.0.tar.gz create mode 100644 tests/pkg/1/build2.org/auth/unsigned2/repositories create mode 100644 tests/pkg/1/build2.org/common/bar/stable/libbar-1.0.0.tar.gz create mode 100644 tests/pkg/1/build2.org/common/bar/stable/repositories create mode 100644 tests/pkg/1/build2.org/common/bar/testing/libbar-1.1.0.tar.gz create mode 100644 tests/pkg/1/build2.org/common/bar/testing/repositories create mode 100644 tests/pkg/1/build2.org/common/bar/unstable/libbar-1.1.1.tar.gz create mode 100644 tests/pkg/1/build2.org/common/bar/unstable/repositories create mode 100644 tests/pkg/1/build2.org/common/foo/stable/libfoo-1.0.0.tar.gz create mode 100644 tests/pkg/1/build2.org/common/foo/stable/repositories create mode 100644 tests/pkg/1/build2.org/common/foo/testing/libfoo-1.1.0.tar.gz create mode 100644 tests/pkg/1/build2.org/common/foo/testing/repositories create mode 100644 tests/pkg/1/build2.org/common/hello/libhello-1.0.0+1.tar.gz create mode 100644 tests/pkg/1/build2.org/common/hello/repositories create mode 100644 tests/pkg/1/build2.org/common/libhello-1.0.0+1/build/bootstrap.build create mode 100644 tests/pkg/1/build2.org/common/libhello-1.0.0+1/build/export.build create mode 100644 tests/pkg/1/build2.org/common/libhello-1.0.0+1/build/root.build create mode 100644 tests/pkg/1/build2.org/common/libhello-1.0.0+1/buildfile create mode 100644 tests/pkg/1/build2.org/common/libhello-1.0.0+1/hello/buildfile create mode 100644 tests/pkg/1/build2.org/common/libhello-1.0.0+1/hello/hello create mode 100644 tests/pkg/1/build2.org/common/libhello-1.0.0+1/hello/hello.cxx create mode 100644 tests/pkg/1/build2.org/common/libhello-1.0.0+1/manifest create mode 100644 tests/pkg/1/build2.org/common/libhello-1.0.0+1/tests/build/bootstrap.build create mode 100644 tests/pkg/1/build2.org/common/libhello-1.0.0+1/tests/build/root.build create mode 100644 tests/pkg/1/build2.org/common/libhello-1.0.0+1/tests/buildfile create mode 100644 tests/pkg/1/build2.org/common/libhello-1.0.0+1/tests/test/buildfile create mode 100644 tests/pkg/1/build2.org/common/libhello-1.0.0+1/tests/test/driver.cxx create mode 100644 tests/pkg/1/build2.org/common/libhello-1.0.0+1/tests/test/test.out create mode 100644 tests/pkg/1/build2.org/common/libhello-1.0.0+1/version create mode 100644 tests/pkg/1/build2.org/common/not-a-package.tar.gz create mode 100644 tests/pkg/1/build2.org/depend/stable/libbar-1.0.0.tar.gz create mode 100644 tests/pkg/1/build2.org/depend/stable/libbar-1.1.0.tar.gz create mode 100644 tests/pkg/1/build2.org/depend/stable/libbar-1.2.0.tar.gz create mode 100644 tests/pkg/1/build2.org/depend/stable/libbar-1.3.0.tar.gz create mode 100644 tests/pkg/1/build2.org/depend/stable/libfoo-1.0.0.tar.gz create mode 100644 tests/pkg/1/build2.org/depend/stable/libfoo-1.1.0.tar.gz create mode 100644 tests/pkg/1/build2.org/depend/stable/libfoo-1.2.0.tar.gz create mode 100644 tests/pkg/1/build2.org/depend/stable/repositories create mode 100644 tests/pkg/1/build2.org/fetch/libfoo-1.0.0.tar.gz create mode 100644 tests/pkg/1/build2.org/fetch/libfoo-1.1.0.tar.gz create mode 100644 tests/pkg/1/build2.org/fetch/libfoo-1.1.0/build/bootstrap.build create mode 100644 tests/pkg/1/build2.org/fetch/libfoo-1.1.0/buildfile create mode 100644 tests/pkg/1/build2.org/fetch/libfoo-1.1.0/manifest create mode 100644 tests/pkg/1/build2.org/fetch/repositories create mode 120000 tests/pkg/1/build2.org/fetch/t1/libfoo-1.0.0.tar.gz create mode 120000 tests/pkg/1/build2.org/fetch/t1/libfoo-1.1.0.tar.gz create mode 120000 tests/pkg/1/build2.org/fetch/t1/repositories create mode 100644 tests/pkg/1/build2.org/satisfy/libbar-1.0.0.tar.gz create mode 100644 tests/pkg/1/build2.org/satisfy/libbar-1.1.0.tar.gz create mode 100644 tests/pkg/1/build2.org/satisfy/libbar-1.2.0.tar.gz create mode 100644 tests/pkg/1/build2.org/satisfy/libbaz-1.0.0.tar.gz create mode 100644 tests/pkg/1/build2.org/satisfy/libbaz-1.1.0.tar.gz create mode 100644 tests/pkg/1/build2.org/satisfy/libbiz-1.0.0.tar.gz create mode 100644 tests/pkg/1/build2.org/satisfy/libfoo-0.0.0.tar.gz create mode 100644 tests/pkg/1/build2.org/satisfy/libfoo-1.0.0.tar.gz create mode 100644 tests/pkg/1/build2.org/satisfy/libfoo-1.1.0.tar.gz create mode 100644 tests/pkg/1/build2.org/satisfy/libfoo-1.1.0/build/bootstrap.build create mode 100644 tests/pkg/1/build2.org/satisfy/libfoo-1.1.0/buildfile create mode 100644 tests/pkg/1/build2.org/satisfy/libfoo-1.1.0/manifest create mode 100644 tests/pkg/1/build2.org/satisfy/libfoo-1.2.0.tar.gz create mode 100644 tests/pkg/1/build2.org/satisfy/libfox-1.0.0.tar.gz create mode 100644 tests/pkg/1/build2.org/satisfy/repositories create mode 120000 tests/pkg/1/build2.org/satisfy/t1/libfoo-1.0.0.tar.gz create mode 120000 tests/pkg/1/build2.org/satisfy/t1/repositories create mode 120000 tests/pkg/1/build2.org/satisfy/t2/libbar-1.0.0.tar.gz create mode 120000 tests/pkg/1/build2.org/satisfy/t2/libfoo-1.0.0.tar.gz create mode 120000 tests/pkg/1/build2.org/satisfy/t2/repositories create mode 120000 tests/pkg/1/build2.org/satisfy/t3/libbaz-1.0.0.tar.gz create mode 120000 tests/pkg/1/build2.org/satisfy/t3/libfox-1.0.0.tar.gz create mode 100644 tests/pkg/1/build2.org/satisfy/t3/repositories create mode 120000 tests/pkg/1/build2.org/satisfy/t4a/libfoo-1.1.0.tar.gz create mode 120000 tests/pkg/1/build2.org/satisfy/t4a/repositories create mode 120000 tests/pkg/1/build2.org/satisfy/t4b/libbar-1.1.0.tar.gz create mode 100644 tests/pkg/1/build2.org/satisfy/t4b/repositories create mode 120000 tests/pkg/1/build2.org/satisfy/t4c/libbaz-1.1.0.tar.gz create mode 120000 tests/pkg/1/build2.org/satisfy/t4c/libfoo-1.0.0.tar.gz create mode 100644 tests/pkg/1/build2.org/satisfy/t4c/repositories create mode 120000 tests/pkg/1/build2.org/satisfy/t4d/libbiz-1.0.0.tar.gz create mode 120000 tests/pkg/1/build2.org/satisfy/t4d/libfox-1.0.0.tar.gz create mode 100644 tests/pkg/1/build2.org/satisfy/t4d/repositories create mode 120000 tests/pkg/1/build2.org/satisfy/t5/libbar-1.2.0.tar.gz create mode 120000 tests/pkg/1/build2.org/satisfy/t5/repositories create mode 100644 tests/pkg/1/build2.org/status/extra/libbar-1.1.0+1.tar.gz create mode 100644 tests/pkg/1/build2.org/status/extra/repositories create mode 100644 tests/pkg/1/build2.org/status/stable/libbar-1.0.0.tar.gz create mode 100644 tests/pkg/1/build2.org/status/stable/libfoo-1.0.0.tar.gz create mode 100644 tests/pkg/1/build2.org/status/stable/repositories create mode 100644 tests/pkg/1/build2.org/status/testing/libbar-1.0.0+1.tar.gz create mode 100644 tests/pkg/1/build2.org/status/testing/libbar-1.1.0.tar.gz create mode 100644 tests/pkg/1/build2.org/status/testing/repositories create mode 100644 tests/pkg/1/build2.org/status/unstable/libbar-2.0.0.tar.gz create mode 100644 tests/pkg/1/build2.org/status/unstable/repositories create mode 100755 tests/pkg/publish delete mode 100644 tests/repository/.gitignore delete mode 100644 tests/repository/1/common/bar/stable/libbar-1.0.0.tar.gz delete mode 100644 tests/repository/1/common/bar/stable/repositories delete mode 100644 tests/repository/1/common/bar/testing/libbar-1.1.0.tar.gz delete mode 100644 tests/repository/1/common/bar/testing/repositories delete mode 100644 tests/repository/1/common/bar/unstable/libbar-1.1.1.tar.gz delete mode 100644 tests/repository/1/common/bar/unstable/repositories delete mode 100644 tests/repository/1/common/foo/stable/libfoo-1.0.0.tar.gz delete mode 100644 tests/repository/1/common/foo/stable/repositories delete mode 100644 tests/repository/1/common/foo/testing/libfoo-1.1.0.tar.gz delete mode 100644 tests/repository/1/common/foo/testing/repositories delete mode 100644 tests/repository/1/common/hello/libhello-1.0.0+1.tar.gz delete mode 100644 tests/repository/1/common/hello/repositories delete mode 100644 tests/repository/1/common/libhello-1.0.0+1/build/bootstrap.build delete mode 100644 tests/repository/1/common/libhello-1.0.0+1/build/export.build delete mode 100644 tests/repository/1/common/libhello-1.0.0+1/build/root.build delete mode 100644 tests/repository/1/common/libhello-1.0.0+1/buildfile delete mode 100644 tests/repository/1/common/libhello-1.0.0+1/hello/buildfile delete mode 100644 tests/repository/1/common/libhello-1.0.0+1/hello/hello delete mode 100644 tests/repository/1/common/libhello-1.0.0+1/hello/hello.cxx delete mode 100644 tests/repository/1/common/libhello-1.0.0+1/manifest delete mode 100644 tests/repository/1/common/libhello-1.0.0+1/tests/build/bootstrap.build delete mode 100644 tests/repository/1/common/libhello-1.0.0+1/tests/build/root.build delete mode 100644 tests/repository/1/common/libhello-1.0.0+1/tests/buildfile delete mode 100644 tests/repository/1/common/libhello-1.0.0+1/tests/test/buildfile delete mode 100644 tests/repository/1/common/libhello-1.0.0+1/tests/test/driver.cxx delete mode 100644 tests/repository/1/common/libhello-1.0.0+1/tests/test/test.out delete mode 100644 tests/repository/1/common/libhello-1.0.0+1/version delete mode 100644 tests/repository/1/common/not-a-package.tar.gz delete mode 100644 tests/repository/1/depend/stable/libbar-1.0.0.tar.gz delete mode 100644 tests/repository/1/depend/stable/libbar-1.1.0.tar.gz delete mode 100644 tests/repository/1/depend/stable/libbar-1.2.0.tar.gz delete mode 100644 tests/repository/1/depend/stable/libbar-1.3.0.tar.gz delete mode 100644 tests/repository/1/depend/stable/libfoo-1.0.0.tar.gz delete mode 100644 tests/repository/1/depend/stable/libfoo-1.1.0.tar.gz delete mode 100644 tests/repository/1/depend/stable/libfoo-1.2.0.tar.gz delete mode 100644 tests/repository/1/depend/stable/repositories delete mode 100644 tests/repository/1/fetch/libfoo-1.0.0.tar.gz delete mode 100644 tests/repository/1/fetch/libfoo-1.1.0.tar.gz delete mode 100644 tests/repository/1/fetch/libfoo-1.1.0/build/bootstrap.build delete mode 100644 tests/repository/1/fetch/libfoo-1.1.0/buildfile delete mode 100644 tests/repository/1/fetch/libfoo-1.1.0/manifest delete mode 100644 tests/repository/1/fetch/repositories delete mode 120000 tests/repository/1/fetch/t1/libfoo-1.0.0.tar.gz delete mode 120000 tests/repository/1/fetch/t1/libfoo-1.1.0.tar.gz delete mode 120000 tests/repository/1/fetch/t1/repositories delete mode 100644 tests/repository/1/satisfy/libbar-1.0.0.tar.gz delete mode 100644 tests/repository/1/satisfy/libbar-1.1.0.tar.gz delete mode 100644 tests/repository/1/satisfy/libbar-1.2.0.tar.gz delete mode 100644 tests/repository/1/satisfy/libbaz-1.0.0.tar.gz delete mode 100644 tests/repository/1/satisfy/libbaz-1.1.0.tar.gz delete mode 100644 tests/repository/1/satisfy/libbiz-1.0.0.tar.gz delete mode 100644 tests/repository/1/satisfy/libfoo-0.0.0.tar.gz delete mode 100644 tests/repository/1/satisfy/libfoo-1.0.0.tar.gz delete mode 100644 tests/repository/1/satisfy/libfoo-1.1.0.tar.gz delete mode 100644 tests/repository/1/satisfy/libfoo-1.1.0/build/bootstrap.build delete mode 100644 tests/repository/1/satisfy/libfoo-1.1.0/buildfile delete mode 100644 tests/repository/1/satisfy/libfoo-1.1.0/manifest delete mode 100644 tests/repository/1/satisfy/libfoo-1.2.0.tar.gz delete mode 100644 tests/repository/1/satisfy/libfox-1.0.0.tar.gz delete mode 100644 tests/repository/1/satisfy/repositories delete mode 120000 tests/repository/1/satisfy/t1/libfoo-1.0.0.tar.gz delete mode 120000 tests/repository/1/satisfy/t1/repositories delete mode 120000 tests/repository/1/satisfy/t2/libbar-1.0.0.tar.gz delete mode 120000 tests/repository/1/satisfy/t2/libfoo-1.0.0.tar.gz delete mode 120000 tests/repository/1/satisfy/t2/repositories delete mode 120000 tests/repository/1/satisfy/t3/libbaz-1.0.0.tar.gz delete mode 120000 tests/repository/1/satisfy/t3/libfox-1.0.0.tar.gz delete mode 100644 tests/repository/1/satisfy/t3/repositories delete mode 120000 tests/repository/1/satisfy/t4a/libfoo-1.1.0.tar.gz delete mode 120000 tests/repository/1/satisfy/t4a/repositories delete mode 120000 tests/repository/1/satisfy/t4b/libbar-1.1.0.tar.gz delete mode 100644 tests/repository/1/satisfy/t4b/repositories delete mode 120000 tests/repository/1/satisfy/t4c/libbaz-1.1.0.tar.gz delete mode 120000 tests/repository/1/satisfy/t4c/libfoo-1.0.0.tar.gz delete mode 100644 tests/repository/1/satisfy/t4c/repositories delete mode 120000 tests/repository/1/satisfy/t4d/libbiz-1.0.0.tar.gz delete mode 120000 tests/repository/1/satisfy/t4d/libfox-1.0.0.tar.gz delete mode 100644 tests/repository/1/satisfy/t4d/repositories delete mode 120000 tests/repository/1/satisfy/t5/libbar-1.2.0.tar.gz delete mode 120000 tests/repository/1/satisfy/t5/repositories delete mode 100644 tests/repository/1/status/extra/libbar-1.1.0+1.tar.gz delete mode 100644 tests/repository/1/status/extra/repositories delete mode 100644 tests/repository/1/status/stable/libbar-1.0.0.tar.gz delete mode 100644 tests/repository/1/status/stable/libfoo-1.0.0.tar.gz delete mode 100644 tests/repository/1/status/stable/repositories delete mode 100644 tests/repository/1/status/testing/libbar-1.0.0+1.tar.gz delete mode 100644 tests/repository/1/status/testing/libbar-1.1.0.tar.gz delete mode 100644 tests/repository/1/status/testing/repositories delete mode 100644 tests/repository/1/status/unstable/libbar-2.0.0.tar.gz delete mode 100644 tests/repository/1/status/unstable/repositories delete mode 100755 tests/repository/publish (limited to 'tests') diff --git a/tests/cert.sh b/tests/cert.sh new file mode 100755 index 0000000..156f588 --- /dev/null +++ b/tests/cert.sh @@ -0,0 +1,46 @@ +#! /bin/sh + +# Normally, you don't need to regenerate the private key. +# +# openssl genrsa 4096 > key.pem + +# Copy default-cert.pem content to the certificate value of the following +# manifest files: +# pkg/1/build2.org/auth/mismatched/signature/repositories +# pkg/1/build2.org/auth/mismatched/sha256sum/repositories +# pkg/1/build2.org/auth/signed/repositories +# pkg/1/build2.org/common/hello/repositories +# +openssl req -x509 -new -key key.pem -days 365 -config default-openssl.cnf > \ + default-cert.pem + +# Copy mismatch-cert.pem content to the certificate value of +# pkg/1/build2.org/auth/mismatched/name/repositories manifest file. +# +openssl req -x509 -new -key key.pem -days 365 -config mismatch-openssl.cnf > \ + mismatch-cert.pem + +# Copy noemail-cert.pem content to the certificate value of +# pkg/1/faulty/auth/noemail/repositories manifest file. +# +openssl req -x509 -new -key key.pem -days 365 -config noemail-openssl.cnf > \ + noemail-cert.pem + +# Normally, you have no reason to regenerate expired-cert.pem, as need to keep +# it expired for the testing purposes. But if you do, copy expired-cert.pem +# content to the certificate value of the following manifest files: +# pkg/1/build2.org/auth/expired/repositories +# pkg/1/faulty/auth/expired/repositories +# +# To regenerate the packages and signature manifest files run: +# +# ../bpkg/bpkg rep-create pkg/1/build2.org/auth/expired --key key.pem +# +# We cannot do it in test.sh since the certificate has expired. This is also +# the reason why we store these auto-generated manifests in git. +# +# Will have to wait 1 day until the certificate expires. Until then test.sh +# will be failing. +# +# openssl req -x509 -new -key key.pem -days 1 -config default-openssl.cnf > \ +# expired-cert.pem diff --git a/tests/default-openssl.cnf b/tests/default-openssl.cnf new file mode 100644 index 0000000..c14ec06 --- /dev/null +++ b/tests/default-openssl.cnf @@ -0,0 +1,22 @@ +repository = build2.org +company = Code Synthesis +email = info@build2.org + + +[ req ] + +distinguished_name = req_distinguished_name +x509_extensions = v3_req +prompt = no +utf8 = yes + +[ req_distinguished_name ] + +O = $company +CN = name:$repository + +[ v3_req ] + +keyUsage = critical,digitalSignature +extendedKeyUsage = critical,codeSigning +subjectAltName = email:$email diff --git a/tests/key.pem b/tests/key.pem new file mode 100644 index 0000000..6615a2d --- /dev/null +++ b/tests/key.pem @@ -0,0 +1,51 @@ +-----BEGIN RSA PRIVATE KEY----- +MIIJKAIBAAKCAgEA2rvxJe7MXMIygVTVGfMR4B/MTRRRgbKdLcXaUbu+IfdyjGMu +34GsUG51WzhcNOmNdLX2FHEiiESAPvVbWOEO+ZQL3IIxbXc8IgiNEpNPPR58SFNw +wd2E6C8pmyN7QhXuy+gpVdwbsN9RWXnXBY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BLscYz0DBuFeOPg+XGi8MdtwU6L8 +vGmNQ2EfKl00Q/bHJRx6yHFnnsPANHjtA4/rYhkP/IBZ5vkqFmlRcXdZlHgW9wpZ +fB3N3RFz90LemWiFLASXH82J+k0g1PI0txLsAjJCNtaF+3apHd/1mACX7V+jLr4a +rWdcqQKCAQA/raI7Cg8jRxmkYIBU6/KX0ARwgcihAWfCEBhw4OE0Ewm9DT67bjhD +I6VEwR7a2wWFnO6ES0tiMMhnO4hN5xRCjgGhODDs1FL5Iserhxc/DF4RExpMTeuh +4dlj1by8XGPqGycll6zf7K1FBjb5JLGY2BzcYx8pqSUq+GImtLFT3DgZQJzBeXdk +Pzj7sbVSz4+YCfSen3dGqXZz5ttsjKhAByp7FXh7uYpnM3qSY5ezfwjgnP+eWz5D +fJmNs89fThe1cDZS3k8ps006a0cNdbrwD3Fhia30DLvCJPRCrKnNLscz0nLs5BdG +nVNW95xvfUf7+ha1YizIuVttO8cFTSpxAoIBAET0kO0jKwSYzBBJBMWHlAmYfaiW +WUUYAYpk2jHaK8L4QSNZOvBIEovMCdNN9+D8yQ09HGMxny5+MkSF9CaRRdC1MFfg +bZVlmC+UlzeuMEHalrYVWmIQ29KsF7vo9dKBz1BHMQ77D4lzaV1fZ9EPg+XbbNG2 +6N/rC8ubuC4CjnqMCO0tFM+Gq6ixzDmBkzEWYStEwMQVIkfJ/BxVFHyH8DsRDmvO +1u3lZ7Ks0HyiSOe45q/E6PnNV+oV6f1EeZESZysuD96fHm8XMC6iBwK0AQ0hUZ4e +cVzIsHBEMzLJx6On7xQYR7FNmdW+8fJmMXyniCUS9c26upTNwWVDX+U4Y4M= +-----END RSA PRIVATE KEY----- diff --git a/tests/mismatch-openssl.cnf b/tests/mismatch-openssl.cnf new file mode 100644 index 0000000..f4fe4d7 --- /dev/null +++ b/tests/mismatch-openssl.cnf @@ -0,0 +1,22 @@ +repository = build2.org/auth/mismatched/name/x +company = Code Synthesis +email = info@build2.org + + +[ req ] + +distinguished_name = req_distinguished_name +x509_extensions = v3_req +prompt = no +utf8 = yes + +[ req_distinguished_name ] + +O = $company +CN = name:$repository + +[ v3_req ] + +keyUsage = critical,digitalSignature +extendedKeyUsage = critical,codeSigning +subjectAltName = email:$email diff --git a/tests/noemail-openssl.cnf b/tests/noemail-openssl.cnf new file mode 100644 index 0000000..4fc8618 --- /dev/null +++ b/tests/noemail-openssl.cnf @@ -0,0 +1,20 @@ +repository = build2.org +company = Code Synthesis + + +[ req ] + +distinguished_name = req_distinguished_name +x509_extensions = v3_req +prompt = no +utf8 = yes + +[ req_distinguished_name ] + +O = $company +CN = name:$repository + +[ v3_req ] + +keyUsage = critical,digitalSignature +extendedKeyUsage = critical,codeSigning diff --git a/tests/pkg/.gitignore b/tests/pkg/.gitignore new file mode 100644 index 0000000..cd1ec36 --- /dev/null +++ b/tests/pkg/.gitignore @@ -0,0 +1,2 @@ +packages +signature diff --git a/tests/pkg/1/build2.org/auth/create-expired/libfoo-1.0.0.tar.gz b/tests/pkg/1/build2.org/auth/create-expired/libfoo-1.0.0.tar.gz new file mode 120000 index 0000000..32e5a3c --- /dev/null +++ b/tests/pkg/1/build2.org/auth/create-expired/libfoo-1.0.0.tar.gz @@ -0,0 +1 @@ +../libfoo-1.0.0.tar.gz \ No newline at end of file diff --git a/tests/pkg/1/build2.org/auth/create-expired/repositories b/tests/pkg/1/build2.org/auth/create-expired/repositories new file mode 100644 index 0000000..8370fa4 --- /dev/null +++ b/tests/pkg/1/build2.org/auth/create-expired/repositories @@ -0,0 +1,33 @@ +: 1 +certificate: \ +-----BEGIN CERTIFICATE----- +MIIFLzCCAxegAwIBAgIJAPIoh0763iYdMA0GCSqGSIb3DQEBCwUAMDMxFzAVBgNV +BAoMDkNvZGUgU3ludGhlc2lzMRgwFgYDVQQDDA9uYW1lOmJ1aWxkMi5vcmcwHhcN +MTYwNTAxMTA1MDMyWhcNMTYwNTAyMTA1MDMyWjAzMRcwFQYDVQQKDA5Db2RlIFN5 +bnRoZXNpczEYMBYGA1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v2TY0pg8/QRFRWGCFgdWJleX6VsqIXC +KDK6MyHfR1gsDnZZfgr7HJCq1SH3loqlchLBvAF6K/c1LdQyJFYoP4xAt6yaQWzv +wEqqhhZ7tLpjrjK0K2pqsPoupNcNhE31k+6ZdM5Z5oHT844qKIVNJIdlvFwnQ3ed +grP6gBCLVY7h7GJ0x2ZG/2hYt4My8RqLxFYHaHAzQsmXFATIzT1Yqz1nw+8V3l5P +m+rXQNVAw7rgpl3T7klbHVfkg5rPa0kF66PkKq5ax46NS6KVj9sNOqkcXL7huQSG +BnSLTkaLwwrSZWl+DPXeY8TgUGkkEMY6RvYdqoOGZiZSqtMfK9QKsFi79a4Munc8 +ypUPxE++jhtXcarDy0ta3BXrspIg63a2Ab6C5yv2fC31Ec5v75rUxt9BVxMMQdlX +h9eMe5FmkgkSBcklOShE2kZvTOPUCSq8DK7JuKsKEH3istPto+PpoyT8RxuZ9K2Q +rr78CskHtj+TVdFv7TAqn2YDx9ki4HJIxWKVanJ+zOBSrJw= +-----END CERTIFICATE----- +\ diff --git a/tests/pkg/1/build2.org/auth/create-noemail/libfoo-1.0.0.tar.gz b/tests/pkg/1/build2.org/auth/create-noemail/libfoo-1.0.0.tar.gz new file mode 120000 index 0000000..32e5a3c --- /dev/null +++ b/tests/pkg/1/build2.org/auth/create-noemail/libfoo-1.0.0.tar.gz @@ -0,0 +1 @@ +../libfoo-1.0.0.tar.gz \ No newline at end of file diff --git a/tests/pkg/1/build2.org/auth/create-noemail/repositories b/tests/pkg/1/build2.org/auth/create-noemail/repositories new file mode 100644 index 0000000..3645b23 --- /dev/null +++ b/tests/pkg/1/build2.org/auth/create-noemail/repositories @@ -0,0 +1,33 @@ +: 1 +certificate: \ +-----BEGIN CERTIFICATE----- +MIIFEzCCAvugAwIBAgIJANxwhIzYRCmBMA0GCSqGSIb3DQEBCwUAMDMxFzAVBgNV +BAoMDkNvZGUgU3ludGhlc2lzMRgwFgYDVQQDDA9uYW1lOmJ1aWxkMi5vcmcwHhcN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Z8mbVJiXSfnwHSmbEeBbVlej9OqFga2+drv2cI1cqpPZJKhF +UiUstPYl6vFONE5hLGxKI+6Xg6HYkkc/qawCmY3fuNxC5Hv4n0dwQGdcUqMt5oMK +1NhfPnunBXY2d/N3SaeBh8PW9Wk5zDq/S2LcO6fgdSho3R3oGbkHj52wPLWK93Vr +IBU1NhswvR69IOT92UG5KAqHK3VFp8EatuvbODQpvd0uuwIf7BO4Cj7ZPy5R7u8c +6fwyP1C/jTwSER143NA0LlmjR+qowsicz7zhBI4Fv6dj4rO725lnZ0+Sqok/45SR +jYdSPZnyWhiWh2ImfMC5INIlWvTtpL6dbfbkR1ZVABVkn3j0Xe4kpsFrmhY693mJ +LY8PTKJpIZeoj/XrnTDm/NgwcDHpS8j3F++DwZ2UxzJSOgmL9NJlC1lf1ehhxQt8 +33+/zTw6VXwK0PUputdS7xf7z+10Yf4el1kEoAzWZwaz5bwVFOyCQHPCYxuSUKz+ +O0X8FWd2wgPCmU6CB518Cv9cOyUfoZZuV3Va/IyoOUvwNd5Lxen0mo2LPNlXRMVM +e44+PKmbFA== +-----END CERTIFICATE----- +\ diff --git a/tests/pkg/1/build2.org/auth/expired/libfoo-1.0.0.tar.gz b/tests/pkg/1/build2.org/auth/expired/libfoo-1.0.0.tar.gz new file mode 120000 index 0000000..32e5a3c --- /dev/null +++ b/tests/pkg/1/build2.org/auth/expired/libfoo-1.0.0.tar.gz @@ -0,0 +1 @@ +../libfoo-1.0.0.tar.gz \ No newline at end of file diff --git a/tests/pkg/1/build2.org/auth/expired/packages b/tests/pkg/1/build2.org/auth/expired/packages new file mode 100644 index 0000000..9aaf177 --- /dev/null +++ b/tests/pkg/1/build2.org/auth/expired/packages @@ -0,0 +1,11 @@ +: 1 +sha256sum: ba75221f5f610f5f9ebee19a7449dfcff5c9fb2c7d87d2482b8324c4ea419950 +: +name: libfoo +version: 1.0.0 +summary: libfoo +license: MIT +url: http://example.org +email: pkg@example.org +location: libfoo-1.0.0.tar.gz +sha256sum: 642aa60cda80f6579247dfc64192c67ec3f2ed932ae2f56e592000ad9fea435d diff --git a/tests/pkg/1/build2.org/auth/expired/repositories b/tests/pkg/1/build2.org/auth/expired/repositories new file mode 100644 index 0000000..8370fa4 --- /dev/null +++ b/tests/pkg/1/build2.org/auth/expired/repositories @@ -0,0 +1,33 @@ +: 1 +certificate: \ +-----BEGIN CERTIFICATE----- +MIIFLzCCAxegAwIBAgIJAPIoh0763iYdMA0GCSqGSIb3DQEBCwUAMDMxFzAVBgNV +BAoMDkNvZGUgU3ludGhlc2lzMRgwFgYDVQQDDA9uYW1lOmJ1aWxkMi5vcmcwHhcN +MTYwNTAxMTA1MDMyWhcNMTYwNTAyMTA1MDMyWjAzMRcwFQYDVQQKDA5Db2RlIFN5 +bnRoZXNpczEYMBYGA1UEAwwPbmFtZTpidWlsZDIub3JnMIICIjANBgkqhkiG9w0B +AQEFAAOCAg8AMIICCgKCAgEA2rvxJe7MXMIygVTVGfMR4B/MTRRRgbKdLcXaUbu+ +IfdyjGMu34GsUG51WzhcNOmNdLX2FHEiiESAPvVbWOEO+ZQL3IIxbXc8IgiNEpNP +PR58SFNwwd2E6C8pmyN7QhXuy+gpVdwbsN9RWXnXBY9A9JtSt+xBuxeDs/PkdoPH +4O3aL2HB0TUzTPhHZ23BCSzMXIIqJfxEX2g9eKtPPkRMsLd/X0lRqkutjmXlnKXN +CJ8uE8yUcuWtPSfsqSiEfvBpfcrJ4trQzYgiXfNp4Cy434SsVV5wB2Uki9fTRy2H +Y478bHLT2wgqVqCLartkOKTawy8bx0C/uA1mxen4U6P9dcKI4j1/oPmiykl0r0Hl +QIAGOYZzxbk52/pkt7LlSLvqW4jtyIhM4p8CgSRvIyI0eJHEt0ztoB6LN1zAdThu +bomWaImTxTLJXzl/fea8JJ+6jsP4NBiIrrnT/HBF1MUEiqLfwjAwTraBPtqH8A6a +I+yGPsWPAhTtlYeyTKv2qkTFA4QolegtkmjWt/oxFzwCwnLPrN19CFPUFPOGiA1+ +u7jGNUzp9KuNFQXfiay5ZzP8cqj1bfnQDDbLkXn2TOI/6bsbq4FiuqYSW//XdVqa +DZlnVvfwozPlKzdKR9wMSs7PP8P7SFGU5oIh5a2zUbbNZxC8Gef7MYD6xMi7TEAU +4JECAwEAAaNGMEQwDgYDVR0PAQH/BAQDAgeAMBYGA1UdJQEB/wQMMAoGCCsGAQUF +BwMDMBoGA1UdEQQTMBGBD2luZm9AYnVpbGQyLm9yZzANBgkqhkiG9w0BAQsFAAOC +AgEAAb+Yxvqi4sOZ+Ti8wcxkxqFrIs32M3XgJIeZYJn9JZbtjuBx0JFZWnL/tz4M +VTiM2nrUc4qIIpTqEt2If1NcdH0Cjvf6vysLvIOoB4q09B+aW4F+19moixYodoDp +qq1Ki1MZrBMx+KUICagqRSklPyxaZ2rEFv2TY0pg8/QRFRWGCFgdWJleX6VsqIXC +KDK6MyHfR1gsDnZZfgr7HJCq1SH3loqlchLBvAF6K/c1LdQyJFYoP4xAt6yaQWzv +wEqqhhZ7tLpjrjK0K2pqsPoupNcNhE31k+6ZdM5Z5oHT844qKIVNJIdlvFwnQ3ed +grP6gBCLVY7h7GJ0x2ZG/2hYt4My8RqLxFYHaHAzQsmXFATIzT1Yqz1nw+8V3l5P +m+rXQNVAw7rgpl3T7klbHVfkg5rPa0kF66PkKq5ax46NS6KVj9sNOqkcXL7huQSG +BnSLTkaLwwrSZWl+DPXeY8TgUGkkEMY6RvYdqoOGZiZSqtMfK9QKsFi79a4Munc8 +ypUPxE++jhtXcarDy0ta3BXrspIg63a2Ab6C5yv2fC31Ec5v75rUxt9BVxMMQdlX +h9eMe5FmkgkSBcklOShE2kZvTOPUCSq8DK7JuKsKEH3istPto+PpoyT8RxuZ9K2Q +rr78CskHtj+TVdFv7TAqn2YDx9ki4HJIxWKVanJ+zOBSrJw= +-----END CERTIFICATE----- +\ diff --git a/tests/pkg/1/build2.org/auth/expired/signature b/tests/pkg/1/build2.org/auth/expired/signature new file mode 100644 index 0000000..dc2aeee --- /dev/null +++ b/tests/pkg/1/build2.org/auth/expired/signature @@ -0,0 +1,13 @@ +: 1 +sha256sum: cd05e2ebe9dac484950a54e95a76efba0cac27ec5148dc34fa23a5cd7da72e3d +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= +\ diff --git a/tests/pkg/1/build2.org/auth/libfoo-1.0.0.tar.gz b/tests/pkg/1/build2.org/auth/libfoo-1.0.0.tar.gz new file mode 100644 index 0000000..28a6a90 Binary files /dev/null and b/tests/pkg/1/build2.org/auth/libfoo-1.0.0.tar.gz differ diff --git a/tests/pkg/1/build2.org/auth/name-mismatch/libfoo-1.0.0.tar.gz b/tests/pkg/1/build2.org/auth/name-mismatch/libfoo-1.0.0.tar.gz new file mode 120000 index 0000000..32e5a3c --- /dev/null +++ b/tests/pkg/1/build2.org/auth/name-mismatch/libfoo-1.0.0.tar.gz @@ -0,0 +1 @@ +../libfoo-1.0.0.tar.gz \ No newline at end of file diff --git a/tests/pkg/1/build2.org/auth/name-mismatch/repositories b/tests/pkg/1/build2.org/auth/name-mismatch/repositories new file mode 100644 index 0000000..15fa092 --- /dev/null +++ b/tests/pkg/1/build2.org/auth/name-mismatch/repositories @@ -0,0 +1,34 @@ +: 1 +certificate: \ +-----BEGIN CERTIFICATE----- +MIIFXTCCA0WgAwIBAgIJANXKeBuJax30MA0GCSqGSIb3DQEBCwUAMEoxFzAVBgNV +BAoMDkNvZGUgU3ludGhlc2lzMS8wLQYDVQQDDCZuYW1lOmJ1aWxkMi5vcmcvYXV0 +aC9taXNtYXRjaGVkL25hbWUveDAeFw0xNjA1MDMyMzUyNDJaFw0xNzA1MDMyMzUy +NDJaMEoxFzAVBgNVBAoMDkNvZGUgU3ludGhlc2lzMS8wLQYDVQQDDCZuYW1lOmJ1 +aWxkMi5vcmcvYXV0aC9taXNtYXRjaGVkL25hbWUveDCCAiIwDQYJKoZIhvcNAQEB +BQADggIPADCCAgoCggIBANq78SXuzFzCMoFU1RnzEeAfzE0UUYGynS3F2lG7viH3 +coxjLt+BrFBudVs4XDTpjXS19hRxIohEgD71W1jhDvmUC9yCMW13PCIIjRKTTz0e +fEhTcMHdhOgvKZsje0IV7svoKVXcG7DfUVl51wWPQPSbUrfsQbsXg7Pz5HaDx+Dt +2i9hwdE1M0z4R2dtwQkszFyCKiX8RF9oPXirTz5ETLC3f19JUapLrY5l5ZylzQif +LhPMlHLlrT0n7KkohH7waX3KyeLa0M2IIl3zaeAsuN+ErFVecAdlJIvX00cth2OO +/Gxy09sIKlagi2q7ZDik2sMvG8dAv7gNZsXp+FOj/XXCiOI9f6D5ospJdK9B5UCA +BjmGc8W5Odv6ZLey5Ui76luI7ciITOKfAoEkbyMiNHiRxLdM7aAeizdcwHU4bm6J +lmiJk8UyyV85f33mvCSfuo7D+DQYiK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\ diff --git a/tests/pkg/1/build2.org/auth/sha256sum-mismatch/libfoo-1.0.0.tar.gz b/tests/pkg/1/build2.org/auth/sha256sum-mismatch/libfoo-1.0.0.tar.gz new file mode 120000 index 0000000..32e5a3c --- /dev/null +++ b/tests/pkg/1/build2.org/auth/sha256sum-mismatch/libfoo-1.0.0.tar.gz @@ -0,0 +1 @@ +../libfoo-1.0.0.tar.gz \ No newline at end of file diff --git a/tests/pkg/1/build2.org/auth/sha256sum-mismatch/repositories b/tests/pkg/1/build2.org/auth/sha256sum-mismatch/repositories new file mode 100644 index 0000000..9bcb20a --- /dev/null +++ b/tests/pkg/1/build2.org/auth/sha256sum-mismatch/repositories @@ -0,0 +1,33 @@ +: 1 +certificate: \ +-----BEGIN CERTIFICATE----- +MIIFLzCCAxegAwIBAgIJAK41T2Si9cMEMA0GCSqGSIb3DQEBCwUAMDMxFzAVBgNV +BAoTDkNvZGUgU3ludGhlc2lzMRgwFgYDVQQDEw9uYW1lOmJ1aWxkMi5vcmcwHhcN +MTYwNDMwMTQyNDQ3WhcNMTcwNDMwMTQyNDQ3WjAzMRcwFQYDVQQKEw5Db2RlIFN5 +bnRoZXNpczEYMBYGA1UEAxMPbmFtZTpidWlsZDIub3JnMIICIjANBgkqhkiG9w0B +AQEFAAOCAg8AMIICCgKCAgEA2rvxJe7MXMIygVTVGfMR4B/MTRRRgbKdLcXaUbu+ +IfdyjGMu34GsUG51WzhcNOmNdLX2FHEiiESAPvVbWOEO+ZQL3IIxbXc8IgiNEpNP +PR58SFNwwd2E6C8pmyN7QhXuy+gpVdwbsN9RWXnXBY9A9JtSt+xBuxeDs/PkdoPH +4O3aL2HB0TUzTPhHZ23BCSzMXIIqJfxEX2g9eKtPPkRMsLd/X0lRqkutjmXlnKXN +CJ8uE8yUcuWtPSfsqSiEfvBpfcrJ4trQzYgiXfNp4Cy434SsVV5wB2Uki9fTRy2H +Y478bHLT2wgqVqCLartkOKTawy8bx0C/uA1mxen4U6P9dcKI4j1/oPmiykl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x1cU5D6gNAxzZMkZhnEQ7u6kXDcLyWJhgXcZhGT0xv +D/x+fIGI1t2XkoOmvuno1MqoDQX3sCYd0bfB/9wwzcNexic= +-----END CERTIFICATE----- +\ diff --git a/tests/pkg/1/build2.org/auth/signature-mismatch/libfoo-1.0.0.tar.gz b/tests/pkg/1/build2.org/auth/signature-mismatch/libfoo-1.0.0.tar.gz new file mode 120000 index 0000000..32e5a3c --- /dev/null +++ b/tests/pkg/1/build2.org/auth/signature-mismatch/libfoo-1.0.0.tar.gz @@ -0,0 +1 @@ +../libfoo-1.0.0.tar.gz \ No newline at end of file diff --git a/tests/pkg/1/build2.org/auth/signature-mismatch/repositories b/tests/pkg/1/build2.org/auth/signature-mismatch/repositories new file mode 100644 index 0000000..9bcb20a --- /dev/null +++ b/tests/pkg/1/build2.org/auth/signature-mismatch/repositories @@ -0,0 +1,33 @@ +: 1 +certificate: \ +-----BEGIN CERTIFICATE----- +MIIFLzCCAxegAwIBAgIJAK41T2Si9cMEMA0GCSqGSIb3DQEBCwUAMDMxFzAVBgNV +BAoTDkNvZGUgU3ludGhlc2lzMRgwFgYDVQQDEw9uYW1lOmJ1aWxkMi5vcmcwHhcN +MTYwNDMwMTQyNDQ3WhcNMTcwNDMwMTQyNDQ3WjAzMRcwFQYDVQQKEw5Db2RlIFN5 +bnRoZXNpczEYMBYGA1UEAxMPbmFtZTpidWlsZDIub3JnMIICIjANBgkqhkiG9w0B +AQEFAAOCAg8AMIICCgKCAgEA2rvxJe7MXMIygVTVGfMR4B/MTRRRgbKdLcXaUbu+ +IfdyjGMu34GsUG51WzhcNOmNdLX2FHEiiESAPvVbWOEO+ZQL3IIxbXc8IgiNEpNP +PR58SFNwwd2E6C8pmyN7QhXuy+gpVdwbsN9RWXnXBY9A9JtSt+xBuxeDs/PkdoPH +4O3aL2HB0TUzTPhHZ23BCSzMXIIqJfxEX2g9eKtPPkRMsLd/X0lRqkutjmXlnKXN +CJ8uE8yUcuWtPSfsqSiEfvBpfcrJ4tr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ZqJ9qi +iaBCixRl2t3our5VSBWQQefGnH6DWn1JM34zyBbeZdgjyqebSN42p+hADYe2qzdf +AviHJsBwvt3HYpr3bfU6EDx1cU5D6gNAxzZMkZhnEQ7u6kXDcLyWJhgXcZhGT0xv +D/x+fIGI1t2XkoOmvuno1MqoDQX3sCYd0bfB/9wwzcNexic= +-----END CERTIFICATE----- +\ diff --git a/tests/pkg/1/build2.org/auth/signed/libfoo-1.0.0.tar.gz b/tests/pkg/1/build2.org/auth/signed/libfoo-1.0.0.tar.gz new file mode 120000 index 0000000..32e5a3c --- /dev/null +++ b/tests/pkg/1/build2.org/auth/signed/libfoo-1.0.0.tar.gz @@ -0,0 +1 @@ +../libfoo-1.0.0.tar.gz \ No newline at end of file diff --git a/tests/pkg/1/build2.org/auth/signed/repositories b/tests/pkg/1/build2.org/auth/signed/repositories new file mode 100644 index 0000000..9bcb20a --- /dev/null +++ b/tests/pkg/1/build2.org/auth/signed/repositories @@ -0,0 +1,33 @@ +: 1 +certificate: \ +-----BEGIN CERTIFICATE----- +MIIFLzCCAxegAwIBAgIJAK41T2Si9cMEMA0GCSqGSIb3DQEBCwUAMDMxFzAVBgNV +BAoTDkNvZGUgU3ludGhlc2lzMRgwFgYDVQQDEw9uYW1lOmJ1aWxkMi5vcmcwHhcN +MTYwNDMwMTQyNDQ3WhcNMTcwNDMwMTQyNDQ3WjAzMRcwFQYDVQQKEw5Db2RlIFN5 +bnRoZXNpczEYMBYGA1UEAxMPbmFtZTpidWlsZDIub3JnMIICIjANBgkqhkiG9w0B +AQEFAAOCAg8AMIICCgKCAgEA2rvxJe7MXMIygVTVGfMR4B/MTRRRgbKdLcXaUbu+ +IfdyjGMu34GsUG51WzhcNOmNdLX2FHEiiESAPvVbWOEO+ZQL3IIxbXc8IgiNEpNP +PR58SFNwwd2E6C8pmyN7QhXuy+gpVdwbsN9RWXnXBY9A9JtSt+xBuxeDs/PkdoPH +4O3aL2HB0TUzTPhHZ23BCSzMXIIqJfxEX2g9eKtP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X +2RwwjVpOPWUxevrPq32Lo3R8obfl2aCLzcuiuheb1EcJLlAH67KqdXLDpvZqJ9qi +iaBCixRl2t3our5VSBWQQefGnH6DWn1JM34zyBbeZdgjyqebSN42p+hADYe2qzdf +AviHJsBwvt3HYpr3bfU6EDx1cU5D6gNAxzZMkZhnEQ7u6kXDcLyWJhgXcZhGT0xv +D/x+fIGI1t2XkoOmvuno1MqoDQX3sCYd0bfB/9wwzcNexic= +-----END CERTIFICATE----- +\ diff --git a/tests/pkg/1/build2.org/auth/unsigned1/libfoo-1.0.0.tar.gz b/tests/pkg/1/build2.org/auth/unsigned1/libfoo-1.0.0.tar.gz new file mode 120000 index 0000000..32e5a3c --- /dev/null +++ b/tests/pkg/1/build2.org/auth/unsigned1/libfoo-1.0.0.tar.gz @@ -0,0 +1 @@ +../libfoo-1.0.0.tar.gz \ No newline at end of file diff --git a/tests/pkg/1/build2.org/auth/unsigned1/repositories b/tests/pkg/1/build2.org/auth/unsigned1/repositories new file mode 100644 index 0000000..5b70556 --- /dev/null +++ b/tests/pkg/1/build2.org/auth/unsigned1/repositories @@ -0,0 +1 @@ +: 1 diff --git a/tests/pkg/1/build2.org/auth/unsigned2/libfoo-1.0.0.tar.gz b/tests/pkg/1/build2.org/auth/unsigned2/libfoo-1.0.0.tar.gz new file mode 120000 index 0000000..32e5a3c --- /dev/null +++ b/tests/pkg/1/build2.org/auth/unsigned2/libfoo-1.0.0.tar.gz @@ -0,0 +1 @@ +../libfoo-1.0.0.tar.gz \ No newline at end of file diff --git a/tests/pkg/1/build2.org/auth/unsigned2/repositories b/tests/pkg/1/build2.org/auth/unsigned2/repositories new file mode 100644 index 0000000..5b70556 --- /dev/null +++ b/tests/pkg/1/build2.org/auth/unsigned2/repositories @@ -0,0 +1 @@ +: 1 diff --git a/tests/pkg/1/build2.org/common/bar/stable/libbar-1.0.0.tar.gz b/tests/pkg/1/build2.org/common/bar/stable/libbar-1.0.0.tar.gz new file mode 100644 index 0000000..d77c1ba Binary files /dev/null and b/tests/pkg/1/build2.org/common/bar/stable/libbar-1.0.0.tar.gz differ diff --git a/tests/pkg/1/build2.org/common/bar/stable/repositories b/tests/pkg/1/build2.org/common/bar/stable/repositories new file mode 100644 index 0000000..b8ecc1f --- /dev/null +++ b/tests/pkg/1/build2.org/common/bar/stable/repositories @@ -0,0 +1,6 @@ +# bar/stable +# +: 1 +location: ../../foo/stable +: + diff --git a/tests/pkg/1/build2.org/common/bar/testing/libbar-1.1.0.tar.gz b/tests/pkg/1/build2.org/common/bar/testing/libbar-1.1.0.tar.gz new file mode 100644 index 0000000..f081804 Binary files /dev/null and b/tests/pkg/1/build2.org/common/bar/testing/libbar-1.1.0.tar.gz differ diff --git a/tests/pkg/1/build2.org/common/bar/testing/repositories b/tests/pkg/1/build2.org/common/bar/testing/repositories new file mode 100644 index 0000000..5ab8cba --- /dev/null +++ b/tests/pkg/1/build2.org/common/bar/testing/repositories @@ -0,0 +1,8 @@ +# bar/testing +# +: 1 +location: ../../foo/testing +: +location: ../stable +role: complement +: diff --git a/tests/pkg/1/build2.org/common/bar/unstable/libbar-1.1.1.tar.gz b/tests/pkg/1/build2.org/common/bar/unstable/libbar-1.1.1.tar.gz new file mode 100644 index 0000000..a0fbdc3 Binary files /dev/null and b/tests/pkg/1/build2.org/common/bar/unstable/libbar-1.1.1.tar.gz differ diff --git a/tests/pkg/1/build2.org/common/bar/unstable/repositories b/tests/pkg/1/build2.org/common/bar/unstable/repositories new file mode 100644 index 0000000..d4ddcf5 --- /dev/null +++ b/tests/pkg/1/build2.org/common/bar/unstable/repositories @@ -0,0 +1,8 @@ +# bar/unstable +# +: 1 +location: ../../foo/testing +: +location: ../testing +role: complement +: diff --git a/tests/pkg/1/build2.org/common/foo/stable/libfoo-1.0.0.tar.gz b/tests/pkg/1/build2.org/common/foo/stable/libfoo-1.0.0.tar.gz new file mode 100644 index 0000000..c29dd9d Binary files /dev/null and b/tests/pkg/1/build2.org/common/foo/stable/libfoo-1.0.0.tar.gz differ diff --git a/tests/pkg/1/build2.org/common/foo/stable/repositories b/tests/pkg/1/build2.org/common/foo/stable/repositories new file mode 100644 index 0000000..13673fb --- /dev/null +++ b/tests/pkg/1/build2.org/common/foo/stable/repositories @@ -0,0 +1,3 @@ +# foo/stable +# +: 1 diff --git a/tests/pkg/1/build2.org/common/foo/testing/libfoo-1.1.0.tar.gz b/tests/pkg/1/build2.org/common/foo/testing/libfoo-1.1.0.tar.gz new file mode 100644 index 0000000..a6c0202 Binary files /dev/null and b/tests/pkg/1/build2.org/common/foo/testing/libfoo-1.1.0.tar.gz differ diff --git a/tests/pkg/1/build2.org/common/foo/testing/repositories b/tests/pkg/1/build2.org/common/foo/testing/repositories new file mode 100644 index 0000000..cd33f88 --- /dev/null +++ b/tests/pkg/1/build2.org/common/foo/testing/repositories @@ -0,0 +1,6 @@ +# foo/testing +# +: 1 +location: ../stable +role: complement +: diff --git a/tests/pkg/1/build2.org/common/hello/libhello-1.0.0+1.tar.gz b/tests/pkg/1/build2.org/common/hello/libhello-1.0.0+1.tar.gz new file mode 100644 index 0000000..eeff2a0 Binary files /dev/null and b/tests/pkg/1/build2.org/common/hello/libhello-1.0.0+1.tar.gz differ diff --git a/tests/pkg/1/build2.org/common/hello/repositories b/tests/pkg/1/build2.org/common/hello/repositories new file mode 100644 index 0000000..bbe8a66 --- /dev/null +++ b/tests/pkg/1/build2.org/common/hello/repositories @@ -0,0 +1,36 @@ +# Hello World repository. Currently does not have any prerequisite +# repositories. +# +: 1 +certificate: \ +-----BEGIN CERTIFICATE----- +MIIFLzCCAxegAwIBAgIJAK41T2Si9cMEMA0GCSqGSIb3DQEBCwUAMDMxFzAVBgNV +BAoTDkNvZGUgU3ludGhlc2lzMRgwFgYDVQQDEw9uYW1lOmJ1aWxkMi5vcmcwHhcN +MTYwNDMwMTQyNDQ3WhcNMTcwNDMwMTQyNDQ3WjAzMRcwFQYDVQQKEw5Db2RlIFN5 +bnRoZXNpczEYMBYGA1UEAxMPbmFtZTpidWlsZDIub3J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MWhd +rVGQm+TUVmXyQwNrYDjqhoGZF02UilIekedegWUEvkXnk5rzyzTaX+GwlnsplVY2 +Xijn8cWkO4cCDkthyjfNPgUm8ZgKuBgs+OYRbW4XtuXgeBucBVCryrM8+3OSmzbs +IBQWL0EDT7bnt2ukE+cUx8Foc/+180KZAdDbUY9MOsYCac3bXnIJd/q1pzkr+OvL +EXnuIGuzUqVkcD4+ABaWefNUm3KeZwBAupYc9eo2/YzpCUsgAe0PAdgJhcg9D4kX +2RwwjVpOPWUxevrPq32Lo3R8obfl2aCLzcuiuheb1EcJLlAH67KqdXLDpvZqJ9qi +iaBCixRl2t3our5VSBWQQefGnH6DWn1JM34zyBbeZdgjyqebSN42p+hADYe2qzdf +AviHJsBwvt3HYpr3bfU6EDx1cU5D6gNAxzZMkZhnEQ7u6kXDcLyWJhgXcZhGT0xv +D/x+fIGI1t2XkoOmvuno1MqoDQX3sCYd0bfB/9wwzcNexic= +-----END CERTIFICATE----- +\ diff --git a/tests/pkg/1/build2.org/common/libhello-1.0.0+1/build/bootstrap.build b/tests/pkg/1/build2.org/common/libhello-1.0.0+1/build/bootstrap.build new file mode 100644 index 0000000..c9bf24d --- /dev/null +++ b/tests/pkg/1/build2.org/common/libhello-1.0.0+1/build/bootstrap.build @@ -0,0 +1,15 @@ +project = libhello +version = 1.0.0 +revision = 1 + +using config +using dist +using test +using install + +dist.package = $project-$version + +if ($revision != 0) +{ + dist.package += +$revision +} diff --git a/tests/pkg/1/build2.org/common/libhello-1.0.0+1/build/export.build b/tests/pkg/1/build2.org/common/libhello-1.0.0+1/build/export.build new file mode 100644 index 0000000..1eb73b7 --- /dev/null +++ b/tests/pkg/1/build2.org/common/libhello-1.0.0+1/build/export.build @@ -0,0 +1,6 @@ +$out_root/: +{ + include hello/ +} + +export $out_root/hello/lib{hello} diff --git a/tests/pkg/1/build2.org/common/libhello-1.0.0+1/build/root.build b/tests/pkg/1/build2.org/common/libhello-1.0.0+1/build/root.build new file mode 100644 index 0000000..ebe16d5 --- /dev/null +++ b/tests/pkg/1/build2.org/common/libhello-1.0.0+1/build/root.build @@ -0,0 +1,10 @@ +using cxx + +hxx{*}: extension = +cxx{*}: extension = cxx + +cxx.std = 11 + +# Don't install tests. +# +tests/: install = false diff --git a/tests/pkg/1/build2.org/common/libhello-1.0.0+1/buildfile b/tests/pkg/1/build2.org/common/libhello-1.0.0+1/buildfile new file mode 100644 index 0000000..f846f89 --- /dev/null +++ b/tests/pkg/1/build2.org/common/libhello-1.0.0+1/buildfile @@ -0,0 +1,3 @@ +d = hello/ tests/ +./: $d doc{version} file{manifest} +include $d diff --git a/tests/pkg/1/build2.org/common/libhello-1.0.0+1/hello/buildfile b/tests/pkg/1/build2.org/common/libhello-1.0.0+1/hello/buildfile new file mode 100644 index 0000000..4903a33 --- /dev/null +++ b/tests/pkg/1/build2.org/common/libhello-1.0.0+1/hello/buildfile @@ -0,0 +1,8 @@ +lib{hello}: {hxx cxx}{hello} + +cxx.poptions += -I$src_root +lib{hello}: cxx.export.poptions = -I$src_root + +# Install into the hello/ subdirectory of, say, /usr/include/. +# +install.include = $install.include/hello diff --git a/tests/pkg/1/build2.org/common/libhello-1.0.0+1/hello/hello b/tests/pkg/1/build2.org/common/libhello-1.0.0+1/hello/hello new file mode 100644 index 0000000..4f85114 --- /dev/null +++ b/tests/pkg/1/build2.org/common/libhello-1.0.0+1/hello/hello @@ -0,0 +1,11 @@ +// file: hello/hello -*- C++ -*- + +#pragma once + +#include + +namespace hello +{ + void + say (const std::string& name); +} diff --git a/tests/pkg/1/build2.org/common/libhello-1.0.0+1/hello/hello.cxx b/tests/pkg/1/build2.org/common/libhello-1.0.0+1/hello/hello.cxx new file mode 100644 index 0000000..65d0aa7 --- /dev/null +++ b/tests/pkg/1/build2.org/common/libhello-1.0.0+1/hello/hello.cxx @@ -0,0 +1,16 @@ +// file: hello/hello.cxx -*- C++ -*- + +#include + +#include + +using namespace std; + +namespace hello +{ + void + say (const string& n) + { + cout << "Hello, " << n << '!' << endl; + } +} diff --git a/tests/pkg/1/build2.org/common/libhello-1.0.0+1/manifest b/tests/pkg/1/build2.org/common/libhello-1.0.0+1/manifest new file mode 100644 index 0000000..82d79c8 --- /dev/null +++ b/tests/pkg/1/build2.org/common/libhello-1.0.0+1/manifest @@ -0,0 +1,13 @@ +: 1 +name: libhello +version: 1.0.0+1 +summary: The "Hello World" example library +license: MIT +tags: c++, hello, world, example +description: \ +A simple library that implements the "Hello World" example in C++. Its primary +goal is to show a canonical build2/bpkg project/package. +\ +url: http://www.example.org/libhello +email: hello-users@example.org +requires: c++11 diff --git a/tests/pkg/1/build2.org/common/libhello-1.0.0+1/tests/build/bootstrap.build b/tests/pkg/1/build2.org/common/libhello-1.0.0+1/tests/build/bootstrap.build new file mode 100644 index 0000000..2c2de24 --- /dev/null +++ b/tests/pkg/1/build2.org/common/libhello-1.0.0+1/tests/build/bootstrap.build @@ -0,0 +1,5 @@ +project = # Unnamed subproject. + +using config +using dist +using test diff --git a/tests/pkg/1/build2.org/common/libhello-1.0.0+1/tests/build/root.build b/tests/pkg/1/build2.org/common/libhello-1.0.0+1/tests/build/root.build new file mode 100644 index 0000000..672eda8 --- /dev/null +++ b/tests/pkg/1/build2.org/common/libhello-1.0.0+1/tests/build/root.build @@ -0,0 +1,10 @@ +using cxx + +hxx{*}: extension = +cxx{*}: extension = cxx + +cxx.std = 11 + +# Every exe{} in this subproject is by default a test. +# +test.exe = true diff --git a/tests/pkg/1/build2.org/common/libhello-1.0.0+1/tests/buildfile b/tests/pkg/1/build2.org/common/libhello-1.0.0+1/tests/buildfile new file mode 100644 index 0000000..4dcbe2a --- /dev/null +++ b/tests/pkg/1/build2.org/common/libhello-1.0.0+1/tests/buildfile @@ -0,0 +1,3 @@ +d = test/ +./: $d +include $d diff --git a/tests/pkg/1/build2.org/common/libhello-1.0.0+1/tests/test/buildfile b/tests/pkg/1/build2.org/common/libhello-1.0.0+1/tests/test/buildfile new file mode 100644 index 0000000..a46969d --- /dev/null +++ b/tests/pkg/1/build2.org/common/libhello-1.0.0+1/tests/test/buildfile @@ -0,0 +1,4 @@ +import libs = libhello%lib{hello} + +exe{driver}: cxx{driver} $libs +exe{driver}: test.output = test.out diff --git a/tests/pkg/1/build2.org/common/libhello-1.0.0+1/tests/test/driver.cxx b/tests/pkg/1/build2.org/common/libhello-1.0.0+1/tests/test/driver.cxx new file mode 100644 index 0000000..59bfb2d --- /dev/null +++ b/tests/pkg/1/build2.org/common/libhello-1.0.0+1/tests/test/driver.cxx @@ -0,0 +1,11 @@ +// file: tests/test/driver.cxx -*- C++ -*- + +#include + +int +main () +{ + using hello::say; + + say ("World"); +} diff --git a/tests/pkg/1/build2.org/common/libhello-1.0.0+1/tests/test/test.out b/tests/pkg/1/build2.org/common/libhello-1.0.0+1/tests/test/test.out new file mode 100644 index 0000000..8ab686e --- /dev/null +++ b/tests/pkg/1/build2.org/common/libhello-1.0.0+1/tests/test/test.out @@ -0,0 +1 @@ +Hello, World! diff --git a/tests/pkg/1/build2.org/common/libhello-1.0.0+1/version b/tests/pkg/1/build2.org/common/libhello-1.0.0+1/version new file mode 100644 index 0000000..3eefcb9 --- /dev/null +++ b/tests/pkg/1/build2.org/common/libhello-1.0.0+1/version @@ -0,0 +1 @@ +1.0.0 diff --git a/tests/pkg/1/build2.org/common/not-a-package.tar.gz b/tests/pkg/1/build2.org/common/not-a-package.tar.gz new file mode 100644 index 0000000..aa10905 Binary files /dev/null and b/tests/pkg/1/build2.org/common/not-a-package.tar.gz differ diff --git a/tests/pkg/1/build2.org/depend/stable/libbar-1.0.0.tar.gz b/tests/pkg/1/build2.org/depend/stable/libbar-1.0.0.tar.gz new file mode 100644 index 0000000..0ae6e26 Binary files /dev/null and b/tests/pkg/1/build2.org/depend/stable/libbar-1.0.0.tar.gz differ diff --git a/tests/pkg/1/build2.org/depend/stable/libbar-1.1.0.tar.gz b/tests/pkg/1/build2.org/depend/stable/libbar-1.1.0.tar.gz new file mode 100644 index 0000000..39dbdf4 Binary files /dev/null and b/tests/pkg/1/build2.org/depend/stable/libbar-1.1.0.tar.gz differ diff --git a/tests/pkg/1/build2.org/depend/stable/libbar-1.2.0.tar.gz b/tests/pkg/1/build2.org/depend/stable/libbar-1.2.0.tar.gz new file mode 100644 index 0000000..3a034ff Binary files /dev/null and b/tests/pkg/1/build2.org/depend/stable/libbar-1.2.0.tar.gz differ diff --git a/tests/pkg/1/build2.org/depend/stable/libbar-1.3.0.tar.gz b/tests/pkg/1/build2.org/depend/stable/libbar-1.3.0.tar.gz new file mode 100644 index 0000000..19d5a6f Binary files /dev/null and b/tests/pkg/1/build2.org/depend/stable/libbar-1.3.0.tar.gz differ diff --git a/tests/pkg/1/build2.org/depend/stable/libfoo-1.0.0.tar.gz b/tests/pkg/1/build2.org/depend/stable/libfoo-1.0.0.tar.gz new file mode 100644 index 0000000..28a6a90 Binary files /dev/null and b/tests/pkg/1/build2.org/depend/stable/libfoo-1.0.0.tar.gz differ diff --git a/tests/pkg/1/build2.org/depend/stable/libfoo-1.1.0.tar.gz b/tests/pkg/1/build2.org/depend/stable/libfoo-1.1.0.tar.gz new file mode 100644 index 0000000..e03481f Binary files /dev/null and b/tests/pkg/1/build2.org/depend/stable/libfoo-1.1.0.tar.gz differ diff --git a/tests/pkg/1/build2.org/depend/stable/libfoo-1.2.0.tar.gz b/tests/pkg/1/build2.org/depend/stable/libfoo-1.2.0.tar.gz new file mode 100644 index 0000000..aad6906 Binary files /dev/null and b/tests/pkg/1/build2.org/depend/stable/libfoo-1.2.0.tar.gz differ diff --git a/tests/pkg/1/build2.org/depend/stable/repositories b/tests/pkg/1/build2.org/depend/stable/repositories new file mode 100644 index 0000000..5b70556 --- /dev/null +++ b/tests/pkg/1/build2.org/depend/stable/repositories @@ -0,0 +1 @@ +: 1 diff --git a/tests/pkg/1/build2.org/fetch/libfoo-1.0.0.tar.gz b/tests/pkg/1/build2.org/fetch/libfoo-1.0.0.tar.gz new file mode 100644 index 0000000..28a6a90 Binary files /dev/null and b/tests/pkg/1/build2.org/fetch/libfoo-1.0.0.tar.gz differ diff --git a/tests/pkg/1/build2.org/fetch/libfoo-1.1.0.tar.gz b/tests/pkg/1/build2.org/fetch/libfoo-1.1.0.tar.gz new file mode 100644 index 0000000..e03481f Binary files /dev/null and b/tests/pkg/1/build2.org/fetch/libfoo-1.1.0.tar.gz differ diff --git a/tests/pkg/1/build2.org/fetch/libfoo-1.1.0/build/bootstrap.build b/tests/pkg/1/build2.org/fetch/libfoo-1.1.0/build/bootstrap.build new file mode 100644 index 0000000..54f267e --- /dev/null +++ b/tests/pkg/1/build2.org/fetch/libfoo-1.1.0/build/bootstrap.build @@ -0,0 +1,2 @@ +project = fetch-libfoo +using config diff --git a/tests/pkg/1/build2.org/fetch/libfoo-1.1.0/buildfile b/tests/pkg/1/build2.org/fetch/libfoo-1.1.0/buildfile new file mode 100644 index 0000000..b3ec74f --- /dev/null +++ b/tests/pkg/1/build2.org/fetch/libfoo-1.1.0/buildfile @@ -0,0 +1 @@ +.: diff --git a/tests/pkg/1/build2.org/fetch/libfoo-1.1.0/manifest b/tests/pkg/1/build2.org/fetch/libfoo-1.1.0/manifest new file mode 100644 index 0000000..3453757 --- /dev/null +++ b/tests/pkg/1/build2.org/fetch/libfoo-1.1.0/manifest @@ -0,0 +1,7 @@ +: 1 +name: libfoo +version: 1.1.0 +summary: libfoo +license: MIT +url: http://example.org +email: pkg@example.org diff --git a/tests/pkg/1/build2.org/fetch/repositories b/tests/pkg/1/build2.org/fetch/repositories new file mode 100644 index 0000000..5b70556 --- /dev/null +++ b/tests/pkg/1/build2.org/fetch/repositories @@ -0,0 +1 @@ +: 1 diff --git a/tests/pkg/1/build2.org/fetch/t1/libfoo-1.0.0.tar.gz b/tests/pkg/1/build2.org/fetch/t1/libfoo-1.0.0.tar.gz new file mode 120000 index 0000000..32e5a3c --- /dev/null +++ b/tests/pkg/1/build2.org/fetch/t1/libfoo-1.0.0.tar.gz @@ -0,0 +1 @@ +../libfoo-1.0.0.tar.gz \ No newline at end of file diff --git a/tests/pkg/1/build2.org/fetch/t1/libfoo-1.1.0.tar.gz b/tests/pkg/1/build2.org/fetch/t1/libfoo-1.1.0.tar.gz new file mode 120000 index 0000000..c004b2a --- /dev/null +++ b/tests/pkg/1/build2.org/fetch/t1/libfoo-1.1.0.tar.gz @@ -0,0 +1 @@ +../libfoo-1.1.0.tar.gz \ No newline at end of file diff --git a/tests/pkg/1/build2.org/fetch/t1/repositories b/tests/pkg/1/build2.org/fetch/t1/repositories new file mode 120000 index 0000000..d965b15 --- /dev/null +++ b/tests/pkg/1/build2.org/fetch/t1/repositories @@ -0,0 +1 @@ +../repositories \ No newline at end of file diff --git a/tests/pkg/1/build2.org/satisfy/libbar-1.0.0.tar.gz b/tests/pkg/1/build2.org/satisfy/libbar-1.0.0.tar.gz new file mode 100644 index 0000000..5dc3a9b Binary files /dev/null and b/tests/pkg/1/build2.org/satisfy/libbar-1.0.0.tar.gz differ diff --git a/tests/pkg/1/build2.org/satisfy/libbar-1.1.0.tar.gz b/tests/pkg/1/build2.org/satisfy/libbar-1.1.0.tar.gz new file mode 100644 index 0000000..881292e Binary files /dev/null and b/tests/pkg/1/build2.org/satisfy/libbar-1.1.0.tar.gz differ diff --git a/tests/pkg/1/build2.org/satisfy/libbar-1.2.0.tar.gz b/tests/pkg/1/build2.org/satisfy/libbar-1.2.0.tar.gz new file mode 100644 index 0000000..4572395 Binary files /dev/null and b/tests/pkg/1/build2.org/satisfy/libbar-1.2.0.tar.gz differ diff --git a/tests/pkg/1/build2.org/satisfy/libbaz-1.0.0.tar.gz b/tests/pkg/1/build2.org/satisfy/libbaz-1.0.0.tar.gz new file mode 100644 index 0000000..1de32b2 Binary files /dev/null and b/tests/pkg/1/build2.org/satisfy/libbaz-1.0.0.tar.gz differ diff --git a/tests/pkg/1/build2.org/satisfy/libbaz-1.1.0.tar.gz b/tests/pkg/1/build2.org/satisfy/libbaz-1.1.0.tar.gz new file mode 100644 index 0000000..1aa72a8 Binary files /dev/null and b/tests/pkg/1/build2.org/satisfy/libbaz-1.1.0.tar.gz differ diff --git a/tests/pkg/1/build2.org/satisfy/libbiz-1.0.0.tar.gz b/tests/pkg/1/build2.org/satisfy/libbiz-1.0.0.tar.gz new file mode 100644 index 0000000..42e3db4 Binary files /dev/null and b/tests/pkg/1/build2.org/satisfy/libbiz-1.0.0.tar.gz differ diff --git a/tests/pkg/1/build2.org/satisfy/libfoo-0.0.0.tar.gz b/tests/pkg/1/build2.org/satisfy/libfoo-0.0.0.tar.gz new file mode 100644 index 0000000..befd2a4 Binary files /dev/null and b/tests/pkg/1/build2.org/satisfy/libfoo-0.0.0.tar.gz differ diff --git a/tests/pkg/1/build2.org/satisfy/libfoo-1.0.0.tar.gz b/tests/pkg/1/build2.org/satisfy/libfoo-1.0.0.tar.gz new file mode 100644 index 0000000..28a6a90 Binary files /dev/null and b/tests/pkg/1/build2.org/satisfy/libfoo-1.0.0.tar.gz differ diff --git a/tests/pkg/1/build2.org/satisfy/libfoo-1.1.0.tar.gz b/tests/pkg/1/build2.org/satisfy/libfoo-1.1.0.tar.gz new file mode 100644 index 0000000..e03481f Binary files /dev/null and b/tests/pkg/1/build2.org/satisfy/libfoo-1.1.0.tar.gz differ diff --git a/tests/pkg/1/build2.org/satisfy/libfoo-1.1.0/build/bootstrap.build b/tests/pkg/1/build2.org/satisfy/libfoo-1.1.0/build/bootstrap.build new file mode 100644 index 0000000..b24ee6a --- /dev/null +++ b/tests/pkg/1/build2.org/satisfy/libfoo-1.1.0/build/bootstrap.build @@ -0,0 +1,2 @@ +project = satisfy-libfoo +using config diff --git a/tests/pkg/1/build2.org/satisfy/libfoo-1.1.0/buildfile b/tests/pkg/1/build2.org/satisfy/libfoo-1.1.0/buildfile new file mode 100644 index 0000000..b3ec74f --- /dev/null +++ b/tests/pkg/1/build2.org/satisfy/libfoo-1.1.0/buildfile @@ -0,0 +1 @@ +.: diff --git a/tests/pkg/1/build2.org/satisfy/libfoo-1.1.0/manifest b/tests/pkg/1/build2.org/satisfy/libfoo-1.1.0/manifest new file mode 100644 index 0000000..3453757 --- /dev/null +++ b/tests/pkg/1/build2.org/satisfy/libfoo-1.1.0/manifest @@ -0,0 +1,7 @@ +: 1 +name: libfoo +version: 1.1.0 +summary: libfoo +license: MIT +url: http://example.org +email: pkg@example.org diff --git a/tests/pkg/1/build2.org/satisfy/libfoo-1.2.0.tar.gz b/tests/pkg/1/build2.org/satisfy/libfoo-1.2.0.tar.gz new file mode 100644 index 0000000..80ce03b Binary files /dev/null and b/tests/pkg/1/build2.org/satisfy/libfoo-1.2.0.tar.gz differ diff --git a/tests/pkg/1/build2.org/satisfy/libfox-1.0.0.tar.gz b/tests/pkg/1/build2.org/satisfy/libfox-1.0.0.tar.gz new file mode 100644 index 0000000..9ba7a31 Binary files /dev/null and b/tests/pkg/1/build2.org/satisfy/libfox-1.0.0.tar.gz differ diff --git a/tests/pkg/1/build2.org/satisfy/repositories b/tests/pkg/1/build2.org/satisfy/repositories new file mode 100644 index 0000000..5b70556 --- /dev/null +++ b/tests/pkg/1/build2.org/satisfy/repositories @@ -0,0 +1 @@ +: 1 diff --git a/tests/pkg/1/build2.org/satisfy/t1/libfoo-1.0.0.tar.gz b/tests/pkg/1/build2.org/satisfy/t1/libfoo-1.0.0.tar.gz new file mode 120000 index 0000000..32e5a3c --- /dev/null +++ b/tests/pkg/1/build2.org/satisfy/t1/libfoo-1.0.0.tar.gz @@ -0,0 +1 @@ +../libfoo-1.0.0.tar.gz \ No newline at end of file diff --git a/tests/pkg/1/build2.org/satisfy/t1/repositories b/tests/pkg/1/build2.org/satisfy/t1/repositories new file mode 120000 index 0000000..d965b15 --- /dev/null +++ b/tests/pkg/1/build2.org/satisfy/t1/repositories @@ -0,0 +1 @@ +../repositories \ No newline at end of file diff --git a/tests/pkg/1/build2.org/satisfy/t2/libbar-1.0.0.tar.gz b/tests/pkg/1/build2.org/satisfy/t2/libbar-1.0.0.tar.gz new file mode 120000 index 0000000..93e8c71 --- /dev/null +++ b/tests/pkg/1/build2.org/satisfy/t2/libbar-1.0.0.tar.gz @@ -0,0 +1 @@ +../libbar-1.0.0.tar.gz \ No newline at end of file diff --git a/tests/pkg/1/build2.org/satisfy/t2/libfoo-1.0.0.tar.gz b/tests/pkg/1/build2.org/satisfy/t2/libfoo-1.0.0.tar.gz new file mode 120000 index 0000000..32e5a3c --- /dev/null +++ b/tests/pkg/1/build2.org/satisfy/t2/libfoo-1.0.0.tar.gz @@ -0,0 +1 @@ +../libfoo-1.0.0.tar.gz \ No newline at end of file diff --git a/tests/pkg/1/build2.org/satisfy/t2/repositories b/tests/pkg/1/build2.org/satisfy/t2/repositories new file mode 120000 index 0000000..d965b15 --- /dev/null +++ b/tests/pkg/1/build2.org/satisfy/t2/repositories @@ -0,0 +1 @@ +../repositories \ No newline at end of file diff --git a/tests/pkg/1/build2.org/satisfy/t3/libbaz-1.0.0.tar.gz b/tests/pkg/1/build2.org/satisfy/t3/libbaz-1.0.0.tar.gz new file mode 120000 index 0000000..189242a --- /dev/null +++ b/tests/pkg/1/build2.org/satisfy/t3/libbaz-1.0.0.tar.gz @@ -0,0 +1 @@ +../libbaz-1.0.0.tar.gz \ No newline at end of file diff --git a/tests/pkg/1/build2.org/satisfy/t3/libfox-1.0.0.tar.gz b/tests/pkg/1/build2.org/satisfy/t3/libfox-1.0.0.tar.gz new file mode 120000 index 0000000..dcfd7aa --- /dev/null +++ b/tests/pkg/1/build2.org/satisfy/t3/libfox-1.0.0.tar.gz @@ -0,0 +1 @@ +../libfox-1.0.0.tar.gz \ No newline at end of file diff --git a/tests/pkg/1/build2.org/satisfy/t3/repositories b/tests/pkg/1/build2.org/satisfy/t3/repositories new file mode 100644 index 0000000..d65b272 --- /dev/null +++ b/tests/pkg/1/build2.org/satisfy/t3/repositories @@ -0,0 +1,4 @@ +: 1 +location: ../t2 +: + diff --git a/tests/pkg/1/build2.org/satisfy/t4a/libfoo-1.1.0.tar.gz b/tests/pkg/1/build2.org/satisfy/t4a/libfoo-1.1.0.tar.gz new file mode 120000 index 0000000..c004b2a --- /dev/null +++ b/tests/pkg/1/build2.org/satisfy/t4a/libfoo-1.1.0.tar.gz @@ -0,0 +1 @@ +../libfoo-1.1.0.tar.gz \ No newline at end of file diff --git a/tests/pkg/1/build2.org/satisfy/t4a/repositories b/tests/pkg/1/build2.org/satisfy/t4a/repositories new file mode 120000 index 0000000..d965b15 --- /dev/null +++ b/tests/pkg/1/build2.org/satisfy/t4a/repositories @@ -0,0 +1 @@ +../repositories \ No newline at end of file diff --git a/tests/pkg/1/build2.org/satisfy/t4b/libbar-1.1.0.tar.gz b/tests/pkg/1/build2.org/satisfy/t4b/libbar-1.1.0.tar.gz new file mode 120000 index 0000000..b9a2de5 --- /dev/null +++ b/tests/pkg/1/build2.org/satisfy/t4b/libbar-1.1.0.tar.gz @@ -0,0 +1 @@ +../libbar-1.1.0.tar.gz \ No newline at end of file diff --git a/tests/pkg/1/build2.org/satisfy/t4b/repositories b/tests/pkg/1/build2.org/satisfy/t4b/repositories new file mode 100644 index 0000000..7b85e71 --- /dev/null +++ b/tests/pkg/1/build2.org/satisfy/t4b/repositories @@ -0,0 +1,3 @@ +: 1 +location: ../t4a +: diff --git a/tests/pkg/1/build2.org/satisfy/t4c/libbaz-1.1.0.tar.gz b/tests/pkg/1/build2.org/satisfy/t4c/libbaz-1.1.0.tar.gz new file mode 120000 index 0000000..0edbce7 --- /dev/null +++ b/tests/pkg/1/build2.org/satisfy/t4c/libbaz-1.1.0.tar.gz @@ -0,0 +1 @@ +../libbaz-1.1.0.tar.gz \ No newline at end of file diff --git a/tests/pkg/1/build2.org/satisfy/t4c/libfoo-1.0.0.tar.gz b/tests/pkg/1/build2.org/satisfy/t4c/libfoo-1.0.0.tar.gz new file mode 120000 index 0000000..32e5a3c --- /dev/null +++ b/tests/pkg/1/build2.org/satisfy/t4c/libfoo-1.0.0.tar.gz @@ -0,0 +1 @@ +../libfoo-1.0.0.tar.gz \ No newline at end of file diff --git a/tests/pkg/1/build2.org/satisfy/t4c/repositories b/tests/pkg/1/build2.org/satisfy/t4c/repositories new file mode 100644 index 0000000..26c0e93 --- /dev/null +++ b/tests/pkg/1/build2.org/satisfy/t4c/repositories @@ -0,0 +1,3 @@ +: 1 +location: ../t4b +: diff --git a/tests/pkg/1/build2.org/satisfy/t4d/libbiz-1.0.0.tar.gz b/tests/pkg/1/build2.org/satisfy/t4d/libbiz-1.0.0.tar.gz new file mode 120000 index 0000000..70c2fda --- /dev/null +++ b/tests/pkg/1/build2.org/satisfy/t4d/libbiz-1.0.0.tar.gz @@ -0,0 +1 @@ +../libbiz-1.0.0.tar.gz \ No newline at end of file diff --git a/tests/pkg/1/build2.org/satisfy/t4d/libfox-1.0.0.tar.gz b/tests/pkg/1/build2.org/satisfy/t4d/libfox-1.0.0.tar.gz new file mode 120000 index 0000000..dcfd7aa --- /dev/null +++ b/tests/pkg/1/build2.org/satisfy/t4d/libfox-1.0.0.tar.gz @@ -0,0 +1 @@ +../libfox-1.0.0.tar.gz \ No newline at end of file diff --git a/tests/pkg/1/build2.org/satisfy/t4d/repositories b/tests/pkg/1/build2.org/satisfy/t4d/repositories new file mode 100644 index 0000000..f0e1983 --- /dev/null +++ b/tests/pkg/1/build2.org/satisfy/t4d/repositories @@ -0,0 +1,3 @@ +: 1 +location: ../t4c +: diff --git a/tests/pkg/1/build2.org/satisfy/t5/libbar-1.2.0.tar.gz b/tests/pkg/1/build2.org/satisfy/t5/libbar-1.2.0.tar.gz new file mode 120000 index 0000000..b4a7773 --- /dev/null +++ b/tests/pkg/1/build2.org/satisfy/t5/libbar-1.2.0.tar.gz @@ -0,0 +1 @@ +../libbar-1.2.0.tar.gz \ No newline at end of file diff --git a/tests/pkg/1/build2.org/satisfy/t5/repositories b/tests/pkg/1/build2.org/satisfy/t5/repositories new file mode 120000 index 0000000..d965b15 --- /dev/null +++ b/tests/pkg/1/build2.org/satisfy/t5/repositories @@ -0,0 +1 @@ +../repositories \ No newline at end of file diff --git a/tests/pkg/1/build2.org/status/extra/libbar-1.1.0+1.tar.gz b/tests/pkg/1/build2.org/status/extra/libbar-1.1.0+1.tar.gz new file mode 100644 index 0000000..890e9e2 Binary files /dev/null and b/tests/pkg/1/build2.org/status/extra/libbar-1.1.0+1.tar.gz differ diff --git a/tests/pkg/1/build2.org/status/extra/repositories b/tests/pkg/1/build2.org/status/extra/repositories new file mode 100644 index 0000000..ecaa454 --- /dev/null +++ b/tests/pkg/1/build2.org/status/extra/repositories @@ -0,0 +1,3 @@ +: 1 +location: ../stable +: diff --git a/tests/pkg/1/build2.org/status/stable/libbar-1.0.0.tar.gz b/tests/pkg/1/build2.org/status/stable/libbar-1.0.0.tar.gz new file mode 100644 index 0000000..97e6e32 Binary files /dev/null and b/tests/pkg/1/build2.org/status/stable/libbar-1.0.0.tar.gz differ diff --git a/tests/pkg/1/build2.org/status/stable/libfoo-1.0.0.tar.gz b/tests/pkg/1/build2.org/status/stable/libfoo-1.0.0.tar.gz new file mode 100644 index 0000000..5e7fa17 Binary files /dev/null and b/tests/pkg/1/build2.org/status/stable/libfoo-1.0.0.tar.gz differ diff --git a/tests/pkg/1/build2.org/status/stable/repositories b/tests/pkg/1/build2.org/status/stable/repositories new file mode 100644 index 0000000..5b70556 --- /dev/null +++ b/tests/pkg/1/build2.org/status/stable/repositories @@ -0,0 +1 @@ +: 1 diff --git a/tests/pkg/1/build2.org/status/testing/libbar-1.0.0+1.tar.gz b/tests/pkg/1/build2.org/status/testing/libbar-1.0.0+1.tar.gz new file mode 100644 index 0000000..5794085 Binary files /dev/null and b/tests/pkg/1/build2.org/status/testing/libbar-1.0.0+1.tar.gz differ diff --git a/tests/pkg/1/build2.org/status/testing/libbar-1.1.0.tar.gz b/tests/pkg/1/build2.org/status/testing/libbar-1.1.0.tar.gz new file mode 100644 index 0000000..b01ac44 Binary files /dev/null and b/tests/pkg/1/build2.org/status/testing/libbar-1.1.0.tar.gz differ diff --git a/tests/pkg/1/build2.org/status/testing/repositories b/tests/pkg/1/build2.org/status/testing/repositories new file mode 100644 index 0000000..7bd7269 --- /dev/null +++ b/tests/pkg/1/build2.org/status/testing/repositories @@ -0,0 +1,6 @@ +: 1 +location: ../stable +role: complement +: +location: ../extra +: diff --git a/tests/pkg/1/build2.org/status/unstable/libbar-2.0.0.tar.gz b/tests/pkg/1/build2.org/status/unstable/libbar-2.0.0.tar.gz new file mode 100644 index 0000000..6cc5890 Binary files /dev/null and b/tests/pkg/1/build2.org/status/unstable/libbar-2.0.0.tar.gz differ diff --git a/tests/pkg/1/build2.org/status/unstable/repositories b/tests/pkg/1/build2.org/status/unstable/repositories new file mode 100644 index 0000000..8f4a5f6 --- /dev/null +++ b/tests/pkg/1/build2.org/status/unstable/repositories @@ -0,0 +1,4 @@ +: 1 +location: ../testing +role: complement +: diff --git a/tests/pkg/publish b/tests/pkg/publish new file mode 100755 index 0000000..00453cc --- /dev/null +++ b/tests/pkg/publish @@ -0,0 +1,17 @@ +#!/bin/sh + +# Some commonly useful addtional options that can be specified via the +# command line: +# +# --dry-run +# --progress +# +rsync -v -rlpt --copy-unsafe-links \ +--prune-empty-dirs --delete-after --delete-excluded $* \ +--include '*/' \ +--include '*.tar.gz' \ +--include 'packages' \ +--include 'repositories' \ +--include 'signature' \ +--exclude '*' \ +1/build2.org/ build2.org:/var/pkg/1/ diff --git a/tests/repository/.gitignore b/tests/repository/.gitignore deleted file mode 100644 index f9ced93..0000000 --- a/tests/repository/.gitignore +++ /dev/null @@ -1 +0,0 @@ -packages diff --git a/tests/repository/1/common/bar/stable/libbar-1.0.0.tar.gz b/tests/repository/1/common/bar/stable/libbar-1.0.0.tar.gz deleted file mode 100644 index d77c1ba..0000000 Binary files a/tests/repository/1/common/bar/stable/libbar-1.0.0.tar.gz and /dev/null differ diff --git a/tests/repository/1/common/bar/stable/repositories b/tests/repository/1/common/bar/stable/repositories deleted file mode 100644 index b8ecc1f..0000000 --- a/tests/repository/1/common/bar/stable/repositories +++ /dev/null @@ -1,6 +0,0 @@ -# bar/stable -# -: 1 -location: ../../foo/stable -: - diff --git a/tests/repository/1/common/bar/testing/libbar-1.1.0.tar.gz b/tests/repository/1/common/bar/testing/libbar-1.1.0.tar.gz deleted file mode 100644 index f081804..0000000 Binary files a/tests/repository/1/common/bar/testing/libbar-1.1.0.tar.gz and /dev/null differ diff --git a/tests/repository/1/common/bar/testing/repositories b/tests/repository/1/common/bar/testing/repositories deleted file mode 100644 index 5ab8cba..0000000 --- a/tests/repository/1/common/bar/testing/repositories +++ /dev/null @@ -1,8 +0,0 @@ -# bar/testing -# -: 1 -location: ../../foo/testing -: -location: ../stable -role: complement -: diff --git a/tests/repository/1/common/bar/unstable/libbar-1.1.1.tar.gz b/tests/repository/1/common/bar/unstable/libbar-1.1.1.tar.gz deleted file mode 100644 index a0fbdc3..0000000 Binary files a/tests/repository/1/common/bar/unstable/libbar-1.1.1.tar.gz and /dev/null differ diff --git a/tests/repository/1/common/bar/unstable/repositories b/tests/repository/1/common/bar/unstable/repositories deleted file mode 100644 index d4ddcf5..0000000 --- a/tests/repository/1/common/bar/unstable/repositories +++ /dev/null @@ -1,8 +0,0 @@ -# bar/unstable -# -: 1 -location: ../../foo/testing -: -location: ../testing -role: complement -: diff --git a/tests/repository/1/common/foo/stable/libfoo-1.0.0.tar.gz b/tests/repository/1/common/foo/stable/libfoo-1.0.0.tar.gz deleted file mode 100644 index c29dd9d..0000000 Binary files a/tests/repository/1/common/foo/stable/libfoo-1.0.0.tar.gz and /dev/null differ diff --git a/tests/repository/1/common/foo/stable/repositories b/tests/repository/1/common/foo/stable/repositories deleted file mode 100644 index 13673fb..0000000 --- a/tests/repository/1/common/foo/stable/repositories +++ /dev/null @@ -1,3 +0,0 @@ -# foo/stable -# -: 1 diff --git a/tests/repository/1/common/foo/testing/libfoo-1.1.0.tar.gz b/tests/repository/1/common/foo/testing/libfoo-1.1.0.tar.gz deleted file mode 100644 index a6c0202..0000000 Binary files a/tests/repository/1/common/foo/testing/libfoo-1.1.0.tar.gz and /dev/null differ diff --git a/tests/repository/1/common/foo/testing/repositories b/tests/repository/1/common/foo/testing/repositories deleted file mode 100644 index cd33f88..0000000 --- a/tests/repository/1/common/foo/testing/repositories +++ /dev/null @@ -1,6 +0,0 @@ -# foo/testing -# -: 1 -location: ../stable -role: complement -: diff --git a/tests/repository/1/common/hello/libhello-1.0.0+1.tar.gz b/tests/repository/1/common/hello/libhello-1.0.0+1.tar.gz deleted file mode 100644 index eeff2a0..0000000 Binary files a/tests/repository/1/common/hello/libhello-1.0.0+1.tar.gz and /dev/null differ diff --git a/tests/repository/1/common/hello/repositories b/tests/repository/1/common/hello/repositories deleted file mode 100644 index eb30fe1..0000000 --- a/tests/repository/1/common/hello/repositories +++ /dev/null @@ -1,4 +0,0 @@ -# Hello World repository. Currently does not have any prerequisite -# repositories. -# -: 1 diff --git a/tests/repository/1/common/libhello-1.0.0+1/build/bootstrap.build b/tests/repository/1/common/libhello-1.0.0+1/build/bootstrap.build deleted file mode 100644 index c9bf24d..0000000 --- a/tests/repository/1/common/libhello-1.0.0+1/build/bootstrap.build +++ /dev/null @@ -1,15 +0,0 @@ -project = libhello -version = 1.0.0 -revision = 1 - -using config -using dist -using test -using install - -dist.package = $project-$version - -if ($revision != 0) -{ - dist.package += +$revision -} diff --git a/tests/repository/1/common/libhello-1.0.0+1/build/export.build b/tests/repository/1/common/libhello-1.0.0+1/build/export.build deleted file mode 100644 index 1eb73b7..0000000 --- a/tests/repository/1/common/libhello-1.0.0+1/build/export.build +++ /dev/null @@ -1,6 +0,0 @@ -$out_root/: -{ - include hello/ -} - -export $out_root/hello/lib{hello} diff --git a/tests/repository/1/common/libhello-1.0.0+1/build/root.build b/tests/repository/1/common/libhello-1.0.0+1/build/root.build deleted file mode 100644 index ebe16d5..0000000 --- a/tests/repository/1/common/libhello-1.0.0+1/build/root.build +++ /dev/null @@ -1,10 +0,0 @@ -using cxx - -hxx{*}: extension = -cxx{*}: extension = cxx - -cxx.std = 11 - -# Don't install tests. -# -tests/: install = false diff --git a/tests/repository/1/common/libhello-1.0.0+1/buildfile b/tests/repository/1/common/libhello-1.0.0+1/buildfile deleted file mode 100644 index f846f89..0000000 --- a/tests/repository/1/common/libhello-1.0.0+1/buildfile +++ /dev/null @@ -1,3 +0,0 @@ -d = hello/ tests/ -./: $d doc{version} file{manifest} -include $d diff --git a/tests/repository/1/common/libhello-1.0.0+1/hello/buildfile b/tests/repository/1/common/libhello-1.0.0+1/hello/buildfile deleted file mode 100644 index 4903a33..0000000 --- a/tests/repository/1/common/libhello-1.0.0+1/hello/buildfile +++ /dev/null @@ -1,8 +0,0 @@ -lib{hello}: {hxx cxx}{hello} - -cxx.poptions += -I$src_root -lib{hello}: cxx.export.poptions = -I$src_root - -# Install into the hello/ subdirectory of, say, /usr/include/. -# -install.include = $install.include/hello diff --git a/tests/repository/1/common/libhello-1.0.0+1/hello/hello b/tests/repository/1/common/libhello-1.0.0+1/hello/hello deleted file mode 100644 index 4f85114..0000000 --- a/tests/repository/1/common/libhello-1.0.0+1/hello/hello +++ /dev/null @@ -1,11 +0,0 @@ -// file: hello/hello -*- C++ -*- - -#pragma once - -#include - -namespace hello -{ - void - say (const std::string& name); -} diff --git a/tests/repository/1/common/libhello-1.0.0+1/hello/hello.cxx b/tests/repository/1/common/libhello-1.0.0+1/hello/hello.cxx deleted file mode 100644 index 65d0aa7..0000000 --- a/tests/repository/1/common/libhello-1.0.0+1/hello/hello.cxx +++ /dev/null @@ -1,16 +0,0 @@ -// file: hello/hello.cxx -*- C++ -*- - -#include - -#include - -using namespace std; - -namespace hello -{ - void - say (const string& n) - { - cout << "Hello, " << n << '!' << endl; - } -} diff --git a/tests/repository/1/common/libhello-1.0.0+1/manifest b/tests/repository/1/common/libhello-1.0.0+1/manifest deleted file mode 100644 index 82d79c8..0000000 --- a/tests/repository/1/common/libhello-1.0.0+1/manifest +++ /dev/null @@ -1,13 +0,0 @@ -: 1 -name: libhello -version: 1.0.0+1 -summary: The "Hello World" example library -license: MIT -tags: c++, hello, world, example -description: \ -A simple library that implements the "Hello World" example in C++. Its primary -goal is to show a canonical build2/bpkg project/package. -\ -url: http://www.example.org/libhello -email: hello-users@example.org -requires: c++11 diff --git a/tests/repository/1/common/libhello-1.0.0+1/tests/build/bootstrap.build b/tests/repository/1/common/libhello-1.0.0+1/tests/build/bootstrap.build deleted file mode 100644 index 2c2de24..0000000 --- a/tests/repository/1/common/libhello-1.0.0+1/tests/build/bootstrap.build +++ /dev/null @@ -1,5 +0,0 @@ -project = # Unnamed subproject. - -using config -using dist -using test diff --git a/tests/repository/1/common/libhello-1.0.0+1/tests/build/root.build b/tests/repository/1/common/libhello-1.0.0+1/tests/build/root.build deleted file mode 100644 index 672eda8..0000000 --- a/tests/repository/1/common/libhello-1.0.0+1/tests/build/root.build +++ /dev/null @@ -1,10 +0,0 @@ -using cxx - -hxx{*}: extension = -cxx{*}: extension = cxx - -cxx.std = 11 - -# Every exe{} in this subproject is by default a test. -# -test.exe = true diff --git a/tests/repository/1/common/libhello-1.0.0+1/tests/buildfile b/tests/repository/1/common/libhello-1.0.0+1/tests/buildfile deleted file mode 100644 index 4dcbe2a..0000000 --- a/tests/repository/1/common/libhello-1.0.0+1/tests/buildfile +++ /dev/null @@ -1,3 +0,0 @@ -d = test/ -./: $d -include $d diff --git a/tests/repository/1/common/libhello-1.0.0+1/tests/test/buildfile b/tests/repository/1/common/libhello-1.0.0+1/tests/test/buildfile deleted file mode 100644 index a46969d..0000000 --- a/tests/repository/1/common/libhello-1.0.0+1/tests/test/buildfile +++ /dev/null @@ -1,4 +0,0 @@ -import libs = libhello%lib{hello} - -exe{driver}: cxx{driver} $libs -exe{driver}: test.output = test.out diff --git a/tests/repository/1/common/libhello-1.0.0+1/tests/test/driver.cxx b/tests/repository/1/common/libhello-1.0.0+1/tests/test/driver.cxx deleted file mode 100644 index 59bfb2d..0000000 --- a/tests/repository/1/common/libhello-1.0.0+1/tests/test/driver.cxx +++ /dev/null @@ -1,11 +0,0 @@ -// file: tests/test/driver.cxx -*- C++ -*- - -#include - -int -main () -{ - using hello::say; - - say ("World"); -} diff --git a/tests/repository/1/common/libhello-1.0.0+1/tests/test/test.out b/tests/repository/1/common/libhello-1.0.0+1/tests/test/test.out deleted file mode 100644 index 8ab686e..0000000 --- a/tests/repository/1/common/libhello-1.0.0+1/tests/test/test.out +++ /dev/null @@ -1 +0,0 @@ -Hello, World! diff --git a/tests/repository/1/common/libhello-1.0.0+1/version b/tests/repository/1/common/libhello-1.0.0+1/version deleted file mode 100644 index 3eefcb9..0000000 --- a/tests/repository/1/common/libhello-1.0.0+1/version +++ /dev/null @@ -1 +0,0 @@ -1.0.0 diff --git a/tests/repository/1/common/not-a-package.tar.gz b/tests/repository/1/common/not-a-package.tar.gz deleted file mode 100644 index aa10905..0000000 Binary files a/tests/repository/1/common/not-a-package.tar.gz and /dev/null differ diff --git a/tests/repository/1/depend/stable/libbar-1.0.0.tar.gz b/tests/repository/1/depend/stable/libbar-1.0.0.tar.gz deleted file mode 100644 index 0ae6e26..0000000 Binary files a/tests/repository/1/depend/stable/libbar-1.0.0.tar.gz and /dev/null differ diff --git a/tests/repository/1/depend/stable/libbar-1.1.0.tar.gz b/tests/repository/1/depend/stable/libbar-1.1.0.tar.gz deleted file mode 100644 index 39dbdf4..0000000 Binary files a/tests/repository/1/depend/stable/libbar-1.1.0.tar.gz and /dev/null differ diff --git a/tests/repository/1/depend/stable/libbar-1.2.0.tar.gz b/tests/repository/1/depend/stable/libbar-1.2.0.tar.gz deleted file mode 100644 index 3a034ff..0000000 Binary files a/tests/repository/1/depend/stable/libbar-1.2.0.tar.gz and /dev/null differ diff --git a/tests/repository/1/depend/stable/libbar-1.3.0.tar.gz b/tests/repository/1/depend/stable/libbar-1.3.0.tar.gz deleted file mode 100644 index 19d5a6f..0000000 Binary files a/tests/repository/1/depend/stable/libbar-1.3.0.tar.gz and /dev/null differ diff --git a/tests/repository/1/depend/stable/libfoo-1.0.0.tar.gz b/tests/repository/1/depend/stable/libfoo-1.0.0.tar.gz deleted file mode 100644 index 28a6a90..0000000 Binary files a/tests/repository/1/depend/stable/libfoo-1.0.0.tar.gz and /dev/null differ diff --git a/tests/repository/1/depend/stable/libfoo-1.1.0.tar.gz b/tests/repository/1/depend/stable/libfoo-1.1.0.tar.gz deleted file mode 100644 index e03481f..0000000 Binary files a/tests/repository/1/depend/stable/libfoo-1.1.0.tar.gz and /dev/null differ diff --git a/tests/repository/1/depend/stable/libfoo-1.2.0.tar.gz b/tests/repository/1/depend/stable/libfoo-1.2.0.tar.gz deleted file mode 100644 index aad6906..0000000 Binary files a/tests/repository/1/depend/stable/libfoo-1.2.0.tar.gz and /dev/null differ diff --git a/tests/repository/1/depend/stable/repositories b/tests/repository/1/depend/stable/repositories deleted file mode 100644 index 5b70556..0000000 --- a/tests/repository/1/depend/stable/repositories +++ /dev/null @@ -1 +0,0 @@ -: 1 diff --git a/tests/repository/1/fetch/libfoo-1.0.0.tar.gz b/tests/repository/1/fetch/libfoo-1.0.0.tar.gz deleted file mode 100644 index 28a6a90..0000000 Binary files a/tests/repository/1/fetch/libfoo-1.0.0.tar.gz and /dev/null differ diff --git a/tests/repository/1/fetch/libfoo-1.1.0.tar.gz b/tests/repository/1/fetch/libfoo-1.1.0.tar.gz deleted file mode 100644 index e03481f..0000000 Binary files a/tests/repository/1/fetch/libfoo-1.1.0.tar.gz and /dev/null differ diff --git a/tests/repository/1/fetch/libfoo-1.1.0/build/bootstrap.build b/tests/repository/1/fetch/libfoo-1.1.0/build/bootstrap.build deleted file mode 100644 index 54f267e..0000000 --- a/tests/repository/1/fetch/libfoo-1.1.0/build/bootstrap.build +++ /dev/null @@ -1,2 +0,0 @@ -project = fetch-libfoo -using config diff --git a/tests/repository/1/fetch/libfoo-1.1.0/buildfile b/tests/repository/1/fetch/libfoo-1.1.0/buildfile deleted file mode 100644 index b3ec74f..0000000 --- a/tests/repository/1/fetch/libfoo-1.1.0/buildfile +++ /dev/null @@ -1 +0,0 @@ -.: diff --git a/tests/repository/1/fetch/libfoo-1.1.0/manifest b/tests/repository/1/fetch/libfoo-1.1.0/manifest deleted file mode 100644 index 3453757..0000000 --- a/tests/repository/1/fetch/libfoo-1.1.0/manifest +++ /dev/null @@ -1,7 +0,0 @@ -: 1 -name: libfoo -version: 1.1.0 -summary: libfoo -license: MIT -url: http://example.org -email: pkg@example.org diff --git a/tests/repository/1/fetch/repositories b/tests/repository/1/fetch/repositories deleted file mode 100644 index 5b70556..0000000 --- a/tests/repository/1/fetch/repositories +++ /dev/null @@ -1 +0,0 @@ -: 1 diff --git a/tests/repository/1/fetch/t1/libfoo-1.0.0.tar.gz b/tests/repository/1/fetch/t1/libfoo-1.0.0.tar.gz deleted file mode 120000 index 32e5a3c..0000000 --- a/tests/repository/1/fetch/t1/libfoo-1.0.0.tar.gz +++ /dev/null @@ -1 +0,0 @@ -../libfoo-1.0.0.tar.gz \ No newline at end of file diff --git a/tests/repository/1/fetch/t1/libfoo-1.1.0.tar.gz b/tests/repository/1/fetch/t1/libfoo-1.1.0.tar.gz deleted file mode 120000 index c004b2a..0000000 --- a/tests/repository/1/fetch/t1/libfoo-1.1.0.tar.gz +++ /dev/null @@ -1 +0,0 @@ -../libfoo-1.1.0.tar.gz \ No newline at end of file diff --git a/tests/repository/1/fetch/t1/repositories b/tests/repository/1/fetch/t1/repositories deleted file mode 120000 index d965b15..0000000 --- a/tests/repository/1/fetch/t1/repositories +++ /dev/null @@ -1 +0,0 @@ -../repositories \ No newline at end of file diff --git a/tests/repository/1/satisfy/libbar-1.0.0.tar.gz b/tests/repository/1/satisfy/libbar-1.0.0.tar.gz deleted file mode 100644 index 5dc3a9b..0000000 Binary files a/tests/repository/1/satisfy/libbar-1.0.0.tar.gz and /dev/null differ diff --git a/tests/repository/1/satisfy/libbar-1.1.0.tar.gz b/tests/repository/1/satisfy/libbar-1.1.0.tar.gz deleted file mode 100644 index 881292e..0000000 Binary files a/tests/repository/1/satisfy/libbar-1.1.0.tar.gz and /dev/null differ diff --git a/tests/repository/1/satisfy/libbar-1.2.0.tar.gz b/tests/repository/1/satisfy/libbar-1.2.0.tar.gz deleted file mode 100644 index 4572395..0000000 Binary files a/tests/repository/1/satisfy/libbar-1.2.0.tar.gz and /dev/null differ diff --git a/tests/repository/1/satisfy/libbaz-1.0.0.tar.gz b/tests/repository/1/satisfy/libbaz-1.0.0.tar.gz deleted file mode 100644 index 1de32b2..0000000 Binary files a/tests/repository/1/satisfy/libbaz-1.0.0.tar.gz and /dev/null differ diff --git a/tests/repository/1/satisfy/libbaz-1.1.0.tar.gz b/tests/repository/1/satisfy/libbaz-1.1.0.tar.gz deleted file mode 100644 index 1aa72a8..0000000 Binary files a/tests/repository/1/satisfy/libbaz-1.1.0.tar.gz and /dev/null differ diff --git a/tests/repository/1/satisfy/libbiz-1.0.0.tar.gz b/tests/repository/1/satisfy/libbiz-1.0.0.tar.gz deleted file mode 100644 index 42e3db4..0000000 Binary files a/tests/repository/1/satisfy/libbiz-1.0.0.tar.gz and /dev/null differ diff --git a/tests/repository/1/satisfy/libfoo-0.0.0.tar.gz b/tests/repository/1/satisfy/libfoo-0.0.0.tar.gz deleted file mode 100644 index befd2a4..0000000 Binary files a/tests/repository/1/satisfy/libfoo-0.0.0.tar.gz and /dev/null differ diff --git a/tests/repository/1/satisfy/libfoo-1.0.0.tar.gz b/tests/repository/1/satisfy/libfoo-1.0.0.tar.gz deleted file mode 100644 index 28a6a90..0000000 Binary files a/tests/repository/1/satisfy/libfoo-1.0.0.tar.gz and /dev/null differ diff --git a/tests/repository/1/satisfy/libfoo-1.1.0.tar.gz b/tests/repository/1/satisfy/libfoo-1.1.0.tar.gz deleted file mode 100644 index e03481f..0000000 Binary files a/tests/repository/1/satisfy/libfoo-1.1.0.tar.gz and /dev/null differ diff --git a/tests/repository/1/satisfy/libfoo-1.1.0/build/bootstrap.build b/tests/repository/1/satisfy/libfoo-1.1.0/build/bootstrap.build deleted file mode 100644 index b24ee6a..0000000 --- a/tests/repository/1/satisfy/libfoo-1.1.0/build/bootstrap.build +++ /dev/null @@ -1,2 +0,0 @@ -project = satisfy-libfoo -using config diff --git a/tests/repository/1/satisfy/libfoo-1.1.0/buildfile b/tests/repository/1/satisfy/libfoo-1.1.0/buildfile deleted file mode 100644 index b3ec74f..0000000 --- a/tests/repository/1/satisfy/libfoo-1.1.0/buildfile +++ /dev/null @@ -1 +0,0 @@ -.: diff --git a/tests/repository/1/satisfy/libfoo-1.1.0/manifest b/tests/repository/1/satisfy/libfoo-1.1.0/manifest deleted file mode 100644 index 3453757..0000000 --- a/tests/repository/1/satisfy/libfoo-1.1.0/manifest +++ /dev/null @@ -1,7 +0,0 @@ -: 1 -name: libfoo -version: 1.1.0 -summary: libfoo -license: MIT -url: http://example.org -email: pkg@example.org diff --git a/tests/repository/1/satisfy/libfoo-1.2.0.tar.gz b/tests/repository/1/satisfy/libfoo-1.2.0.tar.gz deleted file mode 100644 index 80ce03b..0000000 Binary files a/tests/repository/1/satisfy/libfoo-1.2.0.tar.gz and /dev/null differ diff --git a/tests/repository/1/satisfy/libfox-1.0.0.tar.gz b/tests/repository/1/satisfy/libfox-1.0.0.tar.gz deleted file mode 100644 index 9ba7a31..0000000 Binary files a/tests/repository/1/satisfy/libfox-1.0.0.tar.gz and /dev/null differ diff --git a/tests/repository/1/satisfy/repositories b/tests/repository/1/satisfy/repositories deleted file mode 100644 index 5b70556..0000000 --- a/tests/repository/1/satisfy/repositories +++ /dev/null @@ -1 +0,0 @@ -: 1 diff --git a/tests/repository/1/satisfy/t1/libfoo-1.0.0.tar.gz b/tests/repository/1/satisfy/t1/libfoo-1.0.0.tar.gz deleted file mode 120000 index 32e5a3c..0000000 --- a/tests/repository/1/satisfy/t1/libfoo-1.0.0.tar.gz +++ /dev/null @@ -1 +0,0 @@ -../libfoo-1.0.0.tar.gz \ No newline at end of file diff --git a/tests/repository/1/satisfy/t1/repositories b/tests/repository/1/satisfy/t1/repositories deleted file mode 120000 index d965b15..0000000 --- a/tests/repository/1/satisfy/t1/repositories +++ /dev/null @@ -1 +0,0 @@ -../repositories \ No newline at end of file diff --git a/tests/repository/1/satisfy/t2/libbar-1.0.0.tar.gz b/tests/repository/1/satisfy/t2/libbar-1.0.0.tar.gz deleted file mode 120000 index 93e8c71..0000000 --- a/tests/repository/1/satisfy/t2/libbar-1.0.0.tar.gz +++ /dev/null @@ -1 +0,0 @@ -../libbar-1.0.0.tar.gz \ No newline at end of file diff --git a/tests/repository/1/satisfy/t2/libfoo-1.0.0.tar.gz b/tests/repository/1/satisfy/t2/libfoo-1.0.0.tar.gz deleted file mode 120000 index 32e5a3c..0000000 --- a/tests/repository/1/satisfy/t2/libfoo-1.0.0.tar.gz +++ /dev/null @@ -1 +0,0 @@ -../libfoo-1.0.0.tar.gz \ No newline at end of file diff --git a/tests/repository/1/satisfy/t2/repositories b/tests/repository/1/satisfy/t2/repositories deleted file mode 120000 index d965b15..0000000 --- a/tests/repository/1/satisfy/t2/repositories +++ /dev/null @@ -1 +0,0 @@ -../repositories \ No newline at end of file diff --git a/tests/repository/1/satisfy/t3/libbaz-1.0.0.tar.gz b/tests/repository/1/satisfy/t3/libbaz-1.0.0.tar.gz deleted file mode 120000 index 189242a..0000000 --- a/tests/repository/1/satisfy/t3/libbaz-1.0.0.tar.gz +++ /dev/null @@ -1 +0,0 @@ -../libbaz-1.0.0.tar.gz \ No newline at end of file diff --git a/tests/repository/1/satisfy/t3/libfox-1.0.0.tar.gz b/tests/repository/1/satisfy/t3/libfox-1.0.0.tar.gz deleted file mode 120000 index dcfd7aa..0000000 --- a/tests/repository/1/satisfy/t3/libfox-1.0.0.tar.gz +++ /dev/null @@ -1 +0,0 @@ -../libfox-1.0.0.tar.gz \ No newline at end of file diff --git a/tests/repository/1/satisfy/t3/repositories b/tests/repository/1/satisfy/t3/repositories deleted file mode 100644 index d65b272..0000000 --- a/tests/repository/1/satisfy/t3/repositories +++ /dev/null @@ -1,4 +0,0 @@ -: 1 -location: ../t2 -: - diff --git a/tests/repository/1/satisfy/t4a/libfoo-1.1.0.tar.gz b/tests/repository/1/satisfy/t4a/libfoo-1.1.0.tar.gz deleted file mode 120000 index c004b2a..0000000 --- a/tests/repository/1/satisfy/t4a/libfoo-1.1.0.tar.gz +++ /dev/null @@ -1 +0,0 @@ -../libfoo-1.1.0.tar.gz \ No newline at end of file diff --git a/tests/repository/1/satisfy/t4a/repositories b/tests/repository/1/satisfy/t4a/repositories deleted file mode 120000 index d965b15..0000000 --- a/tests/repository/1/satisfy/t4a/repositories +++ /dev/null @@ -1 +0,0 @@ -../repositories \ No newline at end of file diff --git a/tests/repository/1/satisfy/t4b/libbar-1.1.0.tar.gz b/tests/repository/1/satisfy/t4b/libbar-1.1.0.tar.gz deleted file mode 120000 index b9a2de5..0000000 --- a/tests/repository/1/satisfy/t4b/libbar-1.1.0.tar.gz +++ /dev/null @@ -1 +0,0 @@ -../libbar-1.1.0.tar.gz \ No newline at end of file diff --git a/tests/repository/1/satisfy/t4b/repositories b/tests/repository/1/satisfy/t4b/repositories deleted file mode 100644 index 7b85e71..0000000 --- a/tests/repository/1/satisfy/t4b/repositories +++ /dev/null @@ -1,3 +0,0 @@ -: 1 -location: ../t4a -: diff --git a/tests/repository/1/satisfy/t4c/libbaz-1.1.0.tar.gz b/tests/repository/1/satisfy/t4c/libbaz-1.1.0.tar.gz deleted file mode 120000 index 0edbce7..0000000 --- a/tests/repository/1/satisfy/t4c/libbaz-1.1.0.tar.gz +++ /dev/null @@ -1 +0,0 @@ -../libbaz-1.1.0.tar.gz \ No newline at end of file diff --git a/tests/repository/1/satisfy/t4c/libfoo-1.0.0.tar.gz b/tests/repository/1/satisfy/t4c/libfoo-1.0.0.tar.gz deleted file mode 120000 index 32e5a3c..0000000 --- a/tests/repository/1/satisfy/t4c/libfoo-1.0.0.tar.gz +++ /dev/null @@ -1 +0,0 @@ -../libfoo-1.0.0.tar.gz \ No newline at end of file diff --git a/tests/repository/1/satisfy/t4c/repositories b/tests/repository/1/satisfy/t4c/repositories deleted file mode 100644 index 26c0e93..0000000 --- a/tests/repository/1/satisfy/t4c/repositories +++ /dev/null @@ -1,3 +0,0 @@ -: 1 -location: ../t4b -: diff --git a/tests/repository/1/satisfy/t4d/libbiz-1.0.0.tar.gz b/tests/repository/1/satisfy/t4d/libbiz-1.0.0.tar.gz deleted file mode 120000 index 70c2fda..0000000 --- a/tests/repository/1/satisfy/t4d/libbiz-1.0.0.tar.gz +++ /dev/null @@ -1 +0,0 @@ -../libbiz-1.0.0.tar.gz \ No newline at end of file diff --git a/tests/repository/1/satisfy/t4d/libfox-1.0.0.tar.gz b/tests/repository/1/satisfy/t4d/libfox-1.0.0.tar.gz deleted file mode 120000 index dcfd7aa..0000000 --- a/tests/repository/1/satisfy/t4d/libfox-1.0.0.tar.gz +++ /dev/null @@ -1 +0,0 @@ -../libfox-1.0.0.tar.gz \ No newline at end of file diff --git a/tests/repository/1/satisfy/t4d/repositories b/tests/repository/1/satisfy/t4d/repositories deleted file mode 100644 index f0e1983..0000000 --- a/tests/repository/1/satisfy/t4d/repositories +++ /dev/null @@ -1,3 +0,0 @@ -: 1 -location: ../t4c -: diff --git a/tests/repository/1/satisfy/t5/libbar-1.2.0.tar.gz b/tests/repository/1/satisfy/t5/libbar-1.2.0.tar.gz deleted file mode 120000 index b4a7773..0000000 --- a/tests/repository/1/satisfy/t5/libbar-1.2.0.tar.gz +++ /dev/null @@ -1 +0,0 @@ -../libbar-1.2.0.tar.gz \ No newline at end of file diff --git a/tests/repository/1/satisfy/t5/repositories b/tests/repository/1/satisfy/t5/repositories deleted file mode 120000 index d965b15..0000000 --- a/tests/repository/1/satisfy/t5/repositories +++ /dev/null @@ -1 +0,0 @@ -../repositories \ No newline at end of file diff --git a/tests/repository/1/status/extra/libbar-1.1.0+1.tar.gz b/tests/repository/1/status/extra/libbar-1.1.0+1.tar.gz deleted file mode 100644 index 890e9e2..0000000 Binary files a/tests/repository/1/status/extra/libbar-1.1.0+1.tar.gz and /dev/null differ diff --git a/tests/repository/1/status/extra/repositories b/tests/repository/1/status/extra/repositories deleted file mode 100644 index ecaa454..0000000 --- a/tests/repository/1/status/extra/repositories +++ /dev/null @@ -1,3 +0,0 @@ -: 1 -location: ../stable -: diff --git a/tests/repository/1/status/stable/libbar-1.0.0.tar.gz b/tests/repository/1/status/stable/libbar-1.0.0.tar.gz deleted file mode 100644 index 97e6e32..0000000 Binary files a/tests/repository/1/status/stable/libbar-1.0.0.tar.gz and /dev/null differ diff --git a/tests/repository/1/status/stable/libfoo-1.0.0.tar.gz b/tests/repository/1/status/stable/libfoo-1.0.0.tar.gz deleted file mode 100644 index 5e7fa17..0000000 Binary files a/tests/repository/1/status/stable/libfoo-1.0.0.tar.gz and /dev/null differ diff --git a/tests/repository/1/status/stable/repositories b/tests/repository/1/status/stable/repositories deleted file mode 100644 index 5b70556..0000000 --- a/tests/repository/1/status/stable/repositories +++ /dev/null @@ -1 +0,0 @@ -: 1 diff --git a/tests/repository/1/status/testing/libbar-1.0.0+1.tar.gz b/tests/repository/1/status/testing/libbar-1.0.0+1.tar.gz deleted file mode 100644 index 5794085..0000000 Binary files a/tests/repository/1/status/testing/libbar-1.0.0+1.tar.gz and /dev/null differ diff --git a/tests/repository/1/status/testing/libbar-1.1.0.tar.gz b/tests/repository/1/status/testing/libbar-1.1.0.tar.gz deleted file mode 100644 index b01ac44..0000000 Binary files a/tests/repository/1/status/testing/libbar-1.1.0.tar.gz and /dev/null differ diff --git a/tests/repository/1/status/testing/repositories b/tests/repository/1/status/testing/repositories deleted file mode 100644 index 7bd7269..0000000 --- a/tests/repository/1/status/testing/repositories +++ /dev/null @@ -1,6 +0,0 @@ -: 1 -location: ../stable -role: complement -: -location: ../extra -: diff --git a/tests/repository/1/status/unstable/libbar-2.0.0.tar.gz b/tests/repository/1/status/unstable/libbar-2.0.0.tar.gz deleted file mode 100644 index 6cc5890..0000000 Binary files a/tests/repository/1/status/unstable/libbar-2.0.0.tar.gz and /dev/null differ diff --git a/tests/repository/1/status/unstable/repositories b/tests/repository/1/status/unstable/repositories deleted file mode 100644 index 8f4a5f6..0000000 --- a/tests/repository/1/status/unstable/repositories +++ /dev/null @@ -1,4 +0,0 @@ -: 1 -location: ../testing -role: complement -: diff --git a/tests/repository/publish b/tests/repository/publish deleted file mode 100755 index 5d3d0f1..0000000 --- a/tests/repository/publish +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/sh - -# Some commonly useful addtional options that can be specified via the -# command line: -# -# --dry-run -# --progress -# -rsync -v -rlpt --copy-unsafe-links \ ---prune-empty-dirs --delete-after --delete-excluded $* \ ---include '*/' \ ---include '*.tar.gz' \ ---include 'packages' \ ---include 'repositories' \ ---exclude '*' \ -1/ build2.org:/var/bpkg/1/tests/ diff --git a/tests/test.sh b/tests/test.sh index 0cdcd4f..84ad8be 100755 --- a/tests/test.sh +++ b/tests/test.sh @@ -13,7 +13,7 @@ # --remote # Test using the remote repositories. Normally, you would first run the # local test in order to create the repositories, then publish them (see -# repository/publish.sh), and finally run the remote test. +# pkg/publish.sh), and finally run the remote test. # # --valgrind # Run under valgrind (takes forever). @@ -79,15 +79,18 @@ fi bpkg="$bpkg $options" -# Repository location, name, and absolute location prefixes. +# Repository location, name, and absolute location prefixes. Note that the +# local path is carefully crafted so that we end up with the same repository +# names in both cases. This is necessary for the authentication tests to work +# in both cases. # if [ "$remote" = "y" ]; then - rep=https://build2.org/pkg/1/tests - repn=build2.org/tests/ + rep=https://build2.org/bpkg/1 + repn=build2.org/ repa=$rep else - rep=repository/1 - repn=`pwd`/repository/ + rep=pkg/1/build2.org + repn=build2.org/ repa=`pwd`/$rep fi @@ -104,6 +107,11 @@ function test () ops="-d $cfg" fi + if [ "$cmd" = "cfg-fetch" -o \ + "$cmd" = "rep-info" ]; then + ops="$ops --auth all" + fi + if [ -t 0 ]; then $bpkg $cmd $ops $* else @@ -129,6 +137,11 @@ function fail () ops="-d $cfg" fi + if [ "$cmd" = "cfg-fetch" -o \ + "$cmd" = "rep-info" ]; then + ops="$ops --auth all" + fi + if [ "$verbose" = "y" ]; then $bpkg $cmd $ops $* else @@ -164,6 +177,24 @@ function gone () #if false; then +# Repository certificate fingerprint. +# +function rep_cert_fp () +{ + cat $1/repositories | \ + sed -n '/^-----BEGIN CERTIFICATE-----$/,/^-----END CERTIFICATE-----$/p' | \ + openssl x509 -sha256 -noout -fingerprint | \ + sed -n 's/^SHA256 Fingerprint=\(.*\)$/\1/p' +} + +# Edit file with sed. +# +function edit () +{ + local path=$1; shift + sed "$@" $path > $path.bak + mv $path.bak $path +} ## ## Low-level commands. @@ -175,25 +206,25 @@ function gone () ## fail pkg-verify # archive expected fail pkg-verify ./no-such-file # archive does not exist -fail pkg-verify repository/1/common/not-a-package.tar.gz -fail pkg-verify --silent repository/1/common/not-a-package.tar.gz -test pkg-verify repository/1/common/hello/libhello-1.0.0+1.tar.gz +fail pkg-verify pkg/1/build2.org/common/not-a-package.tar.gz +fail pkg-verify --silent pkg/1/build2.org/common/not-a-package.tar.gz +test pkg-verify pkg/1/build2.org/common/hello/libhello-1.0.0+1.tar.gz ## ## rep-create ## -fail rep-create # no 'repositories' file -fail rep-create repository/1/satisfy # unexpected files +fail rep-create # no 'repositories' file +fail rep-create pkg/1/build2.org/satisfy # unexpected files -test rep-create repository/1/common/hello +test rep-create pkg/1/build2.org/common/hello --key key.pem -test rep-create repository/1/common/foo/stable -test rep-create repository/1/common/foo/testing +test rep-create pkg/1/build2.org/common/foo/stable +test rep-create pkg/1/build2.org/common/foo/testing -test rep-create repository/1/common/bar/stable -test rep-create repository/1/common/bar/testing -test rep-create repository/1/common/bar/unstable +test rep-create pkg/1/build2.org/common/bar/stable +test rep-create pkg/1/build2.org/common/bar/testing +test rep-create pkg/1/build2.org/common/bar/unstable ## @@ -201,13 +232,13 @@ test rep-create repository/1/common/bar/unstable ## fail rep-info # repository location expected -test rep-info $rep/common/foo/testing <= 1.1.0) # -test rep-create repository/1/satisfy/t4a -test rep-create repository/1/satisfy/t4b -test rep-create repository/1/satisfy/t4c -test rep-create repository/1/satisfy/t4d +test rep-create pkg/1/build2.org/satisfy/t4a +test rep-create pkg/1/build2.org/satisfy/t4b +test rep-create pkg/1/build2.org/satisfy/t4c +test rep-create pkg/1/build2.org/satisfy/t4d test cfg-create --wipe test cfg-add $rep/satisfy/t4c -test cfg-fetch +test cfg-fetch --trust-yes test pkg-build -p libbaz <> pkg/1/build2.org/auth/signature-mismatch/signature << EOF +signature: \\ +XBjnmXXVHY0RqMI0gL/P4t/vuWwK9JJkLl4Qf2gMxq5k2WQ2CIE56DfG0RaGklgKcI3UxsQZvMQI +5PNtAHJDjteQ+BqY0io8A43KPX+2LKMU+I825sKmPRjCLYleGM3mNndDkWfYtAzYk5AmR2piqRz0 +D7CLq9GIoQQZO4Fw44muaQDMCRcXy8Txx2jDnretQjx/C0ZQw4M/cd6/cKEKUmLITDkBig9oVlSh +tpxHqWz5NTbO3vm8ILc03AwiOJHwZweLb6ocJ6a467IJa+F/xUm9B09k8wFWMs+jHXXzHDE0syv7 +lqWL7SvHSjVFrGVFKS6nx7lCj2b8XFiGlwWIwjY4m/VK/5QmbL/lC4f+ww5XT5NG5iYh/eMaCxCJ +zTg5iZsWNLhrx9uKNrL5xC4z0OONRVOwzu7gsqr0GLWewPyhH0AqJLgOSkw9N7FJwbv2IKNZ88YA +u2YMXNkXytcQvENLVQDX5oxvUMEurUJFOCuYB/SEnpcwkV5h9RtXzIFVy4OCTU2MhQHDEldI8s7w +Hga/ct4WupgE228gGdgwJLCbHx6AWBlS9iL10AdS8JkQ9LaZwTMHHz44f8y00X4MiT06gpgDeoQD +rUyP0KNG65tdWnVTMqg6Q/YXhtRZLHoD6+QbiYLlruR1phu4y4fDt7AKxoXfeme/a86A37UogZY= +\\ +EOF + +# cfg-fetch +# +test cfg-create --wipe +test cfg-add $rep/auth/signed +test cfg-fetch --trust `rep_cert_fp pkg/1/build2.org/auth/signed` +test cfg-fetch +test cfg-fetch --trust-no # certificate is already trusted + +test cfg-create --wipe +test cfg-add $rep/auth/signed +test cfg-fetch --trust-yes +test cfg-fetch + +test cfg-create --wipe +test cfg-add $rep/auth/signed +fail cfg-fetch --trust-no + +test cfg-create --wipe +test cfg-add $rep/auth/signed +fail cfg-fetch --trust-yes --trust-no # inconsistent options + +test cfg-create --wipe +test cfg-add $rep/auth/unsigned1 +test cfg-fetch --trust-yes +test cfg-fetch +test cfg-add $rep/auth/unsigned2 +test cfg-fetch +test cfg-fetch --trust-no # certificates are already trusted + +test cfg-create --wipe +test cfg-add $rep/auth/unsigned1 +fail cfg-fetch --trust-no + +test cfg-create --wipe +test cfg-add $rep/auth/name-mismatch +fail cfg-fetch --trust-yes # certificate name mismatch + +test cfg-create --wipe +test cfg-add $rep/auth/expired +fail cfg-fetch --trust-yes # certificate expired + +test cfg-create --wipe +test cfg-add $rep/auth/sha256sum-mismatch +fail cfg-fetch --trust-yes # packages file checksum mismatch + +test cfg-create --wipe +test cfg-add $rep/auth/signature-mismatch +fail cfg-fetch --trust-yes # packages file signature:mismatch + +# rep-info +# +test cfg-create --wipe +test rep-info --trust-yes -d $cfg $rep/auth/signed <