dsh-remote 0.8.46 → 0.8.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -21
- package/README.en.md +361 -361
- package/README.md +368 -368
- package/cordis.patch.yml +9 -9
- package/lib/binding.js +172 -172
- package/lib/client.js +3637 -3637
- package/lib/credential.js +177 -177
- package/lib/deploy-tasks.js +142 -142
- package/lib/errors.js +87 -87
- package/lib/file-reference.js +457 -457
- package/lib/forwards.js +258 -258
- package/lib/hostkey.js +108 -108
- package/lib/http-transport.js +196 -196
- package/lib/ignore.js +202 -156
- package/lib/index.js +3779 -3747
- package/lib/openssh.js +838 -838
- package/lib/paths.js +225 -225
- package/lib/pool.js +757 -757
- package/lib/registry.js +95 -95
- package/lib/remote-fs.js +148 -143
- package/lib/routes-fs.js +233 -233
- package/lib/search.js +235 -230
- package/lib/sftp-surface.js +76 -76
- package/lib/sshconfig.js +454 -454
- package/lib/sync.js +275 -275
- package/lib/tasks.js +95 -95
- package/lib/telemetry.js +213 -213
- package/lib/update.js +472 -472
- package/lib/web-attach.js +850 -850
- package/lib/web-deploy-skill.js +205 -205
- package/lib/web-deploy.js +694 -694
- package/node_modules/asn1/Jenkinsfile +65 -0
- package/node_modules/asn1/LICENSE +19 -0
- package/node_modules/asn1/README.md +50 -0
- package/node_modules/asn1/lib/ber/errors.js +13 -0
- package/node_modules/asn1/lib/ber/index.js +27 -0
- package/node_modules/asn1/lib/ber/reader.js +262 -0
- package/node_modules/asn1/lib/ber/types.js +36 -0
- package/node_modules/asn1/lib/ber/writer.js +317 -0
- package/node_modules/asn1/lib/index.js +20 -0
- package/node_modules/asn1/package.json +31 -0
- package/node_modules/bcrypt-pbkdf/CONTRIBUTING.md +13 -0
- package/node_modules/bcrypt-pbkdf/LICENSE +66 -0
- package/node_modules/bcrypt-pbkdf/README.md +45 -0
- package/node_modules/bcrypt-pbkdf/index.js +556 -0
- package/node_modules/bcrypt-pbkdf/package.json +15 -0
- package/node_modules/buildcheck/.eslintrc.js +5 -0
- package/node_modules/buildcheck/.github/workflows/ci.yml +88 -0
- package/node_modules/buildcheck/.github/workflows/lint.yml +27 -0
- package/node_modules/buildcheck/.npmignore +3 -0
- package/node_modules/buildcheck/LICENSE +19 -0
- package/node_modules/buildcheck/README.md +106 -0
- package/node_modules/buildcheck/deps/Find-VisualStudio.cs +250 -0
- package/node_modules/buildcheck/lib/findvs.js +361 -0
- package/node_modules/buildcheck/lib/index.js +738 -0
- package/node_modules/buildcheck/package.json +36 -0
- package/node_modules/buildcheck/test/test.js +8 -0
- package/node_modules/cpu-features/.eslintrc.js +5 -0
- package/node_modules/cpu-features/.github/workflows/ci.yml +74 -0
- package/node_modules/cpu-features/.github/workflows/lint.yml +27 -0
- package/node_modules/cpu-features/LICENSE +19 -0
- package/node_modules/cpu-features/README.md +59 -0
- package/node_modules/cpu-features/binding.gyp +16 -0
- package/node_modules/cpu-features/buildcheck.js +32 -0
- package/node_modules/cpu-features/deps/cpu_features/.clang-format +4 -0
- package/node_modules/cpu-features/deps/cpu_features/.dockerignore +31 -0
- package/node_modules/cpu-features/deps/cpu_features/.github/workflows/Dockerfile +5 -0
- package/node_modules/cpu-features/deps/cpu_features/.github/workflows/aarch64_linux_cmake.yml +30 -0
- package/node_modules/cpu-features/deps/cpu_features/.github/workflows/amd64_freebsd_cmake.yml +22 -0
- package/node_modules/cpu-features/deps/cpu_features/.github/workflows/amd64_linux_bazel.yml +26 -0
- package/node_modules/cpu-features/deps/cpu_features/.github/workflows/amd64_linux_cmake.yml +31 -0
- package/node_modules/cpu-features/deps/cpu_features/.github/workflows/amd64_macos_cmake.yml +43 -0
- package/node_modules/cpu-features/deps/cpu_features/.github/workflows/amd64_windows_cmake.yml +25 -0
- package/node_modules/cpu-features/deps/cpu_features/.github/workflows/arm_linux_cmake.yml +31 -0
- package/node_modules/cpu-features/deps/cpu_features/.github/workflows/clang_format.yml +24 -0
- package/node_modules/cpu-features/deps/cpu_features/.github/workflows/mips_linux_cmake.yml +30 -0
- package/node_modules/cpu-features/deps/cpu_features/.github/workflows/power_linux_cmake.yml +29 -0
- package/node_modules/cpu-features/deps/cpu_features/.github/workflows/riscv_linux_cmake.yml +28 -0
- package/node_modules/cpu-features/deps/cpu_features/.github/workflows/s390x_linux_cmake.yml +27 -0
- package/node_modules/cpu-features/deps/cpu_features/.grenrc.yml +21 -0
- package/node_modules/cpu-features/deps/cpu_features/BUILD.bazel +329 -0
- package/node_modules/cpu-features/deps/cpu_features/CMakeLists.txt +261 -0
- package/node_modules/cpu-features/deps/cpu_features/CONTRIBUTING.md +23 -0
- package/node_modules/cpu-features/deps/cpu_features/LICENSE +230 -0
- package/node_modules/cpu-features/deps/cpu_features/README.md +272 -0
- package/node_modules/cpu-features/deps/cpu_features/WORKSPACE +19 -0
- package/node_modules/cpu-features/deps/cpu_features/bazel/ci/README.md +5 -0
- package/node_modules/cpu-features/deps/cpu_features/bazel/platforms.bzl +11 -0
- package/node_modules/cpu-features/deps/cpu_features/cmake/CpuFeaturesConfig.cmake.in +3 -0
- package/node_modules/cpu-features/deps/cpu_features/cmake/CpuFeaturesNdkCompatConfig.cmake.in +3 -0
- package/node_modules/cpu-features/deps/cpu_features/cmake/README.md +30 -0
- package/node_modules/cpu-features/deps/cpu_features/cmake/ci/Makefile +252 -0
- package/node_modules/cpu-features/deps/cpu_features/cmake/ci/README.md +40 -0
- package/node_modules/cpu-features/deps/cpu_features/cmake/ci/doc/docker.dot +64 -0
- package/node_modules/cpu-features/deps/cpu_features/cmake/ci/doc/docker.svg +312 -0
- package/node_modules/cpu-features/deps/cpu_features/cmake/ci/doc/generate_image.sh +7 -0
- package/node_modules/cpu-features/deps/cpu_features/cmake/ci/docker/amd64/Dockerfile +48 -0
- package/node_modules/cpu-features/deps/cpu_features/cmake/ci/docker/toolchain/Dockerfile +34 -0
- package/node_modules/cpu-features/deps/cpu_features/cmake/ci/sample/CMakeLists.txt +22 -0
- package/node_modules/cpu-features/deps/cpu_features/cmake/ci/sample/main.cpp +11 -0
- package/node_modules/cpu-features/deps/cpu_features/cmake/ci/vagrant/freebsd/Vagrantfile +107 -0
- package/node_modules/cpu-features/deps/cpu_features/cmake/googletest.CMakeLists.txt.in +15 -0
- package/node_modules/cpu-features/deps/cpu_features/cpu_features.gyp +105 -0
- package/node_modules/cpu-features/deps/cpu_features/include/cpu_features_cache_info.h +54 -0
- package/node_modules/cpu-features/deps/cpu_features/include/cpu_features_macros.h +384 -0
- package/node_modules/cpu-features/deps/cpu_features/include/cpuinfo_aarch64.h +259 -0
- package/node_modules/cpu-features/deps/cpu_features/include/cpuinfo_arm.h +121 -0
- package/node_modules/cpu-features/deps/cpu_features/include/cpuinfo_mips.h +74 -0
- package/node_modules/cpu-features/deps/cpu_features/include/cpuinfo_ppc.h +149 -0
- package/node_modules/cpu-features/deps/cpu_features/include/cpuinfo_riscv.h +72 -0
- package/node_modules/cpu-features/deps/cpu_features/include/cpuinfo_s390x.h +108 -0
- package/node_modules/cpu-features/deps/cpu_features/include/cpuinfo_x86.h +288 -0
- package/node_modules/cpu-features/deps/cpu_features/include/internal/bit_utils.h +40 -0
- package/node_modules/cpu-features/deps/cpu_features/include/internal/cpuid_x86.h +37 -0
- package/node_modules/cpu-features/deps/cpu_features/include/internal/filesystem.h +39 -0
- package/node_modules/cpu-features/deps/cpu_features/include/internal/hwcaps.h +240 -0
- package/node_modules/cpu-features/deps/cpu_features/include/internal/stack_line_reader.h +49 -0
- package/node_modules/cpu-features/deps/cpu_features/include/internal/string_view.h +110 -0
- package/node_modules/cpu-features/deps/cpu_features/include/internal/windows_utils.h +70 -0
- package/node_modules/cpu-features/deps/cpu_features/ndk_compat/CMakeLists.txt +60 -0
- package/node_modules/cpu-features/deps/cpu_features/ndk_compat/README.md +4 -0
- package/node_modules/cpu-features/deps/cpu_features/ndk_compat/cpu-features.c +205 -0
- package/node_modules/cpu-features/deps/cpu_features/ndk_compat/cpu-features.h +320 -0
- package/node_modules/cpu-features/deps/cpu_features/ndk_compat/ndk-compat-test.c +12 -0
- package/node_modules/cpu-features/deps/cpu_features/patches/0001-Add-Apple-Silicon-Support.patch +456 -0
- package/node_modules/cpu-features/deps/cpu_features/scripts/generate_badges.d +165 -0
- package/node_modules/cpu-features/deps/cpu_features/scripts/make_release.sh +75 -0
- package/node_modules/cpu-features/deps/cpu_features/scripts/run_integration.sh +490 -0
- package/node_modules/cpu-features/deps/cpu_features/scripts/test_integration.sh +79 -0
- package/node_modules/cpu-features/deps/cpu_features/src/copy.inl +19 -0
- package/node_modules/cpu-features/deps/cpu_features/src/define_introspection.inl +86 -0
- package/node_modules/cpu-features/deps/cpu_features/src/define_introspection_and_hwcaps.inl +26 -0
- package/node_modules/cpu-features/deps/cpu_features/src/equals.inl +22 -0
- package/node_modules/cpu-features/deps/cpu_features/src/filesystem.c +62 -0
- package/node_modules/cpu-features/deps/cpu_features/src/hwcaps.c +169 -0
- package/node_modules/cpu-features/deps/cpu_features/src/impl_aarch64__base_implementation.inl +88 -0
- package/node_modules/cpu-features/deps/cpu_features/src/impl_aarch64_linux_or_android.c +79 -0
- package/node_modules/cpu-features/deps/cpu_features/src/impl_aarch64_macos_or_iphone.c +82 -0
- package/node_modules/cpu-features/deps/cpu_features/src/impl_aarch64_windows.c +138 -0
- package/node_modules/cpu-features/deps/cpu_features/src/impl_arm_linux_or_android.c +212 -0
- package/node_modules/cpu-features/deps/cpu_features/src/impl_mips_linux_or_android.c +93 -0
- package/node_modules/cpu-features/deps/cpu_features/src/impl_ppc_linux.c +163 -0
- package/node_modules/cpu-features/deps/cpu_features/src/impl_riscv_linux.c +111 -0
- package/node_modules/cpu-features/deps/cpu_features/src/impl_s390x_linux.c +120 -0
- package/node_modules/cpu-features/deps/cpu_features/src/impl_x86__base_implementation.inl +2055 -0
- package/node_modules/cpu-features/deps/cpu_features/src/impl_x86_freebsd.c +68 -0
- package/node_modules/cpu-features/deps/cpu_features/src/impl_x86_linux_or_android.c +58 -0
- package/node_modules/cpu-features/deps/cpu_features/src/impl_x86_macos.c +57 -0
- package/node_modules/cpu-features/deps/cpu_features/src/impl_x86_windows.c +58 -0
- package/node_modules/cpu-features/deps/cpu_features/src/stack_line_reader.c +132 -0
- package/node_modules/cpu-features/deps/cpu_features/src/string_view.c +192 -0
- package/node_modules/cpu-features/deps/cpu_features/src/utils/list_cpu_features.c +461 -0
- package/node_modules/cpu-features/deps/cpu_features/test/CMakeLists.txt +114 -0
- package/node_modules/cpu-features/deps/cpu_features/test/bit_utils_test.cc +53 -0
- package/node_modules/cpu-features/deps/cpu_features/test/cpuinfo_aarch64_test.cc +396 -0
- package/node_modules/cpu-features/deps/cpu_features/test/cpuinfo_arm_test.cc +384 -0
- package/node_modules/cpu-features/deps/cpu_features/test/cpuinfo_mips_test.cc +176 -0
- package/node_modules/cpu-features/deps/cpu_features/test/cpuinfo_ppc_test.cc +131 -0
- package/node_modules/cpu-features/deps/cpu_features/test/cpuinfo_riscv_test.cc +180 -0
- package/node_modules/cpu-features/deps/cpu_features/test/cpuinfo_s390x_test.cc +82 -0
- package/node_modules/cpu-features/deps/cpu_features/test/cpuinfo_x86_test.cc +1729 -0
- package/node_modules/cpu-features/deps/cpu_features/test/filesystem_for_testing.cc +103 -0
- package/node_modules/cpu-features/deps/cpu_features/test/filesystem_for_testing.h +61 -0
- package/node_modules/cpu-features/deps/cpu_features/test/hwcaps_for_testing.cc +52 -0
- package/node_modules/cpu-features/deps/cpu_features/test/hwcaps_for_testing.h +31 -0
- package/node_modules/cpu-features/deps/cpu_features/test/stack_line_reader_test.cc +132 -0
- package/node_modules/cpu-features/deps/cpu_features/test/string_view_test.cc +202 -0
- package/node_modules/cpu-features/lib/index.js +5 -0
- package/node_modules/cpu-features/package.json +40 -0
- package/node_modules/cpu-features/src/binding.cc +151 -0
- package/node_modules/cpu-features/test/test.js +12 -0
- package/node_modules/nan/.github/workflows/ci.yml +46 -0
- package/node_modules/nan/.pre-commit-config.yaml +8 -0
- package/node_modules/nan/CHANGELOG.md +605 -0
- package/node_modules/nan/CMakeLists.txt +138 -0
- package/node_modules/nan/LICENSE.md +9 -0
- package/node_modules/nan/README.md +457 -0
- package/node_modules/nan/doc/asyncworker.md +146 -0
- package/node_modules/nan/doc/buffers.md +54 -0
- package/node_modules/nan/doc/callback.md +76 -0
- package/node_modules/nan/doc/converters.md +41 -0
- package/node_modules/nan/doc/errors.md +226 -0
- package/node_modules/nan/doc/json.md +62 -0
- package/node_modules/nan/doc/maybe_types.md +583 -0
- package/node_modules/nan/doc/methods.md +689 -0
- package/node_modules/nan/doc/new.md +147 -0
- package/node_modules/nan/doc/node_misc.md +123 -0
- package/node_modules/nan/doc/object_wrappers.md +263 -0
- package/node_modules/nan/doc/persistent.md +296 -0
- package/node_modules/nan/doc/scopes.md +73 -0
- package/node_modules/nan/doc/script.md +58 -0
- package/node_modules/nan/doc/string_bytes.md +81 -0
- package/node_modules/nan/doc/v8_internals.md +211 -0
- package/node_modules/nan/doc/v8_misc.md +85 -0
- package/node_modules/nan/include_dirs.js +1 -0
- package/node_modules/nan/nan.h +3202 -0
- package/node_modules/nan/nan_callbacks.h +141 -0
- package/node_modules/nan/nan_callbacks_12_inl.h +730 -0
- package/node_modules/nan/nan_callbacks_pre_12_inl.h +528 -0
- package/node_modules/nan/nan_converters.h +72 -0
- package/node_modules/nan/nan_converters_43_inl.h +68 -0
- package/node_modules/nan/nan_converters_pre_43_inl.h +42 -0
- package/node_modules/nan/nan_define_own_property_helper.h +29 -0
- package/node_modules/nan/nan_implementation_12_inl.h +446 -0
- package/node_modules/nan/nan_implementation_pre_12_inl.h +263 -0
- package/node_modules/nan/nan_json.h +166 -0
- package/node_modules/nan/nan_maybe_43_inl.h +360 -0
- package/node_modules/nan/nan_maybe_pre_43_inl.h +268 -0
- package/node_modules/nan/nan_new.h +340 -0
- package/node_modules/nan/nan_object_wrap.h +156 -0
- package/node_modules/nan/nan_persistent_12_inl.h +132 -0
- package/node_modules/nan/nan_persistent_pre_12_inl.h +242 -0
- package/node_modules/nan/nan_private.h +73 -0
- package/node_modules/nan/nan_scriptorigin.h +97 -0
- package/node_modules/nan/nan_string_bytes.h +305 -0
- package/node_modules/nan/nan_typedarray_contents.h +96 -0
- package/node_modules/nan/nan_weak.h +453 -0
- package/node_modules/nan/package.json +38 -0
- package/node_modules/nan/tools/1to2.js +412 -0
- package/node_modules/nan/tools/README.md +14 -0
- package/node_modules/nan/tools/package.json +19 -0
- package/node_modules/safer-buffer/LICENSE +21 -0
- package/node_modules/safer-buffer/Porting-Buffer.md +268 -0
- package/node_modules/safer-buffer/Readme.md +156 -0
- package/node_modules/safer-buffer/dangerous.js +58 -0
- package/node_modules/safer-buffer/package.json +34 -0
- package/node_modules/safer-buffer/safer.js +77 -0
- package/node_modules/safer-buffer/tests.js +406 -0
- package/node_modules/ssh2/.eslintignore +4 -0
- package/node_modules/ssh2/.eslintrc.js +5 -0
- package/node_modules/ssh2/.github/workflows/ci.yml +110 -0
- package/node_modules/ssh2/.github/workflows/lint.yml +27 -0
- package/node_modules/ssh2/LICENSE +19 -0
- package/node_modules/ssh2/README.md +1529 -0
- package/node_modules/ssh2/SFTP.md +413 -0
- package/node_modules/ssh2/examples/server-chat.js +238 -0
- package/node_modules/ssh2/examples/sftp-server-download-only.js +134 -0
- package/node_modules/ssh2/install.js +27 -0
- package/node_modules/ssh2/lib/Channel.js +295 -0
- package/node_modules/ssh2/lib/agent.js +1123 -0
- package/node_modules/ssh2/lib/client.js +2176 -0
- package/node_modules/ssh2/lib/http-agents.js +84 -0
- package/node_modules/ssh2/lib/index.js +44 -0
- package/node_modules/ssh2/lib/keygen.js +582 -0
- package/node_modules/ssh2/lib/protocol/Protocol.js +2136 -0
- package/node_modules/ssh2/lib/protocol/SFTP.js +4052 -0
- package/node_modules/ssh2/lib/protocol/constants.js +356 -0
- package/node_modules/ssh2/lib/protocol/crypto/binding.gyp +23 -0
- package/node_modules/ssh2/lib/protocol/crypto/poly1305.js +43 -0
- package/node_modules/ssh2/lib/protocol/crypto/src/binding.cc +2300 -0
- package/node_modules/ssh2/lib/protocol/crypto.js +1602 -0
- package/node_modules/ssh2/lib/protocol/handlers.js +16 -0
- package/node_modules/ssh2/lib/protocol/handlers.misc.js +1285 -0
- package/node_modules/ssh2/lib/protocol/kex.js +1908 -0
- package/node_modules/ssh2/lib/protocol/keyParser.js +1484 -0
- package/node_modules/ssh2/lib/protocol/node-fs-compat.js +115 -0
- package/node_modules/ssh2/lib/protocol/utils.js +356 -0
- package/node_modules/ssh2/lib/protocol/zlib.js +255 -0
- package/node_modules/ssh2/lib/server.js +1380 -0
- package/node_modules/ssh2/lib/utils.js +336 -0
- package/node_modules/ssh2/package.json +49 -0
- package/node_modules/ssh2/test/common.js +316 -0
- package/node_modules/ssh2/test/fixtures/bad_rsa_private_key +26 -0
- package/node_modules/ssh2/test/fixtures/https_cert.pem +33 -0
- package/node_modules/ssh2/test/fixtures/https_key.pem +52 -0
- package/node_modules/ssh2/test/fixtures/id_dsa +12 -0
- package/node_modules/ssh2/test/fixtures/id_ecdsa +5 -0
- package/node_modules/ssh2/test/fixtures/id_rsa +15 -0
- package/node_modules/ssh2/test/fixtures/id_rsa.ppk +26 -0
- package/node_modules/ssh2/test/fixtures/id_rsa_enc +30 -0
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_dsa +21 -0
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_dsa.pub +1 -0
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_dsa.pub.result +7 -0
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_dsa.result +7 -0
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_dsa_enc +22 -0
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_dsa_enc.pub +1 -0
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_dsa_enc.pub.result +7 -0
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_dsa_enc.result +7 -0
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_dsa_enc_gcm +23 -0
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_dsa_enc_gcm.pub +1 -0
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_dsa_enc_gcm.pub.result +7 -0
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_dsa_enc_gcm.result +7 -0
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_ecdsa +9 -0
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_ecdsa.pub +1 -0
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_ecdsa.pub.result +7 -0
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_ecdsa.result +7 -0
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_ecdsa_enc +10 -0
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_ecdsa_enc.pub +1 -0
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_ecdsa_enc.pub.result +8 -0
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_ecdsa_enc.result +7 -0
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_ecdsa_enc_gcm +10 -0
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_ecdsa_enc_gcm.pub +1 -0
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_ecdsa_enc_gcm.pub.result +8 -0
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_ecdsa_enc_gcm.result +7 -0
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_ed25519 +7 -0
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_ed25519.pub +1 -0
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_ed25519.pub.result +7 -0
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_ed25519.result +7 -0
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_rsa +27 -0
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_rsa.pub +1 -0
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_rsa.pub.result +7 -0
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_rsa.result +7 -0
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_rsa_enc +28 -0
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_rsa_enc.pub +1 -0
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_rsa_enc.pub.result +8 -0
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_rsa_enc.result +7 -0
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_rsa_enc_gcm +29 -0
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_rsa_enc_gcm.pub +1 -0
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_rsa_enc_gcm.pub.result +8 -0
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_new_rsa_enc_gcm.result +7 -0
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_dsa +12 -0
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_dsa.pub +1 -0
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_dsa.pub.result +7 -0
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_dsa.result +7 -0
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_dsa_enc +15 -0
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_dsa_enc.pub +1 -0
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_dsa_enc.pub.result +8 -0
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_dsa_enc.result +7 -0
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_ecdsa +5 -0
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_ecdsa.pub +1 -0
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_ecdsa.pub.result +7 -0
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_ecdsa.result +7 -0
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_ecdsa_enc +8 -0
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_ecdsa_enc.pub +1 -0
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_ecdsa_enc.pub.result +8 -0
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_ecdsa_enc.result +7 -0
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_rsa +27 -0
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_rsa.pub +1 -0
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_rsa.pub.result +7 -0
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_rsa.result +7 -0
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_rsa_enc +30 -0
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_rsa_enc.pub +1 -0
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_rsa_enc.pub.result +8 -0
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_rsa_enc.result +7 -0
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_rsa_enc_aes256 +54 -0
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_rsa_enc_aes256.pub +1 -0
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_rsa_enc_aes256.pub.result +6 -0
- package/node_modules/ssh2/test/fixtures/keyParser/openssh_old_rsa_enc_aes256.result +6 -0
- package/node_modules/ssh2/test/fixtures/keyParser/ppk_dsa_enc +17 -0
- package/node_modules/ssh2/test/fixtures/keyParser/ppk_dsa_enc.result +7 -0
- package/node_modules/ssh2/test/fixtures/keyParser/ppk_rsa +26 -0
- package/node_modules/ssh2/test/fixtures/keyParser/ppk_rsa.result +7 -0
- package/node_modules/ssh2/test/fixtures/keyParser/ppk_rsa_enc +18 -0
- package/node_modules/ssh2/test/fixtures/keyParser/ppk_rsa_enc.result +7 -0
- package/node_modules/ssh2/test/fixtures/keyParser/rfc4716_rsa.pub +9 -0
- package/node_modules/ssh2/test/fixtures/keyParser/rfc4716_rsa.pub.result +7 -0
- package/node_modules/ssh2/test/fixtures/keyParser/rfc4716_rsa2.pub +10 -0
- package/node_modules/ssh2/test/fixtures/keyParser/rfc4716_rsa2.pub.result +7 -0
- package/node_modules/ssh2/test/fixtures/keyParser/rfc4716_rsa3.pub +11 -0
- package/node_modules/ssh2/test/fixtures/keyParser/rfc4716_rsa3.pub.result +7 -0
- package/node_modules/ssh2/test/fixtures/keyParser/rfc4716_rsa4.pub +11 -0
- package/node_modules/ssh2/test/fixtures/keyParser/rfc4716_rsa4.pub.result +7 -0
- package/node_modules/ssh2/test/fixtures/keyParser/rfc4716_rsa5.pub +8 -0
- package/node_modules/ssh2/test/fixtures/keyParser/rfc4716_rsa5.pub.result +7 -0
- package/node_modules/ssh2/test/fixtures/keyParser/rfc4716_rsa6.pub +13 -0
- package/node_modules/ssh2/test/fixtures/keyParser/rfc4716_rsa6.pub.result +7 -0
- package/node_modules/ssh2/test/fixtures/openssh_new_rsa +27 -0
- package/node_modules/ssh2/test/fixtures/ssh_host_dsa_key +12 -0
- package/node_modules/ssh2/test/fixtures/ssh_host_ecdsa_key +5 -0
- package/node_modules/ssh2/test/fixtures/ssh_host_rsa_key +15 -0
- package/node_modules/ssh2/test/test-exec.js +578 -0
- package/node_modules/ssh2/test/test-integration-openssh.js +486 -0
- package/node_modules/ssh2/test/test-keygen.js +60 -0
- package/node_modules/ssh2/test/test-misc-client-server.js +1460 -0
- package/node_modules/ssh2/test/test-openssh.js +261 -0
- package/node_modules/ssh2/test/test-protocol-crypto.js +631 -0
- package/node_modules/ssh2/test/test-protocol-keyparser.js +177 -0
- package/node_modules/ssh2/test/test-server-hostkeys.js +138 -0
- package/node_modules/ssh2/test/test-sftp.js +842 -0
- package/node_modules/ssh2/test/test-shell.js +109 -0
- package/node_modules/ssh2/test/test-userauth-agent-openssh.js +110 -0
- package/node_modules/ssh2/test/test-userauth-agent.js +171 -0
- package/node_modules/ssh2/test/test-userauth.js +611 -0
- package/node_modules/ssh2/test/test-worker-imports.js +25 -0
- package/node_modules/ssh2/test/test.js +20 -0
- package/node_modules/ssh2/util/build_pagent.bat +2 -0
- package/node_modules/ssh2/util/pagent.c +88 -0
- package/node_modules/ssh2/util/pagent.exe +0 -0
- package/node_modules/tweetnacl/.npmignore +4 -0
- package/node_modules/tweetnacl/AUTHORS.md +28 -0
- package/node_modules/tweetnacl/CHANGELOG.md +221 -0
- package/node_modules/tweetnacl/LICENSE +24 -0
- package/node_modules/tweetnacl/PULL_REQUEST_TEMPLATE.md +20 -0
- package/node_modules/tweetnacl/README.md +459 -0
- package/node_modules/tweetnacl/nacl-fast.js +2388 -0
- package/node_modules/tweetnacl/nacl-fast.min.js +2 -0
- package/node_modules/tweetnacl/nacl.d.ts +98 -0
- package/node_modules/tweetnacl/nacl.js +1175 -0
- package/node_modules/tweetnacl/nacl.min.js +1 -0
- package/node_modules/tweetnacl/package.json +58 -0
- package/package.json +96 -89
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
PROJECT := cpu_features
|
|
2
|
+
BRANCH := $(shell git rev-parse --abbrev-ref HEAD)
|
|
3
|
+
SHA1 := $(shell git rev-parse --verify HEAD)
|
|
4
|
+
|
|
5
|
+
# General commands
|
|
6
|
+
.PHONY: help
|
|
7
|
+
BOLD=\e[1m
|
|
8
|
+
RESET=\e[0m
|
|
9
|
+
|
|
10
|
+
help:
|
|
11
|
+
@echo -e "${BOLD}SYNOPSIS${RESET}"
|
|
12
|
+
@echo -e "\tmake <target> [NOCACHE=1]"
|
|
13
|
+
@echo
|
|
14
|
+
@echo -e "${BOLD}DESCRIPTION${RESET}"
|
|
15
|
+
@echo -e "\ttest build inside docker container to have a reproductible build."
|
|
16
|
+
@echo
|
|
17
|
+
@echo -e "${BOLD}MAKE TARGETS${RESET}"
|
|
18
|
+
@echo -e "\t${BOLD}help${RESET}: display this help and exit."
|
|
19
|
+
@echo
|
|
20
|
+
@echo -e "\t${BOLD}amd64_<stage>${RESET}: build <stage> docker image using an Ubuntu:latest x86_64 base image."
|
|
21
|
+
@echo -e "\t${BOLD}save_amd64_<stage>${RESET}: Save the <stage> docker image."
|
|
22
|
+
@echo -e "\t${BOLD}sh_amd64_<stage>${RESET}: run a container using the <stage> docker image (debug purpose)."
|
|
23
|
+
@echo -e "\t${BOLD}clean_amd64_<stage>${RESET}: Remove cache and docker image."
|
|
24
|
+
@echo
|
|
25
|
+
@echo -e "\tWith ${BOLD}<stage>${RESET}:"
|
|
26
|
+
@echo -e "\t\t${BOLD}env${RESET}"
|
|
27
|
+
@echo -e "\t\t${BOLD}devel${RESET}"
|
|
28
|
+
@echo -e "\t\t${BOLD}build${RESET}"
|
|
29
|
+
@echo -e "\t\t${BOLD}test${RESET}"
|
|
30
|
+
@echo -e "\t\t${BOLD}install_env${RESET}"
|
|
31
|
+
@echo -e "\t\t${BOLD}install_devel${RESET}"
|
|
32
|
+
@echo -e "\t\t${BOLD}install_build${RESET}"
|
|
33
|
+
@echo -e "\t\t${BOLD}install_test${RESET}"
|
|
34
|
+
@echo -e "\te.g. 'make amd64_build'"
|
|
35
|
+
@echo
|
|
36
|
+
@echo -e "\t${BOLD}<target>_<toolchain_stage>${RESET}: build <stage> docker image for a specific toolchain target."
|
|
37
|
+
@echo -e "\t${BOLD}save_<target>_<toolchain_stage>${RESET}: Save the <stage> docker image for a specific platform."
|
|
38
|
+
@echo -e "\t${BOLD}sh_<target>_<toolchain_stage>${RESET}: run a container using the <stage> docker image specified (debug purpose)."
|
|
39
|
+
@echo -e "\t${BOLD}clean_<target>_<toolchain_stage>${RESET}: Remove cache and docker image."
|
|
40
|
+
@echo
|
|
41
|
+
@echo -e "\tWith ${BOLD}<target>${RESET}:"
|
|
42
|
+
@echo -e "\t\t${BOLD}arm-linux-gnueabihf${RESET} (linaro toolchain)"
|
|
43
|
+
@echo -e "\t\t${BOLD}armv8l-linux-gnueabihf${RESET} (linaro toolchain)"
|
|
44
|
+
@echo -e "\t\t${BOLD}arm-linux-gnueabi${RESET} (linaro toolchain)"
|
|
45
|
+
@echo -e "\t\t${BOLD}armeb-linux-gnueabihf${RESET} (linaro toolchain)"
|
|
46
|
+
@echo -e "\t\t${BOLD}armeb-linux-gnueabi${RESET} (linaro toolchain)"
|
|
47
|
+
@echo -e "\t\t${BOLD}aarch64-linux-gnu${RESET} (linaro toolchain)"
|
|
48
|
+
@echo -e "\t\t${BOLD}aarch64${RESET} (bootlin toolchain)"
|
|
49
|
+
@echo -e "\t\t${BOLD}aarch64_be-linux-gnu${RESET} (linaro toolchain)"
|
|
50
|
+
@echo -e "\t\t${BOLD}aarch64be${RESET} (bootlin toolchain)"
|
|
51
|
+
@echo -e "\t\t${BOLD}mips32${RESET} (codespace toolchain)"
|
|
52
|
+
@echo -e "\t\t${BOLD}mips64${RESET} (codespace toolchain)"
|
|
53
|
+
@echo -e "\t\t${BOLD}mips32el${RESET} (codespace toolchain)"
|
|
54
|
+
@echo -e "\t\t${BOLD}mips64el${RESET} (codespace toolchain)"
|
|
55
|
+
@echo -e "\t\t${BOLD}ppc${RESET} (bootlin toolchain)"
|
|
56
|
+
@echo -e "\t\t${BOLD}ppc64${RESET} (bootlin toolchain)"
|
|
57
|
+
@echo -e "\t\t${BOLD}ppc64le${RESET} (bootlin toolchain)"
|
|
58
|
+
@echo -e "\t\t${BOLD}riscv32${RESET} (bootlin toolchain)"
|
|
59
|
+
@echo -e "\t\t${BOLD}riscv64${RESET} (bootlin toolchain)"
|
|
60
|
+
@echo -e "\t\t${BOLD}s390x${RESET} (bootlin toolchain)"
|
|
61
|
+
@echo
|
|
62
|
+
@echo -e "\tWith ${BOLD}<toolchain_stage>${RESET}:"
|
|
63
|
+
@echo -e "\t\t${BOLD}env${RESET}"
|
|
64
|
+
@echo -e "\t\t${BOLD}devel${RESET}"
|
|
65
|
+
@echo -e "\t\t${BOLD}build${RESET}"
|
|
66
|
+
@echo -e "\t\t${BOLD}test${RESET}"
|
|
67
|
+
@echo -e "\te.g. 'make aarch64_test'"
|
|
68
|
+
@echo
|
|
69
|
+
@echo -e "\t${BOLD}<VM>${RESET}: build the vagrant <VM> virtual machine."
|
|
70
|
+
@echo -e "\t${BOLD}clean_<VM>${RESET}: Remove virtual machine for the specified vm."
|
|
71
|
+
@echo
|
|
72
|
+
@echo -e "\t${BOLD}<VM>${RESET}:"
|
|
73
|
+
@echo -e "\t\t${BOLD}freebsd${RESET} (FreeBSD)"
|
|
74
|
+
@echo
|
|
75
|
+
@echo -e "\t${BOLD}clean${RESET}: Remove cache and ALL docker images."
|
|
76
|
+
@echo
|
|
77
|
+
@echo -e "\t${BOLD}NOCACHE=1${RESET}: use 'docker build --no-cache' when building container (default use cache)."
|
|
78
|
+
@echo
|
|
79
|
+
@echo -e "branch: $(BRANCH)"
|
|
80
|
+
@echo -e "sha1: $(SHA1)"
|
|
81
|
+
|
|
82
|
+
# Need to add cmd_platform to PHONY otherwise target are ignored since they do not
|
|
83
|
+
# contain recipe (using FORCE do not work here)
|
|
84
|
+
.PHONY: all
|
|
85
|
+
all: build
|
|
86
|
+
|
|
87
|
+
# Delete all implicit rules to speed up makefile
|
|
88
|
+
MAKEFLAGS += --no-builtin-rules
|
|
89
|
+
.SUFFIXES:
|
|
90
|
+
# Remove some rules from gmake that .SUFFIXES does not remove.
|
|
91
|
+
SUFFIXES =
|
|
92
|
+
# Keep all intermediate files
|
|
93
|
+
# ToDo: try to remove it later
|
|
94
|
+
.SECONDARY:
|
|
95
|
+
|
|
96
|
+
# Docker image name prefix.
|
|
97
|
+
IMAGE := ${PROJECT}
|
|
98
|
+
|
|
99
|
+
ifdef NOCACHE
|
|
100
|
+
DOCKER_BUILD_CMD := docker build --no-cache
|
|
101
|
+
else
|
|
102
|
+
DOCKER_BUILD_CMD := docker build
|
|
103
|
+
endif
|
|
104
|
+
|
|
105
|
+
DOCKER_RUN_CMD := docker run --rm --init --net=host
|
|
106
|
+
|
|
107
|
+
# $* stem
|
|
108
|
+
# $< first prerequist
|
|
109
|
+
# $@ target name
|
|
110
|
+
|
|
111
|
+
############
|
|
112
|
+
## NATIVE ##
|
|
113
|
+
############
|
|
114
|
+
STAGES = env devel build test install_env install_devel install_build install_test
|
|
115
|
+
|
|
116
|
+
targets_amd64 = $(addprefix amd64_, $(STAGES))
|
|
117
|
+
.PHONY: $(targets_amd64)
|
|
118
|
+
$(targets_amd64): amd64_%: docker/amd64/Dockerfile
|
|
119
|
+
#@docker image rm -f ${IMAGE}:amd64_$* 2>/dev/null
|
|
120
|
+
${DOCKER_BUILD_CMD} \
|
|
121
|
+
--tag ${IMAGE}:amd64_$* \
|
|
122
|
+
--target=$* \
|
|
123
|
+
-f $< \
|
|
124
|
+
../..
|
|
125
|
+
|
|
126
|
+
#$(info Create targets: save_amd64 $(addprefix save_amd64_, $(STAGES)) (debug).)
|
|
127
|
+
save_targets_amd64 = $(addprefix save_amd64_, $(STAGES))
|
|
128
|
+
.PHONY: $(save_targets_amd64)
|
|
129
|
+
$(save_targets_amd64): save_amd64_%: cache/amd64/docker_%.tar
|
|
130
|
+
cache/amd64/docker_%.tar: amd64_%
|
|
131
|
+
@rm -f $@
|
|
132
|
+
mkdir -p cache/amd64
|
|
133
|
+
docker save ${IMAGE}:amd64_$* -o $@
|
|
134
|
+
|
|
135
|
+
#$(info Create targets: $(addprefix sh_amd64_, $(STAGES)) (debug).)
|
|
136
|
+
sh_targets_amd64 = $(addprefix sh_amd64_, $(STAGES))
|
|
137
|
+
.PHONY: $(sh_targets_amd64)
|
|
138
|
+
$(sh_targets_amd64): sh_amd64_%: amd64_%
|
|
139
|
+
${DOCKER_RUN_CMD} -it --name ${IMAGE}_amd64_$* ${IMAGE}:amd64_$*
|
|
140
|
+
|
|
141
|
+
#$(info Create targets: $(addprefix clean_amd64_, $(STAGES)).)
|
|
142
|
+
clean_targets_amd64 = $(addprefix clean_amd64_, $(STAGES))
|
|
143
|
+
.PHONY: clean_amd64 $(clean_targets_amd64)
|
|
144
|
+
clean_amd64: $(clean_targets_amd64)
|
|
145
|
+
$(clean_targets_amd64): clean_amd64_%:
|
|
146
|
+
docker image rm -f ${IMAGE}:amd64_$* 2>/dev/null
|
|
147
|
+
rm -f cache/amd64/docker_$*.tar
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
###############
|
|
151
|
+
## TOOLCHAIN ##
|
|
152
|
+
###############
|
|
153
|
+
TOOLCHAIN_TARGETS = \
|
|
154
|
+
aarch64 aarch64be \
|
|
155
|
+
arm-linux-gnueabihf armv8l-linux-gnueabihf arm-linux-gnueabi armeb-linux-gnueabihf armeb-linux-gnueabi \
|
|
156
|
+
aarch64-linux-gnu aarch64_be-linux-gnu \
|
|
157
|
+
mips32 mips32el mips64 mips64el \
|
|
158
|
+
ppc ppc64 ppc64le \
|
|
159
|
+
riscv32 riscv64 \
|
|
160
|
+
s390x
|
|
161
|
+
TOOLCHAIN_STAGES = env devel build test
|
|
162
|
+
define toolchain-stage-target =
|
|
163
|
+
#$$(info STAGE: $1)
|
|
164
|
+
#$$(info Create targets: toolchain_$1 $(addsuffix _$1, $(TOOLCHAIN_TARGETS)).)
|
|
165
|
+
targets_toolchain_$1 = $(addsuffix _$1, $(TOOLCHAIN_TARGETS))
|
|
166
|
+
.PHONY: toolchain_$1 $$(targets_toolchain_$1)
|
|
167
|
+
toolchain_$1: $$(targets_toolchain_$1)
|
|
168
|
+
$$(targets_toolchain_$1): %_$1: docker/toolchain/Dockerfile
|
|
169
|
+
#@docker image rm -f ${IMAGE}:$$*_$1 2>/dev/null
|
|
170
|
+
${DOCKER_BUILD_CMD} \
|
|
171
|
+
--tag ${IMAGE}:$$*_$1 \
|
|
172
|
+
--build-arg TARGET=$$* \
|
|
173
|
+
--target=$1 \
|
|
174
|
+
-f $$< \
|
|
175
|
+
../..
|
|
176
|
+
|
|
177
|
+
#$$(info Create targets: save_toolchain_$1 $(addprefix save_, $(addsuffix _$1, $(TOOLCHAIN_TARGETS))) (debug).)
|
|
178
|
+
save_targets_toolchain_$1 = $(addprefix save_, $(addsuffix _$1, $(TOOLCHAIN_TARGETS)))
|
|
179
|
+
.PHONY: save_toolchain_$1 $$(save_targets_toolchain_$1)
|
|
180
|
+
save_toolchain_$1: $$(save_targets_toolchain_$1)
|
|
181
|
+
$$(save_targets_toolchain_$1): save_%_$1: cache/%/docker_$1.tar
|
|
182
|
+
cache/%/docker_$1.tar: %_$1
|
|
183
|
+
@rm -f $$@
|
|
184
|
+
mkdir -p cache/$$*
|
|
185
|
+
docker save ${IMAGE}:$$*_$1 -o $$@
|
|
186
|
+
|
|
187
|
+
#$$(info Create targets: $(addprefix sh_, $(addsuffix _$1, $(TOOLCHAIN_TARGETS))) (debug).)
|
|
188
|
+
sh_targets_toolchain_$1 = $(addprefix sh_, $(addsuffix _$1, $(TOOLCHAIN_TARGETS)))
|
|
189
|
+
.PHONY: $$(sh_targets_toolchain_$1)
|
|
190
|
+
$$(sh_targets_toolchain_$1): sh_%_$1: %_$1
|
|
191
|
+
${DOCKER_RUN_CMD} -it --name ${IMAGE}_$$*_$1 ${IMAGE}:$$*_$1
|
|
192
|
+
|
|
193
|
+
#$$(info Create targets: clean_toolchain_$1 $(addprefix clean_, $(addsuffix _$1, $(TOOLCHAIN_TARGETS))).)
|
|
194
|
+
clean_targets_toolchain_$1 = $(addprefix clean_, $(addsuffix _$1, $(TOOLCHAIN_TARGETS)))
|
|
195
|
+
.PHONY: clean_toolchain_$1 $$(clean_targets_toolchain_$1)
|
|
196
|
+
clean_toolchain_$1: $$(clean_targets_toolchain_$1)
|
|
197
|
+
$$(clean_targets_toolchain_$1): clean_%_$1:
|
|
198
|
+
docker image rm -f ${IMAGE}:$$*_$1 2>/dev/null
|
|
199
|
+
rm -f cache/$$*/docker_$1.tar
|
|
200
|
+
endef
|
|
201
|
+
|
|
202
|
+
$(foreach stage,$(TOOLCHAIN_STAGES),$(eval $(call toolchain-stage-target,$(stage))))
|
|
203
|
+
|
|
204
|
+
## MERGE ##
|
|
205
|
+
.PHONY: clean_toolchain
|
|
206
|
+
clean_toolchain: $(addprefix clean_toolchain_, $(TOOLCHAIN_STAGES))
|
|
207
|
+
-rmdir $(addprefix cache/, $(TOOLCHAIN_TARGETS))
|
|
208
|
+
|
|
209
|
+
.PHONY: env devel build test
|
|
210
|
+
env: amd64_env toolchain_env
|
|
211
|
+
devel: amd64_devel toolchain_devel
|
|
212
|
+
build: amd64_build toolchain_build
|
|
213
|
+
test: amd64_test toolchain_test
|
|
214
|
+
|
|
215
|
+
.PHONY: install_env install_devel install_build install_test
|
|
216
|
+
install_env: amd64_install_env
|
|
217
|
+
install_devel: amd64_install_devel
|
|
218
|
+
install_build: amd64_install_build
|
|
219
|
+
install_test: amd64_install_test
|
|
220
|
+
|
|
221
|
+
#############
|
|
222
|
+
## VAGRANT ##
|
|
223
|
+
#############
|
|
224
|
+
VMS = freebsd
|
|
225
|
+
|
|
226
|
+
vms_targets = $(addsuffix _build, $(VMS))
|
|
227
|
+
.PHONY: $(vms_targets)
|
|
228
|
+
$(vms_targets): %_build: vagrant/%/Vagrantfile
|
|
229
|
+
@cd vagrant/$* && vagrant destroy -f
|
|
230
|
+
cd vagrant/$* && vagrant up
|
|
231
|
+
|
|
232
|
+
clean_vms_targets = $(addprefix clean_, $(VMS))
|
|
233
|
+
.PHONY: clean_vms $(clean_vms_targets)
|
|
234
|
+
clean_vms: $(clean_vms_targets)
|
|
235
|
+
$(clean_vms_targets): clean_%:
|
|
236
|
+
cd vagrant/$* && vagrant destroy -f
|
|
237
|
+
-rm -rf vagrant/$*/.vagrant
|
|
238
|
+
|
|
239
|
+
###########
|
|
240
|
+
## CLEAN ##
|
|
241
|
+
###########
|
|
242
|
+
.PHONY: clean
|
|
243
|
+
clean: clean_amd64 clean_toolchain clean_vms
|
|
244
|
+
docker container prune -f
|
|
245
|
+
docker image prune -f
|
|
246
|
+
-rmdir cache
|
|
247
|
+
|
|
248
|
+
.PHONY: distclean
|
|
249
|
+
distclean: clean
|
|
250
|
+
-docker container rm -f $$(docker container ls -aq)
|
|
251
|
+
-docker image rm -f $$(docker image ls -aq)
|
|
252
|
+
-vagrant box remove -f generic/freebsd12
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
## Makefile/Docker testing
|
|
2
|
+
To test the build on various distro, we are using docker containers and a Makefile for orchestration.
|
|
3
|
+
|
|
4
|
+
pros:
|
|
5
|
+
* You are independent of third party CI runner config
|
|
6
|
+
(e.g. [github action virtual-environnments](https://github.com/actions/virtual-environments)).
|
|
7
|
+
* You can run it locally on your linux system.
|
|
8
|
+
* Most CI provide runners with docker and Makefile installed.
|
|
9
|
+
|
|
10
|
+
cons:
|
|
11
|
+
* Only GNU/Linux distro supported.
|
|
12
|
+
|
|
13
|
+
### Usage
|
|
14
|
+
To get the help simply type:
|
|
15
|
+
```sh
|
|
16
|
+
make
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
note: you can also use from top directory
|
|
20
|
+
```sh
|
|
21
|
+
make --directory=cmake/ci
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
### Example
|
|
25
|
+
For example to test mips32 inside an container:
|
|
26
|
+
```sh
|
|
27
|
+
make mips32_test
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
### Docker layers
|
|
31
|
+
Dockerfile is splitted in several stages.
|
|
32
|
+
|
|
33
|
+

|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
## Makefile/Vagrant testing
|
|
37
|
+
To test build for FreeBSD we are using Vagrant and VirtualBox box.
|
|
38
|
+
|
|
39
|
+
This is similar to the docker stuff but use `vagrant` as `docker` cli and
|
|
40
|
+
VirtuaBox to replace the docker engine daemon.
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
@startdot
|
|
2
|
+
digraph DockerDeps {
|
|
3
|
+
//rankdir=BT;
|
|
4
|
+
rankdir=TD;
|
|
5
|
+
node [shape=cylinder, style="rounded,filled", color=black, fillcolor=royalblue];
|
|
6
|
+
DISTRO_IMG [label="ubuntu:latest"];
|
|
7
|
+
PKG [label="packages\ne.g. cmake, g++", shape=box3d];
|
|
8
|
+
SRC [label="git repo", shape=folder];
|
|
9
|
+
SPL [label="sample", shape=folder];
|
|
10
|
+
|
|
11
|
+
subgraph clusterDockerfile {
|
|
12
|
+
ENV_IMG [label="cpu_features:amd64_env\nenv"];
|
|
13
|
+
DEVEL_IMG [label="cpu_features:amd64_devel\ndevel"];
|
|
14
|
+
BUILD_IMG [label="cpu_features:amd64_build\nbuild"];
|
|
15
|
+
TEST_IMG [label="cpu_features:amd64_test\ntest"];
|
|
16
|
+
INSTALL_ENV_IMG [label="cpu_features:amd64_install_env\ninstall_env"];
|
|
17
|
+
INSTALL_DEVEL_IMG [label="cpu_features:amd64_install_devel\ninstall_devel"];
|
|
18
|
+
INSTALL_BUILD_IMG [label="cpu_features:amd64_install_build\ninstall_build"];
|
|
19
|
+
INSTALL_TEST_IMG [label="cpu_features:amd64_install_test\ninstall_test"];
|
|
20
|
+
|
|
21
|
+
ENV_IMG -> DEVEL_IMG;
|
|
22
|
+
DEVEL_IMG -> BUILD_IMG;
|
|
23
|
+
BUILD_IMG -> TEST_IMG;
|
|
24
|
+
|
|
25
|
+
ENV_IMG -> INSTALL_ENV_IMG;
|
|
26
|
+
BUILD_IMG -> INSTALL_ENV_IMG [label="copy install", style="dashed"];
|
|
27
|
+
INSTALL_ENV_IMG -> INSTALL_DEVEL_IMG;
|
|
28
|
+
SPL -> INSTALL_DEVEL_IMG [label="copy", style="dashed"];
|
|
29
|
+
INSTALL_DEVEL_IMG -> INSTALL_BUILD_IMG;
|
|
30
|
+
INSTALL_BUILD_IMG -> INSTALL_TEST_IMG;
|
|
31
|
+
|
|
32
|
+
color=royalblue;
|
|
33
|
+
label = "docker/amd64/Dockerfile";
|
|
34
|
+
}
|
|
35
|
+
DISTRO_IMG -> ENV_IMG;
|
|
36
|
+
PKG -> ENV_IMG [label="install", style="dashed"];
|
|
37
|
+
SRC -> DEVEL_IMG [label="copy", style="dashed"];
|
|
38
|
+
|
|
39
|
+
subgraph clusterCache {
|
|
40
|
+
node [shape=note, style="rounded,filled", color=black, fillcolor=royalblue];
|
|
41
|
+
ENV_TAR [label="docker_amd64_env.tar"];
|
|
42
|
+
DEVEL_TAR [label="docker_amd64_devel.tar"];
|
|
43
|
+
BUILD_TAR [label="docker_amd64_build.tar"];
|
|
44
|
+
TEST_TAR [label="docker_amd64_test.tar"];
|
|
45
|
+
INSTALL_ENV_TAR [label="docker_amd64_install_env.tar"];
|
|
46
|
+
INSTALL_DEVEL_TAR [label="docker_amd64_install_devel.tar"];
|
|
47
|
+
INSTALL_BUILD_TAR [label="docker_amd64_install_build.tar"];
|
|
48
|
+
INSTALL_TEST_TAR [label="docker_amd64_install_test.tar"];
|
|
49
|
+
|
|
50
|
+
edge [color=red];
|
|
51
|
+
ENV_IMG -> ENV_TAR [label="make save_amd64_env"];
|
|
52
|
+
DEVEL_IMG -> DEVEL_TAR [label="make save_amd64_devel"];
|
|
53
|
+
BUILD_IMG -> BUILD_TAR [label="make save_amd64_build"];
|
|
54
|
+
TEST_IMG -> TEST_TAR [label="make save_amd64_test"];
|
|
55
|
+
INSTALL_ENV_IMG -> INSTALL_ENV_TAR [label="make save_amd64_install_env"];
|
|
56
|
+
INSTALL_DEVEL_IMG -> INSTALL_DEVEL_TAR [label="make save_amd64_install_devel"];
|
|
57
|
+
INSTALL_BUILD_IMG -> INSTALL_BUILD_TAR [label="make save_amd64_install_build"];
|
|
58
|
+
INSTALL_TEST_IMG -> INSTALL_TEST_TAR [label="make save_amd64_install_test"];
|
|
59
|
+
|
|
60
|
+
color=royalblue;
|
|
61
|
+
label = "cache/amd64/";
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
@enddot
|