[rtems commit] validation: Add support library
Sebastian Huber
sebh at rtems.org
Fri May 14 06:53:18 UTC 2021
Module: rtems
Branch: master
Commit: bc29c7c313e9e287731144b3e4701cc8a68e1c1c
Changeset: http://git.rtems.org/rtems/commit/?id=bc29c7c313e9e287731144b3e4701cc8a68e1c1c
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Mon Apr 12 06:58:44 2021 +0200
validation: Add support library
Add a library for support functions used by validation tests. Rename
tc-support.* to tx-support.* since this file does not contain test
cases.
---
spec/build/testsuites/validation/grp.yml | 2 ++
spec/build/testsuites/validation/libvalidation.yml | 16 ++++++++++++++++
spec/build/testsuites/validation/validation-0.yml | 4 ++--
spec/build/testsuites/validation/validation-1.yml | 4 ++--
testsuites/validation/tc-barrier-create.c | 2 +-
testsuites/validation/tc-barrier-delete.c | 2 +-
testsuites/validation/tc-barrier-release.c | 2 +-
testsuites/validation/tc-barrier-wait.c | 2 +-
testsuites/validation/tc-signal-catch.c | 2 +-
testsuites/validation/tc-signal-send.c | 2 +-
testsuites/validation/{tc-support.c => tx-support.c} | 2 +-
testsuites/validation/{tc-support.h => tx-support.h} | 6 +++---
12 files changed, 32 insertions(+), 14 deletions(-)
diff --git a/spec/build/testsuites/validation/grp.yml b/spec/build/testsuites/validation/grp.yml
index 564b1c6..bdb057a 100644
--- a/spec/build/testsuites/validation/grp.yml
+++ b/spec/build/testsuites/validation/grp.yml
@@ -11,6 +11,8 @@ install: []
ldflags: []
links:
- role: build-dependency
+ uid: libvalidation
+- role: build-dependency
uid: performance-0
- role: build-dependency
uid: validation-0
diff --git a/spec/build/testsuites/validation/libvalidation.yml b/spec/build/testsuites/validation/libvalidation.yml
new file mode 100644
index 0000000..d55d4b9
--- /dev/null
+++ b/spec/build/testsuites/validation/libvalidation.yml
@@ -0,0 +1,16 @@
+SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
+build-type: library
+cflags: []
+copyrights:
+- Copyright (C) 2021 embedded brains GmbH (http://www.embedded-brains.de)
+cppflags: []
+cxxflags: []
+enabled-by: true
+includes: []
+install: []
+install-path: null
+links: []
+source:
+- testsuites/validation/tx-support.c
+target: validation
+type: build
diff --git a/spec/build/testsuites/validation/validation-0.yml b/spec/build/testsuites/validation/validation-0.yml
index 662b38c..6538723 100644
--- a/spec/build/testsuites/validation/validation-0.yml
+++ b/spec/build/testsuites/validation/validation-0.yml
@@ -19,12 +19,12 @@ source:
- testsuites/validation/tc-object.c
- testsuites/validation/tc-signal-catch.c
- testsuites/validation/tc-signal-send.c
-- testsuites/validation/tc-support.c
- testsuites/validation/tc-task-construct-errors.c
- testsuites/validation/tc-task-create-errors.c
- testsuites/validation/ts-validation-0.c
stlib: []
target: testsuites/validation/ts-validation-0.exe
type: build
-use-after: []
+use-after:
+- validation
use-before: []
diff --git a/spec/build/testsuites/validation/validation-1.yml b/spec/build/testsuites/validation/validation-1.yml
index fb622d0..ad6a7f3 100644
--- a/spec/build/testsuites/validation/validation-1.yml
+++ b/spec/build/testsuites/validation/validation-1.yml
@@ -13,12 +13,12 @@ links: []
source:
- testsuites/validation/tc-signal-catch.c
- testsuites/validation/tc-signal-send.c
-- testsuites/validation/tc-support.c
- testsuites/validation/tc-task-construct-errors.c
- testsuites/validation/tc-task-create-errors.c
- testsuites/validation/ts-validation-1.c
stlib: []
target: testsuites/validation/ts-validation-1.exe
type: build
-use-after: []
+use-after:
+- validation
use-before: []
diff --git a/testsuites/validation/tc-barrier-create.c b/testsuites/validation/tc-barrier-create.c
index 46d013e..b40fe43 100644
--- a/testsuites/validation/tc-barrier-create.c
+++ b/testsuites/validation/tc-barrier-create.c
@@ -55,7 +55,7 @@
#include <rtems.h>
#include <string.h>
-#include "tc-support.h"
+#include "tx-support.h"
#include <rtems/test.h>
diff --git a/testsuites/validation/tc-barrier-delete.c b/testsuites/validation/tc-barrier-delete.c
index 1402ff4..e51a910 100644
--- a/testsuites/validation/tc-barrier-delete.c
+++ b/testsuites/validation/tc-barrier-delete.c
@@ -55,7 +55,7 @@
#include <rtems.h>
#include <string.h>
-#include "tc-support.h"
+#include "tx-support.h"
#include <rtems/test.h>
diff --git a/testsuites/validation/tc-barrier-release.c b/testsuites/validation/tc-barrier-release.c
index 4e9046f..c9edac0 100644
--- a/testsuites/validation/tc-barrier-release.c
+++ b/testsuites/validation/tc-barrier-release.c
@@ -55,7 +55,7 @@
#include <rtems.h>
#include <string.h>
-#include "tc-support.h"
+#include "tx-support.h"
#include <rtems/test.h>
diff --git a/testsuites/validation/tc-barrier-wait.c b/testsuites/validation/tc-barrier-wait.c
index bd24c9e..6776dc0 100644
--- a/testsuites/validation/tc-barrier-wait.c
+++ b/testsuites/validation/tc-barrier-wait.c
@@ -55,7 +55,7 @@
#include <rtems.h>
#include <string.h>
-#include "tc-support.h"
+#include "tx-support.h"
#include <rtems/test.h>
diff --git a/testsuites/validation/tc-signal-catch.c b/testsuites/validation/tc-signal-catch.c
index d78969b..7276a89 100644
--- a/testsuites/validation/tc-signal-catch.c
+++ b/testsuites/validation/tc-signal-catch.c
@@ -56,7 +56,7 @@
#include <string.h>
#include <rtems/score/smpbarrier.h>
-#include "tc-support.h"
+#include "tx-support.h"
#include <rtems/test.h>
diff --git a/testsuites/validation/tc-signal-send.c b/testsuites/validation/tc-signal-send.c
index 2359855..6ab9fcf 100644
--- a/testsuites/validation/tc-signal-send.c
+++ b/testsuites/validation/tc-signal-send.c
@@ -54,7 +54,7 @@
#include <rtems.h>
-#include "tc-support.h"
+#include "tx-support.h"
#include <rtems/test.h>
diff --git a/testsuites/validation/tc-support.c b/testsuites/validation/tx-support.c
similarity index 99%
rename from testsuites/validation/tc-support.c
rename to testsuites/validation/tx-support.c
index 6b48a2d..dcb7603 100644
--- a/testsuites/validation/tc-support.c
+++ b/testsuites/validation/tx-support.c
@@ -41,7 +41,7 @@
#include "config.h"
#endif
-#include "tc-support.h"
+#include "tx-support.h"
#include <rtems/test.h>
diff --git a/testsuites/validation/tc-support.h b/testsuites/validation/tx-support.h
similarity index 97%
rename from testsuites/validation/tc-support.h
rename to testsuites/validation/tx-support.h
index 4ffa419..69cb308 100644
--- a/testsuites/validation/tc-support.h
+++ b/testsuites/validation/tx-support.h
@@ -34,8 +34,8 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef _TC_SUPPORT_H
-#define _TC_SUPPORT_H
+#ifndef _TX_SUPPORT_H
+#define _TX_SUPPORT_H
#include <rtems.h>
@@ -100,4 +100,4 @@ void RestoreRunnerPriority( void );
}
#endif
-#endif /* _TC_SUPPORT_H */
+#endif /* _TX_SUPPORT_H */
More information about the vc
mailing list