summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Scogland <scogland1@llnl.gov>2016-01-26 17:55:32 -0800
committerTom Scogland <scogland1@llnl.gov>2016-01-26 17:55:32 -0800
commit23af31cb1c773cd5a01f93a4896d794ddf908bae (patch)
tree342130ec11c6115c5b7ef18f8cdc5baee948f24a
parentc344b30fc4c09cf9258313df2d1bcaedc0af4c65 (diff)
downloadspack-23af31cb1c773cd5a01f93a4896d794ddf908bae.tar.gz
spack-23af31cb1c773cd5a01f93a4896d794ddf908bae.tar.bz2
spack-23af31cb1c773cd5a01f93a4896d794ddf908bae.tar.xz
spack-23af31cb1c773cd5a01f93a4896d794ddf908bae.zip
adding the cmocka unit testing library
-rw-r--r--var/spack/repos/builtin/packages/cmocka/package.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/cmocka/package.py b/var/spack/repos/builtin/packages/cmocka/package.py
new file mode 100644
index 0000000000..7377016a6b
--- /dev/null
+++ b/var/spack/repos/builtin/packages/cmocka/package.py
@@ -0,0 +1,16 @@
+from spack import *
+
+class Cmocka(Package):
+ """Unit-testing framework in pure C"""
+ homepage = "https://cmocka.org/"
+ url = "https://cmocka.org/files/1.0/cmocka-1.0.1.tar.xz"
+
+ version('1.0.1', 'ed861e501a21a92b2af63e466df2015e')
+ parallel = False
+
+ def install(self, spec, prefix):
+ with working_dir('spack-build', create=True):
+ cmake('..', *std_cmake_args)
+
+ make()
+ make("install")