Skip to content

Commit

Permalink
cosmetics
Browse files Browse the repository at this point in the history
  • Loading branch information
ilg-ul committed Nov 28, 2023
1 parent 8d6ca4f commit ffd542a
Show file tree
Hide file tree
Showing 19 changed files with 32 additions and 41 deletions.
30 changes: 14 additions & 16 deletions tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,6 @@
"commandMesonClean": "meson compile -C {{ properties.buildFolderRelativePathPosix }} --clean",
"commandMesonPerformTests": "meson test -C {{ properties.buildFolderRelativePathPosix }} --verbose"
},
"$actions": [
"meson fails with darwin new linker; upgrade meson to 1.3.0"
],
"actions": {
"deep-clean": "del-cli build node_modules xpacks package-lock.json",
"install": [
Expand Down Expand Up @@ -122,6 +119,7 @@
],
"install-all": [
"npm install",
"xpm install",
"xpm install --all-configs"
],
"link-deps": [
Expand Down Expand Up @@ -169,14 +167,14 @@
"xpm run test-qemu-riscv-rv64imafdc-meson-gcc"
],
"test-all": [
"xpm run test-native-cmake",
"xpm run test-native-meson",
"xpm run test-cortex-cmake",
"xpm run test-cortex-meson",
"xpm run test-riscv-cmake",
"xpm run test-riscv-meson"
],
"test-native-cmake": [
"xpm run test-native-cmake-all",
"xpm run test-native-meson-all",
"xpm run test-cortex-cmake-all",
"xpm run test-cortex-meson-all",
"xpm run test-riscv-cmake-all",
"xpm run test-riscv-meson-all"
],
"test-native-cmake-all": [
"xpm run test-native-cmake-sys{% if os.platform != 'darwin' %} --ignore-errors{% endif %}",
"xpm run test-native-cmake-gcc13",
"xpm run test-native-cmake-gcc12",
Expand Down Expand Up @@ -266,7 +264,7 @@
"xpm run build --config native-cmake-clang16-release",
"xpm run test --config native-cmake-clang16-release"
],
"test-native-meson": [
"test-native-meson-all": [
"xpm run test-native-meson-sys{% if os.platform != 'darwin' %} --ignore-errors{% endif %}",
"xpm run test-native-meson-gcc13",
"xpm run test-native-meson-gcc12",
Expand Down Expand Up @@ -356,7 +354,7 @@
"xpm run build --config native-meson-clang16-release",
"xpm run test --config native-meson-clang16-release"
],
"test-cortex-cmake": [
"test-cortex-cmake-all": [
"xpm run test-cortex-cmake-gcc13",
"xpm run test-cortex-cmake-gcc12",
"xpm run test-cortex-cmake-gcc11"
Expand Down Expand Up @@ -393,7 +391,7 @@
"xpm run test-qemu-cortex-a15-cmake-gcc13",
"xpm run test-qemu-cortex-a72-cmake-gcc13"
],
"test-cortex-meson": [
"test-cortex-meson-all": [
"xpm run test-cortex-meson-gcc13",
"xpm run test-cortex-meson-gcc12",
"xpm run test-cortex-meson-gcc11"
Expand Down Expand Up @@ -430,7 +428,7 @@
"xpm run test-qemu-cortex-a15-meson-gcc13",
"xpm run test-qemu-cortex-a72-meson-gcc13"
],
"test-riscv-cmake": [
"test-riscv-cmake-all": [
"xpm run test-riscv-cmake-gcc13",
"xpm run test-riscv-cmake-gcc12",
"xpm run test-riscv-cmake-gcc11"
Expand All @@ -451,7 +449,7 @@
"xpm run test-qemu-riscv-rv32imac-cmake-gcc13",
"xpm run test-qemu-riscv-rv64imafdc-cmake-gcc13"
],
"test-riscv-meson": [
"test-riscv-meson-all": [
"xpm run test-riscv-meson-gcc13",
"xpm run test-riscv-meson-gcc12",
"xpm run test-riscv-meson-gcc11"
Expand Down
2 changes: 0 additions & 2 deletions tests/platform-native/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ endif()

# -----------------------------------------------------------------------------

# sample-test
if(ENABLE_SAMPLE_TEST)
add_test_executable(sample-test)

Expand All @@ -139,7 +138,6 @@ endif()

# -----------------------------------------------------------------------------

# unit-test
if(ENABLE_UNIT_TEST)
add_test_executable(unit-test)

Expand Down
1 change: 0 additions & 1 deletion tests/platform-native/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ message('Processing tests/platform-native...')
# -----------------------------------------------------------------------------

# Define the tests executables.

test_names = [ 'sample-test', 'unit-test' ]

foreach name : test_names
Expand Down
2 changes: 0 additions & 2 deletions tests/platform-qemu-cortex-a15/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ endfunction()

# -----------------------------------------------------------------------------

# sample-test
if(ENABLE_SAMPLE_TEST)
add_test_executable(sample-test)

Expand All @@ -123,7 +122,6 @@ endif()

# -----------------------------------------------------------------------------

# unit-test
if(ENABLE_UNIT_TEST)
add_test_executable(unit-test)

Expand Down
3 changes: 2 additions & 1 deletion tests/platform-qemu-cortex-a15/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ objcopy = find_program('objcopy')
# -----------------------------------------------------------------------------

# Define the tests executables.

test_names = [ 'sample-test', 'unit-test' ]

foreach name : test_names
Expand Down Expand Up @@ -165,6 +164,8 @@ foreach name : test_names

endforeach

# -----------------------------------------------------------------------------

qemu = find_program('qemu-system-arm')

# https://mesonbuild.com/Unit-tests.html#malloc_perturb_
Expand Down
1 change: 0 additions & 1 deletion tests/platform-qemu-cortex-a72/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ endfunction()

# -----------------------------------------------------------------------------

# sample-test
if(ENABLE_SAMPLE_TEST)
add_test_executable(sample-test)

Expand Down
3 changes: 2 additions & 1 deletion tests/platform-qemu-cortex-a72/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ objcopy = find_program('objcopy')
# -----------------------------------------------------------------------------

# Define the tests executables.

test_names = [ 'sample-test', 'unit-test' ]

foreach name : test_names
Expand Down Expand Up @@ -165,6 +164,8 @@ foreach name : test_names

endforeach

# -----------------------------------------------------------------------------

qemu = find_program('qemu-system-aarch64')

# https://mesonbuild.com/Unit-tests.html#malloc_perturb_
Expand Down
2 changes: 0 additions & 2 deletions tests/platform-qemu-cortex-m0/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ endfunction()

# -----------------------------------------------------------------------------

# sample-test
if(ENABLE_SAMPLE_TEST)
add_test_executable(sample-test)

Expand All @@ -122,7 +121,6 @@ endif()

# -----------------------------------------------------------------------------

# unit-test
if(ENABLE_UNIT_TEST)
add_test_executable(unit-test)

Expand Down
2 changes: 2 additions & 0 deletions tests/platform-qemu-cortex-m0/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,8 @@ foreach name : test_names

endforeach

# -----------------------------------------------------------------------------

qemu = find_program('qemu-system-arm')

# https://mesonbuild.com/Unit-tests.html#malloc_perturb_
Expand Down
2 changes: 0 additions & 2 deletions tests/platform-qemu-cortex-m3/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ endfunction()

# -----------------------------------------------------------------------------

# sample-test
if(ENABLE_SAMPLE_TEST)
add_test_executable(sample-test)

Expand All @@ -122,7 +121,6 @@ endif()

# -----------------------------------------------------------------------------

# unit-test
if(ENABLE_UNIT_TEST)
add_test_executable(unit-test)

Expand Down
3 changes: 2 additions & 1 deletion tests/platform-qemu-cortex-m3/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ objcopy = find_program('objcopy')
# -----------------------------------------------------------------------------

# Define the tests executables.

test_names = [ 'sample-test', 'unit-test' ]

foreach name : test_names
Expand Down Expand Up @@ -165,6 +164,8 @@ foreach name : test_names

endforeach

# -----------------------------------------------------------------------------

qemu = find_program('qemu-system-arm')

# https://mesonbuild.com/Unit-tests.html#malloc_perturb_
Expand Down
2 changes: 0 additions & 2 deletions tests/platform-qemu-cortex-m4f/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ endfunction()

# -----------------------------------------------------------------------------

# sample-test
if(ENABLE_SAMPLE_TEST)
add_test_executable(sample-test)

Expand All @@ -123,7 +122,6 @@ endif()

# -----------------------------------------------------------------------------

# unit-test
if(ENABLE_UNIT_TEST)
add_test_executable(unit-test)

Expand Down
3 changes: 2 additions & 1 deletion tests/platform-qemu-cortex-m4f/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ objcopy = find_program('objcopy')
# -----------------------------------------------------------------------------

# Define the tests executables.

test_names = [ 'sample-test', 'unit-test' ]

foreach name : test_names
Expand Down Expand Up @@ -165,6 +164,8 @@ foreach name : test_names

endforeach

# -----------------------------------------------------------------------------

qemu = find_program('qemu-system-arm')

# https://mesonbuild.com/Unit-tests.html#malloc_perturb_
Expand Down
2 changes: 0 additions & 2 deletions tests/platform-qemu-cortex-m7f/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ endfunction()

# -----------------------------------------------------------------------------

# sample-test
if(ENABLE_SAMPLE_TEST)
add_test_executable(sample-test)

Expand All @@ -123,7 +122,6 @@ endif()

# -----------------------------------------------------------------------------

# unit-test
if(ENABLE_UNIT_TEST)
add_test_executable(unit-test)

Expand Down
3 changes: 2 additions & 1 deletion tests/platform-qemu-cortex-m7f/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ objcopy = find_program('objcopy')
# -----------------------------------------------------------------------------

# Define the tests executables.

test_names = [ 'sample-test', 'unit-test' ]

foreach name : test_names
Expand Down Expand Up @@ -165,6 +164,8 @@ foreach name : test_names

endforeach

# -----------------------------------------------------------------------------

qemu = find_program('qemu-system-arm')

# https://mesonbuild.com/Unit-tests.html#malloc_perturb_
Expand Down
2 changes: 0 additions & 2 deletions tests/platform-qemu-riscv-rv32imac/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ endfunction()

# -----------------------------------------------------------------------------

# sample-test
if(ENABLE_SAMPLE_TEST)
add_test_executable(sample-test)

Expand All @@ -124,7 +123,6 @@ endif()

# -----------------------------------------------------------------------------

# unit-test
if(ENABLE_UNIT_TEST)
add_test_executable(unit-test)

Expand Down
3 changes: 2 additions & 1 deletion tests/platform-qemu-riscv-rv32imac/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ objcopy = find_program('objcopy')
# -----------------------------------------------------------------------------

# Define the tests executables.

test_names = [ 'sample-test', 'unit-test' ]

foreach name : test_names
Expand Down Expand Up @@ -165,6 +164,8 @@ foreach name : test_names

endforeach

# -----------------------------------------------------------------------------

qemu = find_program('qemu-system-riscv32')

# https://mesonbuild.com/Unit-tests.html#malloc_perturb_
Expand Down
4 changes: 2 additions & 2 deletions tests/platform-qemu-riscv-rv64imafdc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,12 @@ function(add_test_executable name)
message(VERBOSE "A+ tests/src/${name}.cpp")

target_compile_definitions(${name} PRIVATE

# None.
)

target_compile_options(${name} PRIVATE

# None.
)

Expand Down Expand Up @@ -103,7 +105,6 @@ endfunction()

# -----------------------------------------------------------------------------

# sample-test
if(ENABLE_SAMPLE_TEST)
add_test_executable(sample-test)

Expand All @@ -124,7 +125,6 @@ endif()

# -----------------------------------------------------------------------------

# unit-test
if(ENABLE_UNIT_TEST)
add_test_executable(unit-test)

Expand Down
3 changes: 2 additions & 1 deletion tests/platform-qemu-riscv-rv64imafdc/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ objcopy = find_program('objcopy')
# -----------------------------------------------------------------------------

# Define the tests executables.

test_names = [ 'sample-test', 'unit-test' ]

foreach name : test_names
Expand Down Expand Up @@ -165,6 +164,8 @@ foreach name : test_names

endforeach

# -----------------------------------------------------------------------------

qemu = find_program('qemu-system-riscv64')

# https://mesonbuild.com/Unit-tests.html#malloc_perturb_
Expand Down

0 comments on commit ffd542a

Please sign in to comment.