summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordarmac <xiaojun2@hisilicon.com>2020-08-30 04:42:19 +0800
committerGitHub <noreply@github.com>2020-08-29 15:42:19 -0500
commite9ea8d1e815acb74dcb3115929c9cb776365d5d6 (patch)
tree51e0971dc4b67b4c7d315253b1147589090745b2
parent66e006608a94a7a6223a6ff617ea5a9636454c45 (diff)
downloadspack-e9ea8d1e815acb74dcb3115929c9cb776365d5d6.tar.gz
spack-e9ea8d1e815acb74dcb3115929c9cb776365d5d6.tar.bz2
spack-e9ea8d1e815acb74dcb3115929c9cb776365d5d6.tar.xz
spack-e9ea8d1e815acb74dcb3115929c9cb776365d5d6.zip
Add new package: wrk (#18390)
-rw-r--r--var/spack/repos/builtin/packages/wrk/package.py25
1 files changed, 25 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/wrk/package.py b/var/spack/repos/builtin/packages/wrk/package.py
new file mode 100644
index 0000000000..0eaddbd82e
--- /dev/null
+++ b/var/spack/repos/builtin/packages/wrk/package.py
@@ -0,0 +1,25 @@
+# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other
+# Spack Project Developers. See the top-level COPYRIGHT file for details.
+#
+# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+
+from spack import *
+
+
+class Wrk(MakefilePackage):
+ """Wrk is a modern HTTP benchmarking tool capable
+ of generating significant load when run on a single
+ multi-core CPU."""
+
+ homepage = "https://github.com/wg/wrk"
+ url = "https://github.com/wg/wrk/archive/4.1.0.tar.gz"
+
+ version('4.1.0', sha256='6fa1020494de8c337913fd139d7aa1acb9a020de6f7eb9190753aa4b1e74271e')
+ version('4.0.2', sha256='a4a6ad6727733023771163e7250189a9a23e6253b5e5025191baa6092d5a26fb')
+ version('4.0.1', sha256='c03bbc283836cb4b706eb6bfd18e724a8ce475e2c16154c13c6323a845b4327d')
+ version('4.0.0', sha256='8fa8fb05f4663d03c1ca7804367eb602882f9630441bd56e8e9aaf3a2bd26067')
+ version('3.1.2', sha256='da88a25f0eeb9e1fd6a9dcf4a96859e9e758f9446f0787cf7c95e4ccde14eefc')
+
+ def install(self, spec, prefix):
+ mkdirp(prefix.bin)
+ install('wrk', prefix.bin)