Andreas Tille pushed to branch master at Debian Med / libatomicbitvector


Commits:
cf2343dd by Andreas Tille at 2020-06-04T22:39:52+02:00
Testing

- - - - -


5 changed files:

- + debian/examples
- + debian/install
- debian/rules
- debian/tests/control
- debian/tests/run-unit-test


Changes:

=====================================
debian/examples
=====================================
@@ -0,0 +1 @@
+src/*


=====================================
debian/install
=====================================
@@ -0,0 +1 @@
+include        usr


=====================================
debian/rules
=====================================
@@ -21,11 +21,7 @@ include /usr/share/dpkg/default.mk
        dh $@
 
 ### When overriding auto_test make sure DEB_BUILD_OPTIONS will be respected
-#override_dh_auto_test:
-#ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
-#      do_stuff_for_testing
-#endif
-
-### If you **really** can not use uscan (even not with mode=git) use a 
debian/get-orig-script
-#get-orig-source:
-#      . debian/get-orig-source
+override_dh_auto_test:
+ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
+       bin/test_atomicbitvector 10000000 `nproc`
+endif


=====================================
debian/tests/control
=====================================
@@ -1,3 +1,3 @@
 Tests: run-unit-test
-Depends: @
+Depends: @, build-essential
 Restrictions: allow-stderr


=====================================
debian/tests/run-unit-test
=====================================
@@ -1,14 +1,11 @@
 #!/bin/bash
 set -e
 
-pkg=#PACKAGENAME#
+pkg=libatomicbitvector-dev
 
 export LC_ALL=C.UTF-8
 if [ "${AUTOPKGTEST_TMP}" = "" ] ; then
   AUTOPKGTEST_TMP=$(mktemp -d /tmp/${pkg}-test.XXXXXX)
-  # Double quote below to expand the temporary directory variable now versus
-  # later is on purpose.
-  # shellcheck disable=SC2064
   trap "rm -rf ${AUTOPKGTEST_TMP}" 0 INT QUIT ABRT PIPE TERM
 fi
 
@@ -16,4 +13,6 @@ cp -a /usr/share/doc/${pkg}/examples/* "${AUTOPKGTEST_TMP}"
 
 cd "${AUTOPKGTEST_TMP}"
 
-#do_stuff_to_test_package#
+c++ -O3 -fopenmp -std=gnu++14 -o test_atomicbitvector main.cpp
+
+./test_atomicbitvector 10000000 `nproc`



View it on GitLab: 
https://salsa.debian.org/med-team/libatomicbitvector/-/commit/cf2343dd4937362592bb86cd103bfa38d8e62b99

-- 
View it on GitLab: 
https://salsa.debian.org/med-team/libatomicbitvector/-/commit/cf2343dd4937362592bb86cd103bfa38d8e62b99
You're receiving this email because of your account on salsa.debian.org.


_______________________________________________
debian-med-commit mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-med-commit

Reply via email to