From: Tom Hromatka Date: Fri, 21 Jun 2019 15:29:41 +0000 (-0600) Subject: tests: Add functional test folder X-Git-Tag: v0.42.rc1~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c984438cb25f6364af73eeeef1d0cc3c524815e0;p=thirdparty%2Flibcgroup.git tests: Add functional test folder This commit adds a folder that will hold the functional tests and their framework. Signed-off-by: Tom Hromatka Reviewed-by: Dhaval Giani Signed-off-by: Dhaval Giani --- diff --git a/configure.in b/configure.in index 81949b12..fafd245d 100644 --- a/configure.in +++ b/configure.in @@ -198,6 +198,7 @@ fi AC_CONFIG_FILES([Makefile tests/Makefile + tests/ftests/Makefile tests/gunit/Makefile tests/tools/testenv.sh tests/tools/Makefile diff --git a/tests/Makefile.am b/tests/Makefile.am index 7f1a0719..6d748dc7 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -1,4 +1,4 @@ -SUBDIRS = gunit tools +SUBDIRS = ftests gunit tools INCLUDES = -I$(top_srcdir)/include LDADD = $(top_builddir)/src/.libs/libcgroup.la diff --git a/tests/ftests/.gitignore b/tests/ftests/.gitignore new file mode 100644 index 00000000..9a54287b --- /dev/null +++ b/tests/ftests/.gitignore @@ -0,0 +1,5 @@ +tmp.conf +*.log +*.pyc +*.swp +*.trs diff --git a/tests/ftests/Makefile.am b/tests/ftests/Makefile.am new file mode 100644 index 00000000..ede06b4e --- /dev/null +++ b/tests/ftests/Makefile.am @@ -0,0 +1,27 @@ +# +# libcgroup functional tests Makefile.am +# +# Copyright (c) 2019 Oracle and/or its affiliates. All rights reserved. +# Author: Tom Hromatka +# + +# +# This library is free software; you can redistribute it and/or modify it +# under the terms of version 2.1 of the GNU Lesser General Public License as +# published by the Free Software Foundation. +# +# This library is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License +# for more details. +# +# You should have received a copy of the GNU Lesser General Public License +# along with this library; if not, see . +# + +TESTS = + +clean-local: clean-local-check +.PHONY: clean-local-check +clean-local-check: + -rm -f *.pyc diff --git a/tests/ftests/__init__.py b/tests/ftests/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/tests/ftests/consts.py b/tests/ftests/consts.py new file mode 100644 index 00000000..6c7db192 --- /dev/null +++ b/tests/ftests/consts.py @@ -0,0 +1,20 @@ +# +# Constants for the libcgroup functional tests +# +# Copyright (c) 2019 Oracle and/or its affiliates. All rights reserved. +# Author: Tom Hromatka +# + +# +# This library is free software; you can redistribute it and/or modify it +# under the terms of version 2.1 of the GNU Lesser General Public License as +# published by the Free Software Foundation. +# +# This library is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License +# for more details. +# +# You should have received a copy of the GNU Lesser General Public License +# along with this library; if not, see . +#