From c984438cb25f6364af73eeeef1d0cc3c524815e0 Mon Sep 17 00:00:00 2001 From: Tom Hromatka Date: Fri, 21 Jun 2019 09:29:41 -0600 Subject: [PATCH] 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 --- configure.in | 1 + tests/Makefile.am | 2 +- tests/ftests/.gitignore | 5 +++++ tests/ftests/Makefile.am | 27 +++++++++++++++++++++++++++ tests/ftests/__init__.py | 0 tests/ftests/consts.py | 20 ++++++++++++++++++++ 6 files changed, 54 insertions(+), 1 deletion(-) create mode 100644 tests/ftests/.gitignore create mode 100644 tests/ftests/Makefile.am create mode 100644 tests/ftests/__init__.py create mode 100644 tests/ftests/consts.py 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 . +# -- 2.47.2