Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests/unittests: split out atomic_utils unittests #15438

Merged
merged 2 commits into from
Nov 13, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.