Skip to content

Commit

Permalink
Merge pull request #15438 from aabadie/pr/tests/sys_atomic_unittest
Browse files Browse the repository at this point in the history
tests/unittests: split out atomic_utils unittests
  • Loading branch information
aabadie authored Nov 13, 2020
2 parents d9598a0 + cab2540 commit 4c9ee5d
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 43 deletions.
7 changes: 7 additions & 0 deletions tests/sys_atomic_utils_unittests/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
include ../Makefile.tests_common

USEMODULE += embunit
USEMODULE += atomic_utils
USEMODULE += random # <-- used for input data to operate on

include $(RIOTBASE)/Makefile.include
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
*/

/**
* @ingroup tests
* @{
*
* @file
Expand All @@ -20,7 +21,6 @@
#include <string.h>

#include "embUnit.h"
#include "tests-atomic_utils.h"

#include "atomic_utils.h"
#include "random.h"
Expand Down Expand Up @@ -280,7 +280,11 @@ Test *tests_atomic_utils_tests(void)
return (Test *)&atomic_utils_tests;
}

void tests_atomic_utils(void)
int main(void)
{
TESTS_START();
TESTS_RUN(tests_atomic_utils_tests());
TESTS_END();

return 0;
}
14 changes: 14 additions & 0 deletions tests/sys_atomic_utils_unittests/tests/01-run.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/env python3

# Copyright (C) 2020 Inria
#
# This file is subject to the terms and conditions of the GNU Lesser
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.

import sys

from testrunner import run_check_unittests

if __name__ == "__main__":
sys.exit(run_check_unittests())
1 change: 0 additions & 1 deletion tests/unittests/tests-atomic_utils/Makefile

This file was deleted.

2 changes: 0 additions & 2 deletions tests/unittests/tests-atomic_utils/Makefile.include

This file was deleted.

38 changes: 0 additions & 38 deletions tests/unittests/tests-atomic_utils/tests-atomic_utils.h

This file was deleted.

0 comments on commit 4c9ee5d

Please sign in to comment.