Skip to content
Open
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
5 changes: 3 additions & 2 deletions testsuite/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ set( TESTSUBDIRS
regressiontests
mpitests
mpi_selftests
musictests
sli2py_music
cpptests
pytests
)
Expand All @@ -36,11 +36,12 @@ add_subdirectory( regressiontests/sli2py_ignore )
add_subdirectory( mpi_selftests/fail )
add_subdirectory( mpi_selftests/pass )
add_subdirectory( mpitests )
add_subdirectory( musictests )
add_subdirectory( sli2py_music )
add_subdirectory( cpptests )

install( DIRECTORY ${TESTSUBDIRS}
DESTINATION ${CMAKE_INSTALL_DATADIR}/testsuite
USE_SOURCE_PERMISSIONS
)

install( PROGRAMS
Expand Down
1 change: 0 additions & 1 deletion testsuite/SLI2PY_TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ To port
- unittests
- regressiontests
- mpitests
- musictests

Ignore
- selftests
Expand Down
20 changes: 10 additions & 10 deletions testsuite/do_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -422,16 +422,16 @@ if test "${MUSIC}"; then
BASEDIR="$PWD"
TMPDIR_MUSIC="$(mktemp -d)"

TESTDIR="${TEST_BASEDIR}/musictests/"
TESTDIR="${TEST_BASEDIR}/sli2py_music/"

# shellcheck disable=SC2044
for test_name in $(find "${TESTDIR}" -maxdepth 1 -name '*.music' -printf '%f\n'); do
music_file="${TESTDIR}/${test_name}"

# Collect the list of SLI files from the '.music' file.
sli_files="$(grep '\.sli' "${music_file}" | sed -e "s#args=#${TESTDIR}#g")"
sli_files="$(for f in ${sli_files}; do if test -f "${f}"; then echo "${f}"; fi; done)"
sli_files="${sli_files//$'\n'/ }"
# Collect the list of Python files from the '.music' file.
py_files="$(grep '\.py' "${music_file}" | sed -e "s#binary=#${TESTDIR}#g")"
py_files="$(for f in ${py_files}; do if test -f "${f}"; then echo "${f}"; fi; done)"
py_files="${py_files//$'\n'/ }"

# Check if there is an accompanying shell script for the test.
sh_file="${TESTDIR}/$(basename "${music_file}" ".music").sh"
Expand All @@ -443,24 +443,24 @@ if test "${MUSIC}"; then

# Calculate the total number of processes from the '.music' file.
np="$(($(sed -n 's/np=//p' "${music_file}" | paste -sd'+' -)))"
test_command="$(sli -c "${np} (${MUSIC}) (${test_name}) mpirun =only")"
test_command="${MPI_LAUNCHER} ${SLI_MPIEXEC_PREFLAGS} -np ${np} ${MUSIC} ${test_name}"

proc_txt="processes"
if test $np -eq 1; then proc_txt="process"; fi
echo "Running test '${test_name}' with $np $proc_txt... " >> "${TEST_LOGFILE}"
printf '%s' " Running test '${test_name}' with $np $proc_txt... "

# Copy everything to TMPDIR_MUSIC.
# Note that variables might also be empty, so test for file existance first.
# Note that ${sli_files} must not be quoted because it expands into multiple, space-separate file names.
for filename in "${music_file}" "${sh_file}" "${input_file}" ${sli_files}; do
# Note that variables might also be empty, so test for file existence first.
# Note that ${py_files} must not be quoted because it expands into multiple, space-separate file names.
for filename in "${music_file}" "${sh_file}" "${input_file}" ${py_files}; do
test -e "${filename}" && cp "${filename}" "${TMPDIR_MUSIC}"
done

# Create the runner script in TMPDIR_MUSIC.
cd "${TMPDIR_MUSIC}"
{
echo "#!/bin/sh"
echo "#!/usr/bin/env sh"
echo "set +e"
echo "NEST_DATA_PATH=\"${TMPDIR_MUSIC}\""
echo "${test_command} > ${TEST_OUTFILE} 2>&1"
Expand Down
75 changes: 0 additions & 75 deletions testsuite/musictests/test_cont_proxy_receiver.sli

This file was deleted.

42 changes: 0 additions & 42 deletions testsuite/musictests/test_cont_proxy_sender.sli

This file was deleted.

13 changes: 0 additions & 13 deletions testsuite/musictests/test_event_proxies.music

This file was deleted.

44 changes: 0 additions & 44 deletions testsuite/musictests/test_event_proxies_issue-696_receiver.sli

This file was deleted.

57 changes: 0 additions & 57 deletions testsuite/musictests/test_event_proxies_issue-696_sender.sli

This file was deleted.

43 changes: 0 additions & 43 deletions testsuite/musictests/test_event_proxies_receiver.sli

This file was deleted.

Loading
Loading